Back to search
CVE-2025-4516
Published: May 15, 2025
Modified: Apr 21, 2026
PUBLISHED
Description
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.
| Vendor | Product | Versions |
|---|---|---|
Python Software Foundation | CPython | affected 0 - < 3.10.18affected 3.11.0 - < 3.11.13affected 3.12.0 - < 3.12.11affected 3.13.0 - < 3.13.4affected 3.14.0a1 - < 3.14.0b2 |
Weaknesses (CWE)
References
https://github.com/python/cpython/issues/133767
issue-tracking
Security Training
Train your team to recognize and prevent security threats with our comprehensive security awareness program.
Start TrainingVulnerability Scanning
Discover vulnerabilities in your applications and infrastructure before attackers do.
Scan Now