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.
References (12)
Core 12
Core References
Issue Tracking issue-tracking
https://github.com/python/cpython/issues/133767
Issue Tracking patch
https://github.com/python/cpython/pull/129648
Various Sources vendor-advisory
https://mail.python.org/archives/list/[email protected]/thread/L75IPBBTSCYEF56I2M4KIW353BB3AY74/
Scores
CVSS v4
5.9
EPSS
0.0021
EPSS Percentile
43.2%
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-416
Status
published
Products (7)
Python Software Foundation/CPython
< 3.10.18
Python Software Foundation/CPython
< 3.9.23
Python Software Foundation/CPython
3.10.0 - 3.10.18
Python Software Foundation/CPython
3.11.0 - 3.11.13
Python Software Foundation/CPython
3.12.0 - 3.12.11
Python Software Foundation/CPython
3.13.0 - 3.13.4
Python Software Foundation/CPython
3.14.0a1 - 3.14.0b2
Published
May 15, 2025
Tracked Since
Feb 18, 2026