Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function (CVE-2025-9820)
Published Last modified Sources: BSI, Red Hat, Siemens ProductCERT, Ubuntu, SUSE, Debian LTS, CVE.org, EUVD
What is affected, what to do
A flaw was found in the GnuTLS library, specifically in the gnutls_pkcs11_token_init() function that handles PKCS#11 token initialization. When a token label longer than expected is processed, the function writes past the end of a fixed-size stack buffer.
Update Red Hat Enterprise Linux 10 to version 0:3.8.10-3.el10_1, Red Hat Enterprise Linux 8 to version 0:3.6.16-8.el8_10.5, Red Hat Enterprise Linux 9 to version 0:3.8.3-10.el9_7.
- Affected
- Gnutls
eq 3.8.1..3.8.1 - Gnutls
eq 3.8.2..3.8.2 - Gnutls
eq 3.8.3..3.8.3 - Gnutls
eq 3.8.4..3.8.4 - Gnutls
eq 3.8.5..3.8.5 - Gnutls
eq 3.8.6..3.8.6 - Gnutls
eq 3.8.7..3.8.7 - Gnutls
eq 3.8.8..3.8.8 - Gnutls
eq 3.8.9..3.8.9 - Gnutls
eq 3.8.10..3.8.10 - Red Hat Enterprise Linux 10
lt *..0:3.8.10-3.el10_1 - Red Hat Enterprise Linux 8
lt *..0:3.6.16-8.el8_10.5 - Red Hat Enterprise Linux 9
lt *..0:3.8.3-10.el9_7 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325677 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325711 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325710 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-3.1777325680 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325709 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325680 - Red Hat RHEL-8 based Middleware Containers
lt *..7.13.5-4.1777325708 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
lt *..1791459707 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
lt *..1791459711 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
lt *..1791459759 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
lt *..1789029076 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
lt *..1791966259 - Red Hat Ceph Storage 8
lt *..1774002867 - Red Hat Discovery 2
lt *..1775668717 - Red Hat Discovery 2
lt *..1775675922 - Red Hat Hardened Images
lt *..3.8.12-1.1.hum1 - Red Hat Insights proxy 1.5
lt *..1773685509 - Red Hat Update Infrastructure 5
lt *..1773670073 - Red Hat Update Infrastructure 5
lt *..1773672059 - Red Hat Update Infrastructure 5
lt *..1773668803 - Red Hat Update Infrastructure 5
lt *..1773670137
- Gnutls
- Fixed in
- Red Hat Enterprise Linux 10
0:3.8.10-3.el10_1 - Red Hat Enterprise Linux 8
0:3.6.16-8.el8_10.5 - Red Hat Enterprise Linux 9
0:3.8.3-10.el9_7 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325677 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325711 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325710 - Red Hat RHEL-8 based Middleware Containers
7.13.5-3.1777325680 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325709 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325680 - Red Hat RHEL-8 based Middleware Containers
7.13.5-4.1777325708 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
1791459707 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
1791459711 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
1791459759 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
1789029076 - Red Hat Cert Manager support for Red Hat OpenShift release 1.18
1791966259 - Red Hat Ceph Storage 8
1774002867 - Red Hat Discovery 2
1775668717 - Red Hat Discovery 2
1775675922 - Red Hat Hardened Images
3.8.12-1.1.hum1 - Red Hat Insights proxy 1.5
1773685509 - Red Hat Update Infrastructure 5
1773670073 - Red Hat Update Infrastructure 5
1773672059 - Red Hat Update Infrastructure 5
1773668803 - Red Hat Update Infrastructure 5
1773670137
- Red Hat Enterprise Linux 10
Not sure whether and how you are affected? Ask a question about this vulnerability
Metrics
4.0
Priority
XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.
Source: NVD, CVSS v3
4.0
CVSS v3
Severity Medium on the scale from 0 to 10.
Source: BSI, Red Hat, Siemens ProductCERT, Ubuntu, SUSE, Debian LTS, CVE.org, EUVD
0.2 %
EPSS score
Low — model estimates < 1% exploitation likelihood.
Source: FIRST EPSS, percentile 12.8
Show all metrics
- Severity
- Medium
Priority (0–325)
The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?
Read in glossary- 35.14 Methodology
Exploit maturity
An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.
Read in glossary- no public PoC known
XIEM Effective CVSS
XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.
Read in glossary- 4.0 Methodology
CVSS v3
CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.
Read in glossary- 4.0
EPSS score
The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.
Read in glossary- 0.2 %
- Low — model estimates < 1% exploitation likelihood.
EPSS percentile
The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.
Read in glossary- 12.8
- Elevated — this CVE ranks above at least 10% of all CVEs scored today.
KEV status
The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.
Read in glossary- —
- Published
CWE
CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.
Read in glossary- CWE-121
Detection rules
No NEOSEC detection rule is available for this vulnerability yet.
Classification under NIS2 and CRA
Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.
NIS2
NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.
Read in glossary- Handle the vulnerability in regular vulnerability handling under Art. 21(2)(e) NIS2.
CRA
The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.
Read in glossary- From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
ISO/IEC 27001
ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.
Read in glossary- Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.
Description
A flaw was found in the GnuTLS library, specifically in the gnutls_pkcs11_token_init() function that handles PKCS#11 token initialization. When a token label longer than expected is processed, the function writes past the end of a fixed-size stack buffer. This programming error can cause the application using GnuTLS to crash or, in certain conditions, be exploited for code execution. As a result, systems or applications relying on GnuTLS may be vulnerable to a denial of service or local privilege escalation attacks.
Source: BSI WID Portal, BSI CSAF, redhat_csaf, siemens_advisory, Ubuntu Security Notices, suse_csaf, Debian LTS Advisories, cvelistv5, NVD (NIST), CVE.org (MITRE), ENISA EUVD
Affected products
The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.
| Affected versions | Fixed in | ||
|---|---|---|---|
| — | gnutls |
|
|
| Red Hat | Cert Manager support for Red Hat OpenShift release 1.18 |
|
|
| Red Hat | Red Hat Ceph Storage 8 |
|
|
| Red Hat | Red Hat Discovery 2 |
|
|
| Red Hat | Red Hat Enterprise Linux 10 |
|
|
| Red Hat | Red Hat Enterprise Linux 6 |
|
|
| Red Hat | Red Hat Enterprise Linux 7 |
|
|
| Red Hat | Red Hat Enterprise Linux 8 |
|
|
| Red Hat | Red Hat Enterprise Linux 9 |
|
|
| Red Hat | Red Hat Hardened Images |
|
|
| Red Hat | Red Hat Insights proxy 1.5 |
|
|
| Red Hat | Red Hat OpenShift Container Platform 4 |
|
|
| Red Hat | Red Hat Update Infrastructure 5 |
|
|
| Red Hat | RHEL-8 based Middleware Containers |
|
|
| Dell | Secure Connect Gateway |
|
|
| IBM | QRadar SIEM |
|
|
| IBM | Security Verify Access |
|
|
| Meinberg | LANTIME |
|
|
| Open Source | GnuTLS |
|
|
| Red Hat | Enterprise Linux |
|
|
| Xerox | FreeFlow Print Server |
|
|
Vendors and products
- Debian Gnutls28
- Dell Secure Connect Gateway
- IBM Qradar Siem
- IBM Security Verify Access
- Meinberg Lantime
- Open Source Gnutls
- Red Hat Cert Manager Support For Red Hat Openshift Release 1.18
- Red Hat Enterprise Linux
- Red Hat Red Hat Ceph Storage 8
- Red Hat Red Hat Discovery 2
- Red Hat Red Hat Enterprise Linux 10
- Red Hat Red Hat Enterprise Linux 6
Affected operating systems
| Linux | debian | gnutls28 | bullseye |
| Linux | ubuntu | gnutls28 | bionic |
| Linux | ubuntu | gnutls28 | focal |
| Linux | ubuntu | gnutls28 | xenial |
Weakness classes (CWE)
CWE-121Stack-based Buffer Overflow
Variant
A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).
Entry at MITRE CWE-121
References & sources
- access.redhat.comRHSA-2026:13812Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:3477Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:4188Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:4655Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:4943Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:5585Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:5606Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:7329Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:7477Vendor advisory, x_refsource_REDHAT
- access.redhat.comsecurity/cve/CVE-2025-9820Vulnerability database, x_refsource_REDHAT
- bugzilla.redhat.comRHBZ#2392528Issue tracking, x_refsource_REDHAT
- gitlab.comgnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5
- gitlab.comgnutls/gnutls/-/issues/1732
- gnutls.orgsecurity-new.html
- openwall.comlists/oss-security/2025/11/20/2
- Siemens ProductCERTproductcert/html/ssa-032379.html
- access.redhat.comRHSA-2026:82347Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:82354Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:82372Vendor advisory, x_refsource_REDHAT
- access.redhat.comRHSA-2026:82857Vendor advisory, x_refsource_REDHAT
Changes to this CVE
Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).
Record modifiedRed Hat
New references:Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) added —Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/9xxx/CVE-2025-9820.json">CVE-2025-9820</a>Reference added —https://access.redhat.com/errata/RHSA-2026:82857Source identifier: secalert@redhat.com
Record modifiedRed Hat
Show 4 original changes
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) added —Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/9xxx/CVE-2025-9820.json">CVE-2025-9820</a>Reference added —https://access.redhat.com/errata/RHSA-2026:82347Reference added —https://access.redhat.com/errata/RHSA-2026:82354Reference added —https://access.redhat.com/errata/RHSA-2026:82372Source identifier: secalert@redhat.com
Record modifiedRed Hat
1 individual change: Affected versions (publisher)
Show the original change
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) added —Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/9xxx/CVE-2025-9820.json">CVE-2025-9820</a>Source identifier: secalert@redhat.com
Record modifiedSiemens ADP
Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After Reference added —https://cert-portal.siemens.com/productcert/html/ssa-032379.htmlReference removed https://cert-portal.siemens.com/productcert/html/ssa-032379.html—Source identifier: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
Record modifiedRed Hat
Show 29 original changes
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) added —Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2025/9xxx/CVE-2025-9820.json">CVE-2025-9820</a>Reference added —https://access.redhat.com/errata/RHSA-2026:13812Reference added —https://access.redhat.com/errata/RHSA-2026:3477Reference added —https://access.redhat.com/errata/RHSA-2026:4188Reference added —https://access.redhat.com/errata/RHSA-2026:4655Reference added —https://access.redhat.com/errata/RHSA-2026:4943Reference added —https://access.redhat.com/errata/RHSA-2026:5585Reference added —https://access.redhat.com/errata/RHSA-2026:5606Reference added —https://access.redhat.com/errata/RHSA-2026:7329Reference added —https://access.redhat.com/errata/RHSA-2026:7477Reference added —https://access.redhat.com/security/cve/CVE-2025-9820Reference added —https://bugzilla.redhat.com/show_bug.cgi?id=2392528Reference added —https://gitlab.com/gnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5Reference added —https://gitlab.com/gnutls/gnutls/-/issues/1732Reference added —https://www.gnutls.org/security-new.html#GNUTLS-SA-2025-11-18Reference removed https://access.redhat.com/errata/RHSA-2026:13812—Reference removed https://access.redhat.com/errata/RHSA-2026:3477—Reference removed https://access.redhat.com/errata/RHSA-2026:4188—Reference removed https://access.redhat.com/errata/RHSA-2026:4655—Reference removed https://access.redhat.com/errata/RHSA-2026:4943—Reference removed https://access.redhat.com/errata/RHSA-2026:5585—Reference removed https://access.redhat.com/errata/RHSA-2026:5606—Reference removed https://access.redhat.com/errata/RHSA-2026:7329—Reference removed https://access.redhat.com/errata/RHSA-2026:7477—Reference removed https://access.redhat.com/security/cve/CVE-2025-9820—Reference removed https://bugzilla.redhat.com/show_bug.cgi?id=2392528—Reference removed https://gitlab.com/gnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5—Reference removed https://gitlab.com/gnutls/gnutls/-/issues/1732—Reference removed https://www.gnutls.org/security-new.html#GNUTLS-SA-2025-11-18—Source identifier: secalert@redhat.com
Show 2 older changes
Record modifiedCVE Program
New references:Show 2 original changes
Individual changes of this event as published by NVD Type Action Before After Reference added —http://www.openwall.com/lists/oss-security/2025/11/20/2Reference removed http://www.openwall.com/lists/oss-security/2025/11/20/2—Source identifier: af854a3a-2127-422b-91ae-364da2661108
Record modifiedRed Hat
1 individual change: Affected versions (publisher)
Show the original change
Individual changes of this event as published by NVD Type Action Before After Affected versions (publisher) changed Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8 (+21)Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 8 (+21)Source identifier: secalert@redhat.com
Embed badge
Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.
<a href="https://intel.neosec.eu/en/cve/CVE-2025-9820"><img src="https://intel.neosec.eu/badge/cve/CVE-2025-9820.svg?lang=en" alt="CVE-2025-9820 – NEOSEC Intel" height="20"></a>