CVE-2025-4516

Summary

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 Software

VendorProductVersion RangeStatus
Python Software FoundationCPython0 < 3.10.18affected
Python Software FoundationCPython3.11.0 < 3.11.13affected
Python Software FoundationCPython3.12.0 < 3.12.11affected
Python Software FoundationCPython3.13.0 < 3.13.4affected
Python Software FoundationCPython3.14.0a1 < 3.14.0b2affected

Weaknesses

  • CWE-416: CWE-416 Use After Free

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

CVE Program Container

Additional References

References