9 Star 2 Fork 82

src-openEuler/python3

 / 详情

CVE-2024-0397

已完成
CVE和安全问题 拥有者
创建于  
2024-06-19 22:16

一、漏洞信息
漏洞编号: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

更多参考(点击展开)
参考来源 参考链接 来源链接
cna.python.org http://www.openwall.com/lists/oss-security/2024/06/17/2
cna.python.org 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/issues/114572
cna.python.org https://github.com/python/cpython/pull/114573
cna.python.org https://mail.python.org/archives/list/security-announce@python.org/thread/BMAK5BCGKYWNJOACVUSLUF6SFGBIM4VP/
suse_bugzilla http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-0397 https://bugzilla.suse.com/show_bug.cgi?id=1226447
suse_bugzilla https://seclists.org/oss-sec/2024/q2/291 https://bugzilla.suse.com/show_bug.cgi?id=1226447
suse_bugzilla https://github.com/python/cpython/issues/114572 https://bugzilla.suse.com/show_bug.cgi?id=1226447
suse_bugzilla https://github.com/python/cpython/pull/114573 https://bugzilla.suse.com/show_bug.cgi?id=1226447
debian https://security-tracker.debian.org/tracker/CVE-2024-0397
oracle https://www.oracle.com/security-alerts/cpujul2024.html
amazon_linux_explore https://access.redhat.com/security/cve/CVE-2024-0397 https://explore.alas.aws.amazon.com/CVE-2024-0397.html
amazon_linux_explore https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-0397 https://explore.alas.aws.amazon.com/CVE-2024-0397.html

漏洞分析指导链接:
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

评论 (16)

openeuler-ci-bot 创建了CVE和安全问题 10个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
10个月前
展开全部操作日志
openeuler-ci-bot 添加了
 
sig/Base-service
标签
10个月前
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2024-0397NoneNonehttps://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
https://ubuntu.com/security/CVE-2024-0397NoneNonehttps://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
https://discourse.ubuntu.com/c/ubuntu-pro
https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
https://www.opencve.io/cve/CVE-2024-0397NoneNonehttps://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
https://github.com/python/cpython/commit/bce693111bff906ccf9281c22371331aaff766ab
https://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa
https://github.com/python/cpython/commit/29c97287d205bf2f410f4895ebce3f43b5160524
https://github.com/python/cpython/commit/37324b421b72b7bc9934e27aba85d48d4773002e
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2024-0397
https://security-tracker.debian.org/tracker/CVE-2024-0397NoneNonehttps://github.com/python/cpython/commit/542f3272f56f31ed04e74c40635a913fbc12d286
https://github.com/python/cpython/commit/01c37f1d0714f5822d34063ca7180b595abf589d
https://github.com/python/cpython/commit/b228655c227b2ca298a8ffac44d14ce3d22f6faa

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1

openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
xieminmin 负责人设置为xinsheng3 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
wangziliang 通过合并 Pull Request !326: fix CVE-2024-0397 and CVE-2024-4032任务状态待办的 修改为已完成 10个月前
openeuler-ci-bot 任务状态已完成 修改为待办的 10个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
10个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
10个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
10个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
10个月前
openeuler-sync-bot 通过合并 Pull Request !329: [sync] PR-326: fix CVE-2024-0397 and CVE-2024-4032任务状态待办的 修改为已完成 10个月前
openeuler-ci-bot 任务状态已完成 修改为待办的 10个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
10个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
10个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
10个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 10个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 计划开始日期设置为2024-06-19 9个月前
openeuler-ci-bot 计划截止日期设置为2024-07-19 9个月前
openeuler-ci-bot 优先级设置为主要 9个月前
openeuler-ci-bot 计划开始日期2024-06-19 修改为2024-07-04 9个月前
openeuler-ci-bot 计划截止日期2024-07-19 修改为2024-07-18 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
openeuler-ci-bot 修改了描述 9个月前
xieminmin 任务状态待办的 修改为已挂起 9个月前
openeuler-ci-bot 任务状态已挂起 修改为待办的 9个月前

/reason 待解决pr冲突

xieminmin 任务状态待办的 修改为已挂起 9个月前
issue状态 操作者 原因
已挂起 xieminmin 待解决pr冲突

/reason 待解决pr冲突

xieminmin 任务状态已挂起 修改为待办的 8个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
8个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
8个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
8个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
8个月前
xieminmin 任务状态待办的 修改为已完成 8个月前
openeuler-ci-bot 任务状态已完成 修改为待办的 8个月前
openeuler-ci-bot 修改了描述 8个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
8个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
8个月前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
8个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
8个月前
openeuler-ci-bot 修改了描述 8个月前

影响性分析说明:
在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):否

openeuler-ci-bot 修改了描述 8个月前
xieminmin 任务状态待办的 修改为已完成 8个月前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
8个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
8个月前
openeuler-ci-bot 添加了
 
CVE/FIXED
标签
8个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
8个月前
openeuler-ci-bot 修改了描述 8个月前

登录 后才可以发表评论

状态
负责人
项目
预计工期 (小时)
开始日期   -   截止日期
-
置顶选项
优先级
里程碑
分支
参与者(3)
5329419 openeuler ci bot 1632792936 xieminmin-xieminmin xinsheng3-xinsheng3
1
https://gitee.com/src-openeuler/python3.git
git@gitee.com:src-openeuler/python3.git
src-openeuler
python3
python3

搜索帮助