7 Star 2 Fork 75

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和安全问题
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
展开全部操作日志

@hexiaowen ,@Monday ,@zhujianwei001 ,@谢志鹏 ,@gaoruoshu ,@陈棋德 ,@朱春意
issue处理注意事项:
1. 当前issue受影响的分支提交pr时, 须在pr描述中填写当前issue编号进行关联, 否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容,未引入的分支不需要填写, 否则无法关闭当前issue;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复, 注: 内容的标题名称(影响性分析说明, openEuler评分, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否))不能省略,省略后cve-manager将无法正常解析填写内容.


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
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):


issue处理具体操作请参考:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
pr关联issue具体操作请参考:
https://gitee.com/help/articles/4142

Hi openeuler-ci-bot, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Base-service, and any of the maintainers: @hexiaowen , @Monday , @zhujianwei001 , @谢志鹏 , @gaoruoshu , @陈棋德 , @朱春意

openeuler-ci-bot 添加了
 
sig/Base-service
标签
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2024-0397 None None https://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-0397 None None https://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-0397 None None https://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-0397 None None https://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 修改了描述
openeuler-ci-bot 修改了描述
xieminmin 负责人设置为xinsheng3
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
wangziliang 通过src-openeuler/python3 Pull Request !326任务状态待办的 修改为已完成

@wangziliang 请确认分支: master,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP1,openEuler-22.03-LTS-SP3,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS,openEuler-24.03-LTS-Next 受影响/不受影响.
请确认分支信息是否填写完整,否则将无法关闭当前issue.

openeuler-ci-bot 任务状态已完成 修改为待办的
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
openeuler-ci-bot 移除了
 
sig/Base-service
标签
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
openeuler-ci-bot 添加了
 
sig/Base-service
标签
openeuler-sync-bot 通过src-openeuler/python3 Pull Request !329任务状态待办的 修改为已完成
openeuler-ci-bot 任务状态已完成 修改为待办的

@openeuler-sync-bot 请确认分支: master,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP1,openEuler-22.03-LTS-SP3,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS,openEuler-24.03-LTS-Next 受影响/不受影响.
请确认分支信息是否填写完整,否则将无法关闭当前issue.

openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
openeuler-ci-bot 移除了
 
sig/Base-service
标签
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
openeuler-ci-bot 添加了
 
sig/Base-service
标签
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 计划开始日期设置为2024-06-19
openeuler-ci-bot 计划截止日期设置为2024-07-19
openeuler-ci-bot 优先级设置为主要
openeuler-ci-bot 计划开始日期2024-06-19 修改为2024-07-04
openeuler-ci-bot 计划截止日期2024-07-19 修改为2024-07-18
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
openeuler-ci-bot 修改了描述
xieminmin 任务状态待办的 修改为已挂起
openeuler-ci-bot 任务状态已挂起 修改为待办的

@xieminmin
issue变更为 [已挂起/已拒绝] 状态时,必须填写相关原因,现issue被重新打开
请按如下格式评论原因后,重新进行操作


/reason xxxxxx

/reason 待解决pr冲突

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

/reason 待解决pr冲突

@xieminmin 当前issue状态为: 已挂起,请先修改issue状态, 否则评论无法被识别.

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

@xieminmin 请确认分支: master,openEuler-20.03-LTS-SP4,openEuler-22.03-LTS-SP1,openEuler-22.03-LTS-SP3,openEuler-22.03-LTS-SP4,openEuler-24.03-LTS,openEuler-24.03-LTS-Next 受影响/不受影响.
请确认分支信息是否填写完整,否则将无法关闭当前issue.

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

@xinsheng3 1.影响性分析说明=> 没有填写或按正确格式填写

openeuler-ci-bot 修改了描述

@xinsheng3 1.影响性分析说明=> 没有填写或按正确格式填写

@xinsheng3 1.影响性分析说明=> 没有填写或按正确格式填写

影响性分析说明:
在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 修改了描述

@xinsheng3 经过 cve-manager 解析, 已分析的内容如下表所示:

状态 需分析 内容
已分析 1.影响性分析说明 在Python“ssl”模块中发现了一个缺陷,其中ssl.SSLContext方法“cert_store_stats()”和“get_ca_certs()”存在内存竞争条件。如果在将证书加载到SSLContext的同时调用方法,则可能会触发竞争条件,例如在配置了证书目录的TLS握手期间。
已分析 2.openEulerScore 7.4
已分析 3.openEulerVector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:H
已分析 4.受影响版本排查 master:受影响,openEuler-24.03-LTS:受影响,openEuler-24.03-LTS-Next:受影响,openEuler-20.03-LTS-SP4:不受影响,openEuler-22.03-LTS-SP1:不受影响,openEuler-22.03-LTS-SP3:不受影响,openEuler-22.03-LTS-SP4:不受影响
已分析 5.修复是否涉及abi变化 master:否,openEuler-20.03-LTS-SP4:否,openEuler-22.03-LTS-SP1:否,openEuler-22.03-LTS-SP3:否,openEuler-22.03-LTS-SP4:否,openEuler-24.03-LTS:否,openEuler-24.03-LTS-Next:否

请确认分析内容的准确性, 确认无误后, 您可以进行后续步骤, 否则您可以继续分析.

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

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/python3.git
git@gitee.com:src-openeuler/python3.git
src-openeuler
python3
python3

搜索帮助