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.
History

Tue, 03 Jun 2025 13:30:00 +0000


Mon, 19 May 2025 10:30:00 +0000

Type Values Removed Values Added
References

Fri, 16 May 2025 18:45:00 +0000

Type Values Removed Values Added
References

Thu, 15 May 2025 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 15 May 2025 14:00:00 +0000


Thu, 15 May 2025 13:45:00 +0000

Type Values Removed Values Added
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.
Title Use-after-free in "unicode_escape" decoder with error handler
Weaknesses CWE-416
References
Metrics cvssV4_0

{'score': 5.9, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published: 2025-05-15T13:29:20.126Z

Updated: 2025-06-03T20:53:33.583Z

Reserved: 2025-05-09T14:59:53.878Z

Link: CVE-2025-4516

cve-icon Vulnrichment

Updated: 2025-05-19T10:03:31.542Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-05-15T14:15:31.753

Modified: 2025-06-03T14:15:49.697

Link: CVE-2025-4516

cve-icon Redhat

No data.