PyBytes_DecodeEscape
Objects/bytesobject.c
Last patched
Overview
PyBytes_DecodeEscape in Objects/bytesobject.c (python/cpython) was changed by 2 published CVE fixes between 2017 and 2025, in 7 distinct patches that added or removed 10 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 PyBytes_DecodeEscape, newest first, with the lines each fix touched.
CVE-2025-4516 · line 1224 · +1 −1
Medium · CVSS 5.9EPSS 0.2%2025-05-15CVE-2017-1000158 · lines 973–979 · +7 −1
Critical · CVSS 9.8EPSS 7.9%2017-11-17
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.
Other hotspots in the repository
Functions in python/cpython changed by the most distinct patches.
Frequently asked questions
Common questions about CVE fixes to PyBytes_DecodeEscape.
- How many CVEs have patched PyBytes_DecodeEscape?
- 2 published CVEs changed PyBytes_DecodeEscape in python/cpython, in 7 distinct patches totalling 10 changed lines, between 2017 and 2025.
- What is the latest CVE that changed PyBytes_DecodeEscape?
- CVE-2025-4516 (Use-after-free in "unicode_escape" decoder with error handler), published 2025-05-15, changed lines 1224 of Objects/bytesobject.c.
- How does PyBytes_DecodeEscape compare to the rest of python/cpython?
- python/cpython has 132 CVEs with a located fix in total; 2 of them changed PyBytes_DecodeEscape.
- 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
- Objects/bytesobject.c 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.