Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2024-5642— Buffer overread when using an empty list with SSLContext.set_npn_protocols()

Quick assessment

Affected
Python Software Foundation CPython
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Python是Python基金会的一套开源的、面向对象的程序设计语言。该语言具有可扩展、支持模块和包、支持多种平台等特点。 Python 3.9 及之前版本存在安全漏洞,该漏洞源于使用 NPN 时会导致缓冲区过度读取。

AI Predicted 5.3 Difficulty: Moderate EPSS 0.74% · P53

Possible ATT&CK Techniques 1 AI

T1210 · Exploitation of Remote Services

Affected Version Matrix 2

VendorProduct Version RangeStatus
Python Software Foundation CPython < 3.9.24 affected
3.10.0a1< 3.10.0b1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2024-5642

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Buffer overread when using an empty list with SSLContext.set_npn_protocols()
Source: CVE Program / CVE List V5
Vulnerability Description
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).
Source: CVE Program / CVE List V5
CVSS Information
N/A
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5
Vulnerability Title
Python 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Python是Python基金会的一套开源的、面向对象的程序设计语言。该语言具有可扩展、支持模块和包、支持多种平台等特点。 Python 3.9 及之前版本存在安全漏洞,该漏洞源于使用 NPN 时会导致缓冲区过度读取。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
Python Software Foundation CPython 0 ~ 3.9.24 -

II. Public POCs for CVE-2024-5642

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2024-5642

请登录查看更多情报信息。

Patches & Fixes for CVE-2024-5642 (3)

Vendor Advisories for CVE-2024-5642 (1)

Mailing List Discussions for CVE-2024-5642 (1)

Other References for CVE-2024-5642 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2024-5642

No comments yet


Leave a comment