Use After Free in Python Software Foundation Cpython

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

Vulnerability class: Use-After-Free

Published · last modified .

EPSS exploit prediction

EPSS 0.002, 13.3th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

Weakness classification (CWE)

Public exploits and proof-of-concept code

Also mentioned in 4 other repositories (adegoodyer/kubernetes-admin-toolkit, CKA-codespace/cg-compare, GitHubForSnap/matrix-commander-gael, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.

References