Bugzilla – Bug 1227233
VUL-0: CVE-2024-5642: python,python3,python36,python39: invalid value sent to underlying OpenSSL API may cause a buffer overread when NPN is used
Last modified: 2024-07-01 13:15:03 UTC
CPython 3.9 and earlier doesn't disallow configuring an empty list ("[]") for SSLContext.set_npn_protocols() 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). References: http://oss-security.openwall.org/wiki/mailing-lists/oss-security http://mail.pauldotcom.com/cgi-bin/mailman/listinfo/pauldotcom https://lists.immunityinc.com/mailman/listinfo/dailydave https://seclists.org/oss-sec/2024/q2/307 http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-5642 https://www.cve.org/CVERecord?id=CVE-2024-5642 https://github.com/python/cpython/pull/23014 https://jbp.io/2024/06/27/cve-2024-5535-openssl-memory-safety.html https://github.com/python/cpython/commit/39258d3595300bc7b952854c915f63ae2d4b9c3e https://mail.python.org/archives/list/security-announce@python.org/thread/PLP2JI3PJY33YG6P5BZYSSNU66HASXBQ/ https://bugzilla.redhat.com/show_bug.cgi?id=2294682 https://bugzilla.redhat.com/show_bug.cgi?id=2294581 https://seclists.org/oss-sec/2024/q2/311 http://www.openwall.com/lists/oss-security/2024/06/28/4