CVE Database
/

CVE-2025-4516

Back to search

CVE-2025-4516

Published: May 15, 2025

Modified: Apr 21, 2026

PUBLISHED

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.

VendorProductVersions

Python Software Foundation

CPython

affected
0 - < 3.10.18
affected
3.11.0 - < 3.11.13
affected
3.12.0 - < 3.12.11
affected
3.13.0 - < 3.13.4
affected
3.14.0a1 - < 3.14.0b2

Weaknesses (CWE)

Security Training

Train your team to recognize and prevent security threats with our comprehensive security awareness program.

Start Training

Vulnerability Scanning

Discover vulnerabilities in your applications and infrastructure before attackers do.

Scan Now