---
title: "python/cpython: functions and files changed by CVE fixes"
url: https://radicalnotion.ai/fixes/python/cpython
type: fixes-repository
description: "131 CVE fixes in python/cpython changed 300 functions across 151 files."
updated: 2026-11-12
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# python/cpython: patched functions

- **CVEs with a located fix:** 131
- **Functions patched:** 300
- **Files patched:** 151
- **Diff hunks:** 3,418
- **Languages:** python, c
- **Rank by CVE fixes:** 27 of 12,275
- **First fix:** 2007-09-18
- **Latest fix:** 2026-11-12
- **Repository:** [https://github.com/python/cpython](https://github.com/python/cpython)

## Typical fix size

- Median lines changed per fix: 72
- Fixes touching a single function: 32%
- Fixes under 20 changed lines: 22%

## Most-patched functions

| Function | File | CVEs | Patches | Last fixed |
| --- | --- | --- | --- | --- |
| [makelink\_with\_filter](https://radicalnotion.ai/fixes/python/cpython/makelink_with_filter) | Lib/tarfile.py | 9 | 25 | 2026-09-14 |
| [\_proc\_pax](https://radicalnotion.ai/fixes/python/cpython/_proc_pax) | Lib/tarfile.py | 3 | 20 | 2026-03-12 |
| [urlsplit](https://radicalnotion.ai/fixes/python/cpython/urlsplit) | Lib/urllib/parse.py | 4 | 18 | 2025-01-31 |
| [\_get\_filtered\_attrs](https://radicalnotion.ai/fixes/python/cpython/_get_filtered_attrs) | Lib/tarfile.py | 8 | 14 | 2026-10-22 |
| [\_create](https://radicalnotion.ai/fixes/python/cpython/_create) | Lib/ssl.py | 2 | 12 | 2026-09-30 |
| [open](https://radicalnotion.ai/fixes/python/cpython/open) | Lib/webbrowser.py | 2 | 12 | 2026-04-13 |
| [\_check\_url](https://radicalnotion.ai/fixes/python/cpython/_check_url) | Lib/webbrowser.py | 1 | 11 | 2026-03-20 |
| [socketpair](https://radicalnotion.ai/fixes/python/cpython/socketpair) | Lib/socket.py | 1 | 10 | 2024-07-29 |
| [extract](https://radicalnotion.ai/fixes/python/cpython/extract) | Lib/tarfile.py | 6 | 9 | 2026-06-30 |
| [data\_filter](https://radicalnotion.ai/fixes/python/cpython/data_filter) | Lib/tarfile.py | 1 | 8 | 2024-09-03 |
| [\_proc\_gnusparse\_00](https://radicalnotion.ai/fixes/python/cpython/_proc_gnusparse_00) | Lib/tarfile.py | 1 | 8 | 2024-09-03 |
| [\_write\_headers](https://radicalnotion.ai/fixes/python/cpython/_write_headers) | Lib/email/generator.py | 2 | 7 | 2026-01-23 |
| [PyBytes\_DecodeEscape](https://radicalnotion.ai/fixes/python/cpython/PyBytes_DecodeEscape) | Objects/bytesobject.c | 2 | 7 | 2025-05-15 |
| [\_checknetloc](https://radicalnotion.ai/fixes/python/cpython/_checknetloc) | Lib/urllib/parse.py | 2 | 7 | 2019-06-07 |
| [\_rmtree](https://radicalnotion.ai/fixes/python/cpython/_rmtree) | Lib/tempfile.py | 1 | 7 | 2026-09-29 |

## Most-patched files

| File | CVEs | Functions |
| --- | --- | --- |
| Lib/tarfile.py | 19 | 16 |
| Modules/\_ssl.c | 6 | 10 |
| Lib/http/client.py | 6 | 8 |
| Lib/urllib/request.py | 6 | 8 |
| Lib/urllib/parse.py | 6 | 7 |
| Lib/ntpath.py | 6 | 6 |
| Lib/posixpath.py | 6 | 4 |
| Include/patchlevel.h | 6 | 0 |
| Lib/zipfile/\_\_init\_\_.py | 5 | 16 |
| Lib/zipfile.py | 5 | 15 |

## Latest CVE fixes

| CVE | Title | Severity | CVSS | CISA KEV | Functions changed | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-16052 | Cookie Attribute Injection via Unescaped Semicolons in http.cookies.Morsel | low | 2.3 | No | \_check\_attribute, update | 2026-11-12 |
| CVE-2026-115559 | imaplib STARTTLS serves plaintext bytes buffered before the handshake as if they came over TLS | medium | 6.3 | No | starttls | 2026-11-10 |
| CVE-2026-115791 | Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction | medium | 5.3 | No | \_remove\_sys\_path0, main, main | 2026-11-10 |
| CVE-2026-124249 | \`http.cookiejar\` applies expired \`Set-Cookie\` to cookie store before policy validation | medium | 6.3 | No | \_cookie\_from\_cookie\_tuple | 2026-11-09 |
| CVE-2026-19552 | ssl.get\_server\_certificate(addr, ca\_certs=...) verifies the chain but never the identity | none | 0.0 | No | get\_server\_certificate | 2026-11-09 |
| CVE-2026-119170 | Regression in FIPS enforcement of hash algorithms affecting only Python 3.14.10 | high | 8.2 | No | - | 2026-11-06 |
| CVE-2026-116566 | socket.getaddrinfo() accepts embedded null bytes in host and port | medium | 5.3 | No | addrinfo | 2026-10-29 |
| CVE-2026-103995 | Lenient parsing of integers for response body and chunk framing | low | 2.0 | No | begin, \_read\_next\_chunk\_size | 2026-10-27 |
| CVE-2026-115557 | Distrust compromised intermediate certificates in ssl module | critical | 9.4 | No | - | 2026-10-24 |
| CVE-2026-114583 | tar filter allows writing outside destination via empty-named symlink | medium | 6.9 | No | \_get\_filtered\_attrs | 2026-10-22 |
| CVE-2026-19553 | SSLContext.wrap\_bio() missing validation of server\_hostname parameter | high | 7.6 | No | \_create, \_check\_sslobject\_params | 2026-09-30 |
| CVE-2026-19445 | Use-after-free of a server-side SSLContext when sni\_callback switches contexts | critical | 9.2 | No | - | 2026-09-30 |

## Frequently asked questions

### How many CVEs have a located fix in python/cpython?

131 published CVEs have a fix traced to functions in python/cpython, touching 300 functions across 151 files.

### Which function in python/cpython has been patched most often?

makelink\_with\_filter in Lib/tarfile.py has been changed by 25 distinct patches, fixing 9 CVEs, from 2025 to 2026.

### How large is a typical CVE fix in python/cpython?

The median fix changes 72 lines. 22% of fixes change 20 lines or fewer, and 32% change a single function.

### How is a fix located to a function?

The upstream fix commit for each CVE is fetched and its diff is split into hunks. Each hunk is attributed to the function, method or type it changes, using the definition the diff itself names. Backports of the same fix to stable branches are counted once.

## Similar repositories

- [android.googlesource.com/platform-packages-apps-Settings](https://radicalnotion.ai/fixes/android.googlesource.com/platform-packages-apps-settings) (133 CVEs)
- [thorsten/phpmyfaq](https://radicalnotion.ai/fixes/thorsten/phpmyfaq) (123 CVEs)
- [xwiki/xwiki-platform](https://radicalnotion.ai/fixes/xwiki/xwiki-platform) (140 CVEs)
- [apache/camel](https://radicalnotion.ai/fixes/apache/camel) (122 CVEs)
- [pimcore/pimcore](https://radicalnotion.ai/fixes/pimcore/pimcore) (122 CVEs)
- [mattermost/mattermost](https://radicalnotion.ai/fixes/mattermost/mattermost) (141 CVEs)
- [keycloak/keycloak](https://radicalnotion.ai/fixes/keycloak/keycloak) (121 CVEs)
- [FreeRDP/FreeRDP](https://radicalnotion.ai/fixes/freerdp/freerdp) (145 CVEs)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/fixes/python/cpython). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
