CVE-2025-4516
May 15, 2025
There is an issue in CPython when using "bytes.decode("unicode_escape", error="ignore|replace")". If you are not using the "unicode_escape" encoding or an error handler your usage is not affected. To work-around this issue you may stop using the error= handler and instead wrap the bytes.decode() call in a try-except catching the DecodeError.
Affected Packages
https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.12.0 <v3.12.11Fix Suggestion:
Update to version v3.12.11https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.13.0 <v3.13.4Fix Suggestion:
Update to version v3.13.4https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.10.0 <v3.10.18Fix Suggestion:
Update to version v3.10.18https://github.com/python/cpython.git (GITHUB):
Affected version(s) =v3.14.0b1 <v3.14.0b1Fix Suggestion:
Update to version v3.14.0b1https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.11.0 <v3.11.13Fix Suggestion:
Update to version v3.11.13https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v0.9.8 <v3.9.23Fix Suggestion:
Update to version v3.9.23Additional Notes
The description of this vulnerability differs from MITRE.
Related ResourcesĀ (12)
Do you need more information?
Contact UsCVSS v4
Base Score:
5.9
Attack Vector
LOCAL
Attack Complexity
HIGH
Attack Requirements
PRESENT
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
5.1
Attack Vector
LOCAL
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Use After Free
EPSS
Base Score:
0.21