
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-9820 is a stack-based buffer overflow vulnerability in the GnuTLS library, specifically in the gnutls_pkcs11_token_init() function responsible for PKCS#11 token initialization. When a token label exceeding 32 characters is passed to this function, it performs an unsafe memcpy into a fixed-size stack buffer (flabel[32]) without proper bounds checking, writing past the buffer boundary. The vulnerability was reported by Luigino Camastra from Aisle Research, disclosed on November 18, 2025 (GNUTLS-SA-2025-11-18), and published to NVD on January 26, 2026. Affected software includes GnuTLS versions prior to 3.8.11, as well as downstream products including Oracle Solaris 11.4, Red Hat Enterprise Linux 8/9/10, IBM MQ container images, IBM Db2 on Cloud Pak for Data, and IBM CICS Transaction Gateway. It carries a CVSS v3.1 base score of 4.0 (Medium) (GnuTLS Advisory, Oracle Advisory, Red Hat Bugzilla).
The root cause is classified as CWE-121 (Stack-based Buffer Overflow). The gnutls_pkcs11_token_init() function allocates a fixed 32-byte stack buffer (flabel[32]) to hold a PKCS#11 token label, but performs a memcpy without validating that the input label length does not exceed this limit. Since the PKCS#11 standard itself imposes a 32-character label limit, the GnuTLS documentation did not clearly communicate that callers must enforce this constraint before invoking the function. The attack vector is local (AV:L), requiring no privileges (PR:N) and no user interaction (UI:N); an attacker must be able to supply a malicious PKCS#11 token or control the label passed to the function. The fix was committed to the GnuTLS GitLab repository and the issue was tracked as GitLab issue #1732 (oss-security, GnuTLS commit).
Successful exploitation can cause applications using GnuTLS to crash, resulting in a denial of service. In certain conditions — particularly where stack layout and memory protections are favorable — a local attacker without elevated privileges could potentially leverage the out-of-bounds stack write to achieve arbitrary code execution and local privilege escalation. The vulnerability affects any application or service that relies on GnuTLS for PKCS#11 token initialization, including cryptographic middleware, TLS-enabled services, and enterprise software such as IBM MQ and Db2 containers (Red Hat Bugzilla, Feedly).
There is no public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting (Feedly). No threat actor attribution has been identified. The EPSS score is approximately 0.008% (0.000080), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The local-only attack vector and the requirement to interact with a malicious PKCS#11 token significantly limit the practical exploitability of this flaw.
The primary remediation is to upgrade GnuTLS to version 3.8.11 or later, which includes the fix for this vulnerability (oss-security). As a compile-time mitigation, building the GnuTLS library with -D_FORTIFY_SOURCE=2 will effectively mitigate the issue by detecting the out-of-bounds write at runtime. Application developers should also validate that any PKCS#11 token label passed to gnutls_pkcs11_token_init() does not exceed 32 characters before invoking the function. Vendor-specific patches are available from Red Hat (RHSA-2026:3477 for RHEL 10, RHSA-2026:4188 for RHEL 9, RHSA-2026:5585 for RHEL 8), Oracle (Solaris 11.4), Debian, Ubuntu (USN-8043-1), SUSE, Fedora, Slackware, and IBM for affected products (Red Hat RHSA-2026:3477, Oracle Advisory). Restricting local access to systems running vulnerable GnuTLS implementations provides an additional layer of defense.
The GnuTLS project disclosed the vulnerability via its official security advisory (GNUTLS-SA-2025-11-18) and announced the fix in the GnuTLS 3.8.11 release notes, crediting the reporter Luigino Camastra from Aisle Research (oss-security). The vulnerability received broad coverage across Linux distribution security channels, with advisories issued by Red Hat, Oracle, Debian, Ubuntu, SUSE, Fedora, Slackware, Mageia, and AlmaLinux. Community reaction has been measured given the low CVSS score and local-only attack vector, with no significant controversy or elevated concern noted in social media or security forums.
Fix availability across major Linux distributions and their releases.
bookworm
gnutls28: 3.7.9-2+deb12u6
sid
gnutls28: 3.8.11-3
trixie
gnutls28: 3.8.9-3+deb13u1
bionic (esm-infra)
gnutls28: 3.5.18-1ubuntu1.6+esm3
devel
gnutls28
focal (esm-infra)
gnutls28: 3.6.13-2ubuntu1.12+esm2
jammy
gnutls28: 3.7.3-4ubuntu1.8
jammy (fips-preview)
gnutls28
jammy (fips-updates)
gnutls28: 3.7.3-4ubuntu1.8+Fips1.1
noble
gnutls28: 3.8.3-1.1ubuntu3.5
noble (fips-updates)
gnutls28: 3.8.3-1.1ubuntu3.5+Fips1.1
OpenShift
el8:rhpam-0:7-businesscentral-rhel8-container-7.13.5-4.1777325711
RHEL 8
:appstream:gnutls-0:3.6.16-8.el8_10.5.src
RHEL 9
:appstream:gnutls-0:3.8.3-10.el9_7.src
RHEL 10
gnutls-0:3.8.10-3.el10_1.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."