CVE-2025-9820: Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function
Vulnerability summary
CVE-2025-9820 is a medium (CVSS 4.0) Stack-based Buffer Overflow vulnerability in gnutls. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 13.6% of scored vulnerabilities.
Not severe (CVSS 4, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 12 · Related 7Timeline
- 26-01-2026PublishedVulnerability first disclosed.
- 06-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · UbuntuEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- OSV · DebianEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- NVDNIST4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
EPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse9 products
- gnutls&distro=SUSE Linux Enterprise Micro 5.2< 3.6.7-150200.14.40.1
- gnutls&distro=SUSE Linux Enterprise Micro 5.3< 3.7.3-150400.19.1
- gnutls&distro=SUSE Linux Enterprise Micro 5.4< 3.7.3-150400.4.53.1
- gnutls&distro=SUSE Linux Enterprise Micro 5.5< 3.7.3-150400.4.53.1
- gnutls&distro=SUSE Linux Enterprise Module for Basesystem 15 SP6< 3.8.3-150600.4.12.1
Opensuse2 products
- gnutls&distro=openSUSE Leap 15.6< 3.8.3-150600.4.12.1
- gnutls&distro=openSUSE Tumbleweed< 3.8.11-1.1
Alpine1 product
- gnutls< 3.8.12-r0 | < 3.8.11-r0
Debian1 product
- gnutls28< 3.7.9-2+deb12u6 | < 3.8.9-3+deb13u1 | < 3.8.11-3
Mageia1 product
- gnutls< 3.8.4-1.3.mga9
Ubuntu1 product
- gnutls28< 3.4.10-4ubuntu1.9+esm3 | < 3.5.18-1ubuntu1.6+esm3 | < 3.6.13-2ubuntu1.12+esm2 | < 3.7.3-4ubuntu1.8 | All versions (No fix recorded) | < 3.7.3-4ubuntu1.8+Fips1.1 | < 3.8.3-1.1ubuntu3.5 | < 3.8.3-1.1ubuntu3.5+Fips1.1 | < 3.8.9-3ubuntu2.1
6 vendors · 15 products