REDHAT-BUG-2366509: Medium severity pypi/cpython vulnerability

Published May 15, 2025
·
Updated

There is an issue in CPython when using bytes.decode("unicodeescape", error="ignore|replace"). If you are not using the "unicodeescape" 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

1 affected component
pypi/cpython

Event History

May 15, 2025
Data Sourced
via Red Hat·02:01 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2366509?

The severity of REDHAT-BUG-2366509 is considered high due to potential data loss or application crashes.

2

How do I fix REDHAT-BUG-2366509?

To fix REDHAT-BUG-2366509, avoid using the 'unicode_escape' encoding or error handlers with bytes.decode().

3

What versions of CPython are affected by REDHAT-BUG-2366509?

REDHAT-BUG-2366509 affects all versions of CPython that utilize the 'unicode_escape' encoding with error handlers.

4

Is there a workaround for REDHAT-BUG-2366509?

Yes, a workaround for REDHAT-BUG-2366509 involves using bytes.decode() without the error handler.

5

Who is impacted by REDHAT-BUG-2366509?

Developers and applications that depend on CPython's bytes.decode with 'unicode_escape' are impacted by REDHAT-BUG-2366509.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203