Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
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.11
Fix Suggestion:
Update to version v3.12.11
https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.13.0 <v3.13.4
Fix Suggestion:
Update to version v3.13.4
https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.10.0 <v3.10.18
Fix Suggestion:
Update to version v3.10.18
https://github.com/python/cpython.git (GITHUB):
Affected version(s) =v3.14.0b1 <v3.14.0b1
Fix Suggestion:
Update to version v3.14.0b1
https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v3.11.0 <v3.11.13
Fix Suggestion:
Update to version v3.11.13
https://github.com/python/cpython.git (GITHUB):
Affected version(s) >=v0.9.8 <v3.9.23
Fix Suggestion:
Update to version v3.9.23
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS 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