{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.7.7"
                  },
                  {
                    "last_affected": "3.8.13"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "6231f181fda3a1b4ef64e73803cedc587a6202df"
            },
            {
              "last_affected": "b390d80208ed60f1b33ad899475951a8efb40ccd"
            }
          ],
          "repo": "https://gitlab.com/gnutls/gnutls",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "gnutls",
    "cwe_ids": [
      "CWE-476"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/127xxx/CVE-2026-127040.json"
  },
  "details": "The RSA-PSK ClientKeyExchange handler in gnutls before 3.8.14 does not return after detecting a memory allocation failure when copying the PSK username, which allows remote attackers to cause a denial of service for a peer under heap pressure.",
  "id": "CVE-2026-127040",
  "modified": "2026-11-19T00:45:56.330352295Z",
  "published": "2026-11-18T23:29:11.461Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/127xxx/CVE-2026-127040.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://gitlab.com/gnutls/gnutls"
    },
    {
      "type": "REPORT",
      "url": "https://gitlab.com/gnutls/gnutls/-/work_items/1868"
    },
    {
      "type": "ADVISORY",
      "url": "https://gnutls.org/security-new.html"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-127040"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "gnutls: denial of service via memory allocation failure in RSA-PSK ClientKeyExchange"
}