REDHAT-BUG-2294682: Low severity pypi/cpython vulnerability

Published Jun 28, 2024
·
Updated

CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.setnpnprotocols() which is an invalid value for the underlying OpenSSL API. This results in a buffer over-read when NPN is used (see CVE-2024-5535 for OpenSSL). This vulnerability is of low severity due to NPN being not widely used and specifying an empty list likely being uncommon in-practice (typically a protocol name would be configured).

https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e https://github.com/python/cpython/pull/23014 https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/

Affected Software

2 affected components
pypi/cpython<=3.9
OpenSSL OpenSSL

Event History

Jun 28, 2024
Data Sourced
via Red Hat·03:45 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of REDHAT-BUG-2294682?

The severity of REDHAT-BUG-2294682 is considered low.

2

How do I fix REDHAT-BUG-2294682?

To fix REDHAT-BUG-2294682, ensure that an empty list is not configured for SSLContext.set_npn_protocols() in CPython 3.9 or earlier.

3

What is the impact of REDHAT-BUG-2294682?

The impact of REDHAT-BUG-2294682 includes a potential buffer over-read when NPN is used.

4

Which versions of CPython are affected by REDHAT-BUG-2294682?

CPython versions up to and including 3.9 are affected by REDHAT-BUG-2294682.

5

Is the NPN protocol related to REDHAT-BUG-2294682 vulnerable?

Yes, the NPN protocol is related to REDHAT-BUG-2294682 and can lead to vulnerabilities when improperly configured.

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