CVE-2025-9820

Source
https://cve.org/CVERecord?id=CVE-2025-9820
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-9820.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-9820
Downstream
ALPINE (1)
AZL (2)
BELL (1)
CLSA (1)
DEBIAN (1)
ECHO (1)
MGASA (1)
OESA (5)
openSUSE (2)
RHSA (4)
RLSA (3)
ROOT (2)
SUSE (11)
UBUNTU (1)
Related
Published
2026-01-26T19:58:32Z
Modified
2026-10-22T19:04:58Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
Gnutls: stack-based buffer overflow in gnutls_pkcs11_token_init() function
Details

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.

Database specific
{
    "cna_assigner": "redhat",
    "cwe_ids": [
        "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/9xxx/CVE-2025-9820.json",
    "unresolved_ranges": [
        {
            "extracted_events": [
                {
                    "range": [
                        {
                            "fixed": "0:3.8.10-3.el10_1"
                        },
                        {
                            "fixed": "0:3.6.16-8.el8_10.5"
                        },
                        {
                            "fixed": "0:3.6.16-8.el8_10.5"
                        },
                        {
                            "fixed": "0:3.8.3-10.el9_7"
                        },
                        {
                            "fixed": "0:3.8.3-10.el9_7"
                        },
                        {
                            "fixed": "7.13.5-4.1777325677"
                        },
                        {
                            "fixed": "7.13.5-4.1777325711"
                        },
                        {
                            "fixed": "7.13.5-4.1777325710"
                        },
                        {
                            "fixed": "7.13.5-3.1777325680"
                        },
                        {
                            "fixed": "7.13.5-4.1777325709"
                        },
                        {
                            "fixed": "7.13.5-4.1777325680"
                        },
                        {
                            "fixed": "7.13.5-4.1777325708"
                        },
                        {
                            "fixed": "1791459707"
                        },
                        {
                            "fixed": "1791459711"
                        },
                        {
                            "fixed": "1791459759"
                        },
                        {
                            "fixed": "1789029076"
                        },
                        {
                            "fixed": "1791966259"
                        },
                        {
                            "fixed": "1774002867"
                        },
                        {
                            "fixed": "1775668717"
                        },
                        {
                            "fixed": "1775675922"
                        },
                        {
                            "fixed": "3.8.12-1.1.hum1"
                        },
                        {
                            "fixed": "1773685509"
                        },
                        {
                            "fixed": "1773670073"
                        },
                        {
                            "fixed": "1773672059"
                        },
                        {
                            "fixed": "1773668803"
                        },
                        {
                            "fixed": "1773670137"
                        }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "InverseAffectedRanges"
                }
            ]
        }
    ]
}
References

Affected packages

Git / gitlab.com/gnutls/gnutls

Affected ranges

Type
GIT
Repo
https://gitlab.com/gnutls/gnutls
Events
Database specific
Show details
{
    "extracted_events": [
        {
            "range": [
                {
                    "introduced": "3.8.1"
                },
                {
                    "last_affected": "3.8.1"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.2"
                },
                {
                    "last_affected": "3.8.2"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.3"
                },
                {
                    "last_affected": "3.8.3"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.4"
                },
                {
                    "last_affected": "3.8.4"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.5"
                },
                {
                    "last_affected": "3.8.5"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.6"
                },
                {
                    "last_affected": "3.8.6"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.7"
                },
                {
                    "last_affected": "3.8.7"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.8"
                },
                {
                    "last_affected": "3.8.8"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.9"
                },
                {
                    "last_affected": "3.8.9"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "introduced": "3.8.10"
                },
                {
                    "last_affected": "3.8.10"
                }
            ],
            "source": "AFFECTED_FIELD",
            "strategy": "StandaloneSingleVersion"
        },
        {
            "range": [
                {
                    "fixed": "1d56f96f6ab5034d677136b9d50b5a75dff0faf5"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

3.*
3.8.1
3.8.10
3.8.2
3.8.3
3.8.4
3.8.5
3.8.6
3.8.7
3.8.8
3.8.9

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-9820.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "203081701998267077212086687325320656047",
                "181103679989110600517533548016277704131",
                "39853057649325964027587234063574987404",
                "259048303717493519631185376627170807634",
                "235519305165135146109306515938527170000",
                "15365237184004671114243159335111336950",
                "128494245172431755117396483110562105716",
                "44347100990748648967188547802763753138",
                "328331381237090027273525864829690989806",
                "255687099527695671086163998843993578170",
                "226269730992432168968068826384392231200"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2025-9820-2f514dfb",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://gitlab.com/gnutls/gnutls@1d56f96f6ab5034d677136b9d50b5a75dff0faf5",
        "target": {
            "file": "lib/pkcs11_write.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "129252198033229729266867875486069486085",
            "length": 734
        },
        "id": "CVE-2025-9820-ef29652e",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://gitlab.com/gnutls/gnutls@1d56f96f6ab5034d677136b9d50b5a75dff0faf5",
        "target": {
            "file": "lib/pkcs11_write.c",
            "function": "gnutls_pkcs11_token_init"
        }
    }
]
vanir_signatures_modified
"2026-10-22T19:04:58Z"