{"id":"CVE-2026-19445","aliases":["CVE-2026-19445","PSF-2026-43","BIT-LIBPYTHON-2026-19445","BIT-PYTHON-2026-19445","BIT-PYTHON-MIN-2026-19445"],"related":[],"kind":"vulnerability","state":"published","title":"Use-after-free of a server-side SSLContext when sni_callback switches contexts","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-09-30T16:16:04.923Z","modified":"2026-11-10T13:18:30.197Z","severity":{"scorer":"PSF","scheme":"CVSS:4.0","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","score":9.2,"rating":"CRITICAL"},"severities":[{"scorer":"PSF","scheme":"CVSS:4.0","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","score":9.2,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.10.22","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.17","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.15","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.16","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.8","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0rc3","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"34a53dce8174da2fceb12fe084a4def02a10053d"},{"type":"git","status":"affected","fixed":"46133cd57d309652139ada74014aca7665ac552b"},{"type":"git","status":"affected","fixed":"63fab143d94cafae71850831acfb52041ba44af7"},{"type":"git","status":"affected","fixed":"cd7e51e7d4563866fbaa1e2521ae69b45daf3698"},{"type":"git","status":"affected","fixed":"d8717ed01717a9641686e6e6f83f0ab8af235e2c"},{"type":"git","status":"affected","fixed":"b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8"},{"type":"git","status":"affected","fixed":"ec44b5a3258cbda947d5e07242ee562ed05ef24b"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.22"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.17"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.15"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.16"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.8"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.22"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.17"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.15"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.16"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.8"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.22"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.17"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.15"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.16"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.8"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/pull/158504","tags":["patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/QMQIUQB6WGGC3MI7I3WKQXOYOBDSPPS3/","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/issues/156293","tags":["issue-tracking","report","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/34a53dce8174da2fceb12fe084a4def02a10053d","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/46133cd57d309652139ada74014aca7665ac552b","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/63fab143d94cafae71850831acfb52041ba44af7","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/cd7e51e7d4563866fbaa1e2521ae69b45daf3698","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/d8717ed01717a9641686e6e6f83f0ab8af235e2c","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/b12968cefe69ca1dcb8606c832ff73ee7dbf4ba8","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/ec44b5a3258cbda947d5e07242ee562ed05ef24b","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/09/30/17","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-457936.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-19445","tags":["web"],"sources":["bitnami"]}],"credits":["Gregory P. Smith (https://github.com/gpshead)","Seth Larson (https://github.com/sethmlarson)","Bénédikt Tran (https://github.com/picnixz)"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-09T16:30:44.312Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-19445","url":"https://www.cve.org/CVERecord?id=CVE-2026-19445","licence":"CVE Terms of Use","modified":"2026-11-10T12:40:55.732Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2026-43","url":"https://osv.dev/vulnerability/PSF-2026-43","licence":"CC-BY-4.0","modified":"2026-10-09T12:10:32.528Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-19445","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-19445","licence":"Public domain","modified":"2026-11-10T13:18:30.197Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2026-19445","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-19445","licence":"Apache-2.0","modified":"2026-10-09T12:10:32.528Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2026-19445","url":"https://osv.dev/vulnerability/BIT-PYTHON-2026-19445","licence":"Apache-2.0","modified":"2026-10-09T12:10:32.528Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2026-19445","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-19445","licence":"Apache-2.0","modified":"2026-10-09T12:10:32.528Z"}],"updatedAt":"2026-11-25T22:59:41.732Z","epss":{"score":0.00675,"percentile":0.53468,"date":"2026-12-01T12:00:22.000Z"}}