_RealGetContents
Lib/zipfile/__init__.py
Last patched
Overview
_RealGetContents in Lib/zipfile/__init__.py (python/cpython) was changed by 2 published CVE fixes between 2024 and 2025, in 4 distinct patches that added or removed 9 lines in total.
python/cpython has 132 CVEs with a located fix in total, so 2% of them touched this function.
CVEs that patched it
Every published CVE whose fix changed _RealGetContents, newest first, with the lines each fix touched.
CVE-2025-8291 · line 1446 · +0 −3
Medium · CVSS 4.3EPSS 0.5%2025-10-07CVE-2024-0450 · lines 1493–1498 · +6 −0
Medium · CVSS 6.2EPSS 0.3%2024-03-19
Get an alert when the next CVE fix lands in python/cpython, with the patched functions.
Monitor these CVEsOther functions in these files
Functions in the same file that CVE fixes also changed.
- 1_read1Lib/zipfile/__init__.py7 patches · 1 CVE2026
- 2decompressLib/zipfile/__init__.py5 patches · 1 CVE2026
- 3_decompressor_needs_inputLib/zipfile/__init__.py5 patches · 1 CVE2026
- 4_extract_memberLib/zipfile/__init__.py4 patches · 1 CVE2026
- 5is_zipfileLib/zipfile/__init__.py4 patches · 1 CVE2025
- 6_write_end_recordLib/zipfile/__init__.py4 patches · 1 CVE2025
- 7_EndRecDataLib/zipfile/__init__.py4 patches · 1 CVE2025
- 8_EndRecData64Lib/zipfile/__init__.py4 patches · 1 CVE2025
Other hotspots in the repository
Functions in python/cpython changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to _RealGetContents.
- How many CVEs have patched _RealGetContents?
- 2 published CVEs changed _RealGetContents in python/cpython, in 4 distinct patches totalling 9 changed lines, between 2024 and 2025.
- What is the latest CVE that changed _RealGetContents?
- CVE-2025-8291 (ZIP64 End of Central Directory (EOCD) Locator record offset not checked), published 2025-10-07, changed lines 1446 of Lib/zipfile/__init__.py.
- How does _RealGetContents compare to the rest of python/cpython?
- python/cpython has 132 CVEs with a located fix in total; 2 of them changed _RealGetContents.
- What do the line numbers refer to?
- Line numbers are in the fixed version of the file, as the upstream patch left it. A CVE whose fix was backported to several branches is listed once, with the lines from the upstream commit.
References
- Lib/zipfile/__init__.py on GitHub (opens in a new tab)
- All patched functions in python/cpython
- Patched functions directory
Fix locations are computed by RadicalNotion.AI from the upstream patch diff of each CVE. CVE data is sourced from the CVE Program.
Track python/cpython CVEs
Get an alert when a new CVE lands in this repository, with the patched functions and AI-written remediation guidance.