cbcvebase.
CVE-2025-4516
published 2025-05-15

CVE-2025-4516: 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…

PriorityP422medium5.9CVSS 4.0
AVLACHATPPRNUINVCNVINVAHSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
EPSS
0.18%
7.4th percentile
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

13 ranges
VendorProductVersion rangeFixed in
debianpypy3< python3.13 3.13.3-4 (forky)python3.13 3.13.3-4 (forky)
debianpython3.11< python3.13 3.13.3-4 (forky)python3.13 3.13.3-4 (forky)
debianpython3.13< python3.13 3.13.3-4 (forky)python3.13 3.13.3-4 (forky)
debianpython3.9< python3.13 3.13.3-4 (forky)python3.13 3.13.3-4 (forky)
msrcazl3_python3_3.12.9-2_on_azure_linux_3.0
msrcazl3_tensorflow_2.16.1-9_on_azure_linux_3.0
msrccbl2_python3_3.9.19-13_on_cbl_mariner_2.0
msrccbl2_python3_3.9.19-14_on_cbl_mariner_2.0
python_software_foundationcpython< 3.10.183.10.18
python_software_foundationcpython>= 3.11.0 < 3.11.133.11.13
python_software_foundationcpython>= 3.12.0 < 3.12.113.12.11
python_software_foundationcpython>= 3.13.0 < 3.13.43.13.4
python_software_foundationcpython>= 3.14.0a1 < 3.14.0b23.14.0b2

CVSS provenance

nvdv4.05.9MEDIUMCVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv5.9MEDIUM
vendor_debian5.9LOW
vendor_msrc5.9MEDIUM
vendor_redhat5.9MEDIUM
vendor_ubuntu2.3LOW
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.