{
  "id": "CVE-2026-19445",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-19445",
  "published_at": "2026-09-30T16:16:04.923Z",
  "title": "Use-after-free of a server-side SSLContext when sni_callback switches contexts",
  "vendor": "Python Software Foundation",
  "product": "CPython",
  "cvss": {
    "score": 9.2,
    "source": "cna",
    "vector": "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-10-02T01:46:32Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 1.4,
    "repo": "abraxas/cve-2026-19445-sni-uaf",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "A remote, unauthenticated TLS client can make a server crash or call\nthrough a freed pointer if its sni_callback assigns a different context to\nSSLSocket.context (the documented way to select a certificate per server\nname) and nothing else keeps the original ssl.SSLContext alive. Typical\ncases are servers that create an SSLContext per connection or replace it\nwhile connections are open; servers that wrap their listening socket with\nit are not affected.\n\n\nMitigation: keep a reference to every SSLContext that sets sni_callback for\nthe lifetime of the server. TLS clients are not affected.",
  "cwe": "CWE-416",
  "cvss_by_source": {
    "cna": 9.2
  },
  "repos": [
    {
      "repo": "abraxas/cve-2026-19445-sni-uaf",
      "url": "https://github.com/abraxas/cve-2026-19445-sni-uaf",
      "created_at": "2026-10-02T01:46:32Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-07-04T21:33:07Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Python Software Foundation",
        "product": "CPython",
        "ranges": [
          "\u003c 3.10.22",
          "\u003e= 3.11.0, \u003c 3.11.17",
          "\u003e= 3.12.0, \u003c 3.12.15",
          "\u003e= 3.13.0, \u003c 3.13.16",
          "\u003e= 3.14.0, \u003c 3.14.8",
          "\u003e= 3.15.0a1, \u003c 3.15.0rc3"
        ],
        "fixed_in": [
          "3.10.22",
          "3.11.17",
          "3.12.15",
          "3.13.16",
          "3.14.8",
          "3.15.0rc3"
        ]
      }
    ],
    "upgrade": [
      "Upgrade CPython to 3.10.22 or 3.11.17 or 3.12.15 or 3.13.16 or 3.14.8 or 3.15.0rc3 or later."
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/pull/158504"
      },
      {
        "kind": "Vendor advisory",
        "url": "https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
