{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-127231",
        "assignerOrgId": "56096609-bc02-44d5-8c89-cc887c27f7bb",
        "state": "PUBLISHED",
        "assignerShortName": "gnutls",
        "dateReserved": "2026-11-12T16:46:54.753Z",
        "datePublished": "2026-11-18T23:29:26.526Z",
        "dateUpdated": "2026-11-18T23:29:26.526Z"
    },
    "containers": {
        "cna": {
            "title": "gnutls: double free in X.509 name constraints deinitialization after failed memory allocation",
            "metrics": [
                {
                    "other": {
                        "type": "GnuTLS severity rating",
                        "content": {
                            "value": "Low",
                            "description": "GnuTLS severity rating: Low. Exploitation requires an allocation failure to happen at a specific call during name constraints reinitialization.",
                            "namespace": "https://gitlab.com/gnutls/gnutls/-/raw/3.8.14/SECURITY.md",
                            "justification": [
                                "memory-pressure"
                            ]
                        }
                    }
                },
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 5.9,
                        "baseSeverity": "MEDIUM",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "NONE",
                        "availabilityImpact": "HIGH"
                    },
                    "format": "CVSS"
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A double free in the X.509 name constraints enforcement of GnuTLS 3.8.13 on all platforms allows a remote attacker to cause a denial of service (application crash) via a certificate chain containing a NameConstraints extension processed while the application is under memory pressure. When an already populated name constraints object is reinitialized, previously freed list pointers are not cleared, so a memory allocation failure precisely at reinitialization leaves a dangling pointer that is freed again during a later cleanup."
                }
            ],
            "affected": [
                {
                    "packageName": "gnutls",
                    "vendor": "GnuTLS Project",
                    "product": "GnuTLS",
                    "repo": "https://gitlab.com/gnutls/gnutls",
                    "programFiles": [
                        "lib/x509/name_constraints.c"
                    ],
                    "programRoutines": [
                        {
                            "name": "_gnutls_x509_name_constraints_clear"
                        },
                        {
                            "name": "name_constraints_deinit"
                        },
                        {
                            "name": "name_constraints_node_list_deinit"
                        }
                    ],
                    "versions": [
                        {
                            "version": "3.8.13",
                            "status": "affected",
                            "lessThan": "3.8.14",
                            "versionType": "semver"
                        }
                    ],
                    "defaultStatus": "unaffected"
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-415",
                            "description": "CWE-415: Double Free",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Xuqing Yang <rigelyoung@icloud.com>"
                },
                {
                    "lang": "en",
                    "type": "remediation developer",
                    "value": "Xuqing Yang <rigelyoung@icloud.com>"
                }
            ],
            "references": [
                {
                    "url": "https://gitlab.com/gnutls/gnutls/-/work_items/1906",
                    "tags": [
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://gnutls.org/security-new.html",
                    "tags": [
                        "vendor-advisory"
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "56096609-bc02-44d5-8c89-cc887c27f7bb",
                "shortName": "gnutls",
                "dateUpdated": "2026-11-18T23:29:26.526Z"
            },
            "datePublic": "2026-11-18T00:00:00.000Z",
            "solutions": [
                {
                    "lang": "en",
                    "value": "Backport upstream commit \"x509: make name constraints deinitialization idempotent\", or update to GnuTLS 3.8.14."
                }
            ],
            "exploits": [
                {
                    "lang": "en",
                    "value": "Exploitation has only been observed under precise allocation failure injection."
                }
            ],
            "timeline": [
                {
                    "time": "2026-06-15T08:59:40.000Z",
                    "lang": "en",
                    "value": "reported"
                },
                {
                    "time": "2026-08-17T17:19:49.000Z",
                    "lang": "en",
                    "value": "reproduced"
                },
                {
                    "time": "2026-11-18T00:00:00.000Z",
                    "lang": "en",
                    "value": "made public"
                }
            ],
            "source": {
                "advisory": "GNUTLS-SA-2026-11-18-3",
                "discovery": "EXTERNAL",
                "url": "https://gitlab.com/gnutls/gnutls/-/work_items/1906"
            },
            "x_generator": {
                "engine": "cvelib 1.8.0"
            }
        }
    }
}