CVE-2025-9820

Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function

4.0 medium EPSS 0.22%

Published 26 Jan 2026 Updated 6 Nov 2026 CNA: redhat

Check your servers for CVE-2025-9820

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-9820 affects gnutls, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Severity (CVSS)

4.0 medium CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality none, integrity none, availability low: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 13.7% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 26 Jan 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Weakness

  • CWE-121 Stack-based Buffer Overflow

Affected products

As the CNA lists them.

ProductVersions
gnutls
package gnutls
affected 3.8.1
affected 3.8.2
affected 3.8.3
affected 3.8.4
affected 3.8.5
affected 3.8.6
affected 3.8.7
affected 3.8.8
affected 3.8.9
affected 3.8.10
Red Hat Enterprise Linux 10
package gnutls
unaffected 0:3.8.10-3.el10_1 and later
Other versions: affected
Red Hat Enterprise Linux 8
package gnutls
unaffected 0:3.6.16-8.el8_10.5 and later
Other versions: affected
Red Hat Enterprise Linux 8
package gnutls
unaffected 0:3.6.16-8.el8_10.5 and later
Other versions: affected
Red Hat Enterprise Linux 9
package gnutls
unaffected 0:3.8.3-10.el9_7 and later
Other versions: affected
Red Hat Enterprise Linux 9
package gnutls
unaffected 0:3.8.3-10.el9_7 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-businesscentral-monitoring-rhel8
unaffected 7.13.5-4.1777325677 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-businesscentral-rhel8
unaffected 7.13.5-4.1777325711 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-controller-rhel8
unaffected 7.13.5-4.1777325710 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-dashbuilder-rhel8
unaffected 7.13.5-3.1777325680 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-kieserver-rhel8
unaffected 7.13.5-4.1777325709 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-process-migration-rhel8
unaffected 7.13.5-4.1777325680 and later
Other versions: affected
RHEL-8 based Middleware Containers
package rhpam-7/rhpam-smartrouter-rhel8
unaffected 7.13.5-4.1777325708 and later
Other versions: affected
Cert Manager support for Red Hat OpenShift release 1.18
package cert-manager/jetstack-cert-manager-acmesolver-rhel9
unaffected 1791459707 and later
Other versions: affected
Cert Manager support for Red Hat OpenShift release 1.18
package cert-manager/jetstack-cert-manager-rhel9
unaffected 1791459711 and later
Other versions: affected
Cert Manager support for Red Hat OpenShift release 1.18
package cert-manager/cert-manager-istio-csr-rhel9
unaffected 1791459759 and later
Other versions: affected
Cert Manager support for Red Hat OpenShift release 1.18
package cert-manager/cert-manager-operator-rhel9
unaffected 1789029076 and later
Other versions: affected
Cert Manager support for Red Hat OpenShift release 1.18
package cert-manager/cert-manager-operator-bundle
unaffected 1791966259 and later
Other versions: affected
Red Hat Ceph Storage 8
package rhceph/rhceph-8-rhel9
unaffected 1774002867 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-server-rhel9
unaffected 1775668717 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-ui-rhel9
unaffected 1775675922 and later
Other versions: affected
Red Hat Hardened Images
package gnutls-main
unaffected 3.8.12-1.1.hum1 and later
Other versions: affected
Red Hat Insights proxy 1.5
package insights-proxy/insights-proxy-container-rhel9
unaffected 1773685509 and later
Other versions: affected
Red Hat Update Infrastructure 5
package rhui5/cds-rhel9
unaffected 1773670073 and later
Other versions: affected
Red Hat Update Infrastructure 5
package rhui5/haproxy-rhel9
unaffected 1773672059 and later
Other versions: affected
Red Hat Update Infrastructure 5
package rhui5/installer-rhel9
unaffected 1773668803 and later
Other versions: affected
Red Hat Update Infrastructure 5
package rhui5/rhua-rhel9
unaffected 1773670137 and later
Other versions: affected
Red Hat Enterprise Linux 6
package gnutls
affected the record does not list versions
Red Hat Enterprise Linux 7
package gnutls
affected the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-8
affected the record does not list versions
Red Hat OpenShift Container Platform 4
package openshift/ose-rhel-coreos-9
affected the record does not list versions

Is my server affected?

Find the installed version of gnutls and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i gnutls
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-9820 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-9820

RHEL, Rocky, Alma, Fedora

rpm -q gnutls
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-9820

Alpine

apk list --installed | grep -i gnutls

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-9820
trivy image --scanners vuln IMAGE | grep CVE-2025-9820

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Advisories

Other references

Source: the record CVE-2025-9820 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.