← CVE Intelligence

CVE-2025-4516

Use-after-free in "unicode_escape" decoder with error handler PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Python Software Foundation / CPythonaffected 0 before 3.9.23; affected 3.10.0 before 3.10.18; affected 3.11.0 before 3.11.13; affected 3.12.0 before 3.12.11; affected 3.13.0 before 3.13.4; affected 3.14.0a1 before 3.14.0b2

CWE

CWE-416

References

ADP enrichment

CISA-ADP

No English description supplied.

No references supplied.

CVE

No English description supplied.