Bug 2366509 (CVE-2025-4516) - CVE-2025-4516 cpython: python: CPython DecodeError Handling Vulnerability
Summary: CVE-2025-4516 cpython: python: CPython DecodeError Handling Vulnerability
Keywords:
Status: NEW
Alias: CVE-2025-4516
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2376731 2376732 2376741 2366793 2376722 2376723 2376724 2376725 2376726 2376727 2376728 2376729 2376730 2376733 2376734 2376735 2376736 2376737 2376738 2376739 2376740 2376742
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-15 14:01 UTC by OSIDB Bzimport
Modified: 2025-07-07 08:44 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-15 14:01:35 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.