# CVE-2025-9820: Gnutls: stack-based buffer overflow in gnutls\_pkcs11\_token\_init() function

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.0
- **CVSS:** 4.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-121
- **Published:** 2026-01-26T19:58:32.886Z
- **Modified:** 2026-11-06T18:17:30.020Z

## 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

## 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

- 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)

## 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.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://access.redhat.com/errata/RHSA-2026:13812>
- vendor: <https://access.redhat.com/errata/RHSA-2026:3477>
- vendor: <https://access.redhat.com/errata/RHSA-2026:4188>
- vendor: <https://access.redhat.com/errata/RHSA-2026:4655>
- vendor: <https://access.redhat.com/errata/RHSA-2026:4943>
- vendor: <https://access.redhat.com/errata/RHSA-2026:5585>
- vendor: <https://access.redhat.com/errata/RHSA-2026:5606>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7329>
- vendor: <https://access.redhat.com/errata/RHSA-2026:7477>
- vendor: <https://access.redhat.com/errata/RHSA-2026:82347>
- vendor: <https://access.redhat.com/errata/RHSA-2026:82354>
- vendor: <https://access.redhat.com/errata/RHSA-2026:82372>
- vendor: <https://access.redhat.com/errata/RHSA-2026:82857>
- patch: <https://gitlab.com/gnutls/gnutls/-/commit/1d56f96f6ab5034d677136b9d50b5a75dff0faf5>
- other: <https://access.redhat.com/security/cve/CVE-2025-9820>
- other: <https://bugzilla.redhat.com/show_bug.cgi?id=2392528>
- other: <https://gitlab.com/gnutls/gnutls/-/issues/1732>
- other: <https://www.gnutls.org/security-new.html#GNUTLS-SA-2025-11-18>
- other: <http://www.openwall.com/lists/oss-security/2025/11/20/2>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-9820>

HTML: <https://flawdb.com/CVE-2025-9820> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-9820>
