CVE-2025-9820
Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function
Mitigation
- Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Applying the upstream patch or vendor-supplied security update is the recommended resolution.
Who should check
- Anyone running gnutls 3.8.1; 3.8.2; 3.8.3; 3.8.4; 3.8.5; 3.8.6; 3.8.7; 3.8.8; 3.8.9; 3.8.10
- Anyone running Red Hat Enterprise Linux 10 all versions
- Anyone running Red Hat Enterprise Linux 8 all versions
- Anyone running Red Hat Enterprise Linux 9 all versions
- Anyone running Red Hat RHEL-8 based Middleware Containers all versions
- Anyone running Cert Manager support for Red Hat OpenShift release 1.18 all versions
- Anyone running Red Hat Ceph Storage 8 all versions
- Anyone running Red Hat Discovery 2 all versions
Vulnerability facts
- Affected
- gnutls 3.8.1; 3.8.2; 3.8.3; 3.8.4; 3.8.5; 3.8.6; 3.8.7; 3.8.8; 3.8.9; 3.8.10; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Red Hat Ceph Storage 8 all versions; Red Hat Discovery 2 all versions; Red Hat Discovery 2 all versions; Red Hat Hardened Images all versions; Red Hat Insights proxy 1.5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Enterprise Linux 6 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat OpenShift Container Platform 4 all versions; Red Hat OpenShift Container Platform 4 all versions
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- EPSS
- 0.25% chance of exploitation in 30 days (percentile 10, 2026-11-26)
- CWE
- CWE-121
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| gnutls | 3.8.1; 3.8.2; 3.8.3; 3.8.4; 3.8.5; 3.8.6; 3.8.7; 3.8.8; 3.8.9; 3.8.10 | — | cvelist |
| Red Hat Enterprise Linux 10 | all versions | — | cvelist |
| Red Hat Enterprise Linux 8 | all versions | — | cvelist |
| Red Hat Enterprise Linux 8 | all versions | — | cvelist |
| Red Hat Enterprise Linux 9 | all versions | — | cvelist |
| Red Hat Enterprise Linux 9 | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Red Hat RHEL-8 based Middleware Containers | all versions | — | cvelist |
| Cert Manager support for Red Hat OpenShift release 1.18 | all versions | — | cvelist |
| Cert Manager support for Red Hat OpenShift release 1.18 | all versions | — | cvelist |
| Cert Manager support for Red Hat OpenShift release 1.18 | all versions | — | cvelist |
| Cert Manager support for Red Hat OpenShift release 1.18 | all versions | — | cvelist |
| Cert Manager support for Red Hat OpenShift release 1.18 | all versions | — | cvelist |
| Red Hat Ceph Storage 8 | all versions | — | cvelist |
| Red Hat Discovery 2 | all versions | — | cvelist |
| Red Hat Discovery 2 | all versions | — | cvelist |
| Red Hat Hardened Images | all versions | — | cvelist |
| Red Hat Insights proxy 1.5 | all versions | — | cvelist |
| Red Hat Update Infrastructure 5 | all versions | — | cvelist |
| Red Hat Update Infrastructure 5 | all versions | — | cvelist |
| Red Hat Update Infrastructure 5 | all versions | — | cvelist |
| Red Hat Update Infrastructure 5 | all versions | — | cvelist |
| Red Hat Enterprise Linux 6 | all versions | — | cvelist |
| Red Hat Enterprise Linux 7 | all versions | — | cvelist |
| Red Hat OpenShift Container Platform 4 | all versions | — | cvelist |
| Red Hat OpenShift Container Platform 4 | all versions | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-9820. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-9820.md Affected: gnutls 3.8.1; 3.8.2; 3.8.3; 3.8.4; 3.8.5; 3.8.6; 3.8.7; 3.8.8; 3.8.9; 3.8.10; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat RHEL-8 … Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for gnutls, Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat RHEL-8 based Middleware Containers, Cert Manager support for Red Hat OpenShift release 1.18: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://access.redhat.com/errata/RHSA-2026:13812
- https://access.redhat.com/errata/RHSA-2026:3477
- https://access.redhat.com/errata/RHSA-2026:4188
- https://access.redhat.com/errata/RHSA-2026:4655
- https://access.redhat.com/errata/RHSA-2026:4943
- https://access.redhat.com/errata/RHSA-2026:5585
- https://access.redhat.com/errata/RHSA-2026:5606
- https://access.redhat.com/errata/RHSA-2026:7329
- https://access.redhat.com/errata/RHSA-2026:7477
- https://access.redhat.com/errata/RHSA-2026:82347
- https://access.redhat.com/errata/RHSA-2026:82354
- https://access.redhat.com/errata/RHSA-2026:82372
- https://access.redhat.com/errata/RHSA-2026:82857
Other
- https://access.redhat.com/security/cve/CVE-2025-9820
- https://bugzilla.redhat.com/show_bug.cgi?id=2392528
- https://gitlab.com/gnutls/gnutls/-/issues/1732
- https://www.gnutls.org/security-new.html#GNUTLS-SA-2025-11-18
- http://www.openwall.com/lists/oss-security/2025/11/20/2
- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
FAQ
Is CVE-2025-9820 being exploited?
There is no confirmed exploitation: CVE-2025-9820 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.25% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-9820?
Medium: CVSS 4.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-9820?
gnutls 3.8.1; 3.8.2; 3.8.3; 3.8.4; 3.8.5; 3.8.6; 3.8.7; 3.8.8; 3.8.9; 3.8.10; Red Hat Enterprise Linux 10 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 8 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat Enterprise Linux 9 all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Red Hat RHEL-8 based Middleware Containers all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Cert Manager support for Red Hat OpenShift release 1.18 all versions; Red Hat Ceph Storage 8 all versions; Red Hat Discovery 2 all versions; Red Hat Discovery 2 all versions; Red Hat Hardened Images all versions; Red Hat Insights proxy 1.5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Update Infrastructure 5 all versions; Red Hat Enterprise Linux 6 all versions; Red Hat Enterprise Linux 7 all versions; Red Hat OpenShift Container Platform 4 all versions; Red Hat OpenShift Container Platform 4 all versions.
Is there a fix for CVE-2025-9820?
No fixed version is listed in the sources yet. Vendor workaround: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Applying the upstream patch or vendor-supplied security update is the recommended resolution.
How do I check if I'm affected by CVE-2025-9820?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.