PT-2025-21282 · Python+10 · Cpython+10
Serhiy-Storchaka
·
Published
2025-05-15
·
Updated
2026-05-18
·
CVE-2025-4516
CVSS v4.0
5.9
Medium
| Vector | AV:L/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions:
CPython (affected versions not specified)
Description:
The issue arises when using
bytes.decode() with the "unicode escape" encoding and an error handler set to "ignore" or "replace". Users not utilizing this specific encoding or error handler are not affected.Recommendations:
To work around this issue, consider stopping the use of the error handler in the
bytes.decode() call and instead wrap it in a try-except block to catch the DecodeError.Fix
DoS
Use After Free
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Almalinux
Astra Linux
Cpython
Centos
Debian
Linuxmint
Red Hat
Red Os
Rocky Linux
Suse
Ubuntu