一、漏洞信息
漏洞编号:CVE-2024-0397
漏洞归属组件:python3
漏洞归属的版本:3.10.0,3.10.2,3.10.9,3.11.1,3.11.4,3.11.6,3.7.9,3.8.5,3.9.9
CVSS V3.0分值:
BaseScore:7.4 High
Vector:CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
漏洞简述:
A defect was discovered in the Python “ssl” module where there is a memoryrace condition with the ssl.SSLContext methods “cert_store_stats()” and“get_ca_certs()”. The race condition can be triggered if the methods arecalled at the same time as certificates are loaded into the SSLContext,such as during the TLS handshake with a certificate directory configured.This issue is fixed in CPython 3.10.14, 3.11.9, 3.12.3, and 3.13.0a5.
漏洞公开时间:2024-06-18 00:15:10
漏洞创建时间:2024-06-19 22:16:25
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2024-0397
漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:
影响的包 | 修复版本 | 修复补丁 | 问题引入补丁 | 来源 |
---|---|---|---|---|
https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d | cna.python.org | |||
https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524 | cna.python.org | |||
https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e | cna.python.org | |||
https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286 | cna.python.org | |||
https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa | cna.python.org | |||
https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab | cna.python.org | |||
https://github.com/python/cpython/pull/114573 | cna.python.org | |||
https://github.com/python/cpython/pull/114573 | suse_bugzilla |
二、漏洞分析结构反馈
影响性分析说明:
在Python“ssl”模块中发现了一个缺陷,其中ssl.SSLContext方法“cert_store_stats()”和“get_ca_certs()”存在内存竞争条件。如果在将证书加载到SSLContext的同时调用方法,则可能会触发竞争条件,例如在配置了证书目录的TLS握手期间。
openEuler评分:
7.4
Vector:CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
受影响版本排查(受影响/不受影响):
1.master(3.10.0):受影响
2.openEuler-24.03-LTS(3.11.6):受影响
3.openEuler-24.03-LTS-Next(3.11.6):受影响
4.openEuler-20.03-LTS-SP4(3.7.9):不受影响
5.openEuler-22.03-LTS-SP1(3.9.9):不受影响
6.openEuler-22.03-LTS-SP3(3.9.9):不受影响
7.openEuler-22.03-LTS-SP4(3.9.9):不受影响
修复是否涉及abi变化(是/否):
1.master(3.10.0):否
2.openEuler-20.03-LTS-SP4(3.7.9):否
3.openEuler-22.03-LTS-SP1(3.9.9):否
4.openEuler-22.03-LTS-SP3(3.9.9):否
5.openEuler-22.03-LTS-SP4(3.9.9):否
6.openEuler-24.03-LTS(3.11.6):否
7.openEuler-24.03-LTS-Next(3.11.6):否
三、漏洞修复
安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2024-1940
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具。
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1
影响性分析说明:
在Python“ssl”模块中发现了一个缺陷,其中ssl.SSLContext方法“cert_store_stats()”和“get_ca_certs()”存在内存竞争条件。如果在将证书加载到SSLContext的同时调用方法,则可能会触发竞争条件,例如在配置了证书目录的TLS握手期间。
openEuler评分: (评分和向量)
7.4
Vector:CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
受影响版本排查(受影响/不受影响):
1.master(3.10.0):受影响
2.openEuler-20.03-LTS-SP4(3.7.9):不受影响
3.openEuler-22.03-LTS-SP1(3.9.9):不受影响
4.openEuler-22.03-LTS-SP3(3.9.9):不受影响
5.openEuler-22.03-LTS-SP4(3.9.9):不受影响
6.openEuler-24.03-LTS(3.11.6):受影响
7.openEuler-24.03-LTS-Next(3.11.6):受影响
修复是否涉及abi变化(是/否):
1.master(3.10.0):否
2.openEuler-20.03-LTS-SP4(3.7.9):否
3.openEuler-22.03-LTS-SP1(3.9.9):否
4.openEuler-22.03-LTS-SP3(3.9.9):否
5.openEuler-22.03-LTS-SP4(3.9.9):否
6.openEuler-24.03-LTS(3.11.6):否
7.openEuler-24.03-LTS-Next(3.11.6):否
登录 后才可以发表评论
FileDragTip