All CVEs / Python Software Foundation
CVE-2025-4516Python Software Foundation CPython
Medium 5.9
Follow: this CVE · Python Software Foundation · Python Software Foundation CPython We alert you by email or Slack (account required).
- Priority
- 35
- CVSS 4.0
- 5.9
- EPSS
- —
- Auth required
- Yes
- Published
- May 15, 2025
- Updated
- Jul 31, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-416
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for CPython.
Affected products
- Python Software Foundation · CPython
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Multiple Vulnerabilities in Third-Party Components in SINEC OS before V3.3 · Siemens · SSA-089022 · Jan 28, 2026 Critical
- Red Hat Security Advisory: python39:3.9 security update · Red Hat · RHSA-2025:23530 · Dec 18, 2025 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.