Python 3.12.16 vulnerabilities
16 published vulnerabilities affect Python 3.12.16.
What to upgrade to
The newest Python release we know of is 3.15.2, with 9 known CVEs.
| Upgrade to | Fixes | Still open | New in that release |
|---|---|---|---|
| 3.15.2newest release | 7 of 16 | 9CVE-2026-107784, CVE-2026-115559, CVE-2026-124249 and 6 more | none |
"Fixes": CVEs on this page that don't affect that release. "New in that release": CVEs that affect it and not this one.
CVEs affecting Python 3.12.16
Worst first: ranked by Dawnsentry's score for a device that faces the internet (CVSS, plus known exploitation and EPSS). "Fixed in" is the first release that carries the fix, where the source names one.
| CVE | CVSS | Exploitation | EPSS | Fixed in |
|---|---|---|---|---|
| CVE-2026-107784tarfile extraction filters accept drive-relative paths on Windows | 6.3 | None known | 1% | 3.16.0CVE record |
| CVE-2026-115559imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS | 6.3 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-124249`http.cookiejar` applies expired `Set-Cookie` to cookie store before policy validation | 6.3 | None known | under 1% | 3.16.0a2CVE record |
| CVE-2026-19672tarfile extraction filter bypass allows creation of directories outside the destination | 6.3 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-6019BaseCookie.js_output() does not neutralize embedded characters | 6.1 | None known | under 1% | 3.13.14CVE record |
| CVE-2026-3446Base64 decoding stops at first padded quad by default | 6.0 | None known | under 1% | 3.13.13CVE record |
| CVE-2025-15367POP3 command injection in user-controlled commands | 5.9 | None known | under 1% | 3.15.0a6CVE record |
| CVE-2025-15366IMAP command injection in user-controlled commands | 5.9 | None known | under 1% | 3.13.15CVE record |
| CVE-2026-115791Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction | 5.3 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-116566socket.getaddrinfo() accepts embedded null bytes in host and port | 5.3 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-5713Out-of-bounds read/write during remote profiling and asyncio process introspection when connecting to malicious target | 5.3 | None known | under 1% | 3.14.5CVE record |
| CVE-2025-12781base64.b64decode() always accepts "+/" characters, despite setting altchars | 5.3 | None known | under 1% | 3.13.10CVE record |
| CVE-2026-16052Cookie Attribute Injection via Unescaped Semicolons in http.cookies.Morsel | 2.3 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-103995Lenient parsing of integers for response body and chunk framing | 2.0 | None known | under 1% | 3.16.0CVE record |
| CVE-2026-19552ssl.get_server_certificate(addr, ca_certs=...) verifies the chain but never the identity | 0.0 | None known | under 1% | 3.16.0a2CVE record |
| CVE-2026-3479pkgutil.get_data() does not enforce documented restrictions | 0.0 | None known | under 1% | 3.13.13CVE record |
Fixed since 3.12.15
3 CVEs that affect 3.12.15, the release before it, do not affect 3.12.16 (1 critical):
- CVE-2026-115557 Distrust compromised intermediate certificates in ssl module CVSS 9.4
- CVE-2026-114583 tar filter allows writing outside destination via empty-named symlink CVSS 6.9
- CVE-2024-3220 Default mimetype known files writeable on Windows CVSS 2.3
Support for the 3.12 line
The 3.12 line was first released 2 October 2023. It gets security fixes until 31 October 2028. Active support (new features and bug fixes) ended 2 April 2025. Its latest release is 3.12.16. Dates and latest release from endoflife.date.
Other Python 3.12 releases
3.12.1519 3.12.1427 3.12.1350 3.12.1259 3.12.1162 3.12.1068 3.12.968 3.12.870 3.12.771 3.12.671 3.12.575 3.12.477 3.12.379 3.12.281
How this list is made
These are the CVEs Dawnsentry matches to each Python version, with the same engine its customers use. Where the vendor publishes its own advisory, that decides whether a version is affected, down to hotfix level; otherwise the CVE record and NVD's version data decide. CVSS comes from NVD or the reporting organisation, exploitation from CISA's Known Exploited Vulnerabilities catalogue, CISA's ratings, Metasploit and Nuclei, and EPSS (the probability of exploitation in the next 30 days) from FIRST. The list is rebuilt every day. Always confirm against the vendor's advisory before you act on it.
Updated 2 December 2026.