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.
Metrics
Affected Vendors & Products
References
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
|
Thu, 15 May 2025 14:00:00 +0000
Type | Values Removed | Values Added |
---|---|---|
References |
|
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
|

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

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

Status : Awaiting Analysis
Published: 2025-05-15T14:15:31.753
Modified: 2025-06-03T14:15:49.697
Link: CVE-2025-4516

No data.