9 Star 2 Fork 84

src-openEuler/python3

CVE-2023-40217

已完成
CVE和安全问题 拥有者
创建于  
2023-08-25 09:47

一、漏洞信息
漏洞编号:CVE-2023-40217
漏洞归属组件:python3
漏洞归属的版本:3.10.0,3.10.2,3.10.9,3.11.1,3.11.4,3.7.9,3.8.5,3.9.9
CVSS V3.0分值:
BaseScore:5.3 Medium
Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
漏洞简述:
An issue was discovered in Python before 3.8.18, 3.9.x before 3.9.18, 3.10.x before 3.10.13, and 3.11.x before 3.11.5. It primarily affects servers (such as HTTP servers) that use TLS client authentication. If a TLS server-side socket is created, receives data into the socket buffer, and then is closed quickly, there is a brief window where the SSLSocket instance will detect the socket as not connected and won t initiate a handshake, but buffered data will still be readable from the socket buffer. This data will not be authenticated if the server-side TLS peer is expecting client certificate authentication, and is indistinguishable from valid TLS stream data. Data is limited in size to the amount that will fit in the buffer. (The TLS connection cannot directly be used for data exfiltration because the vulnerable code path requires that the connection be closed on initialization of the SSLSocket.)
漏洞公开时间:2023-08-25 01:15:09
漏洞创建时间:2023-08-25 09:47:38
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2023-40217

更多参考(点击展开)
参考来源 参考链接 来源链接
cve.mitre.org https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
cve.mitre.org https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/
cve.mitre.org https://www.python.org/dev/security/
suse_bugzilla http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-40217 https://bugzilla.suse.com/show_bug.cgi?id=1214692
suse_bugzilla https://www.cve.org/CVERecord?id=CVE-2023-40217 https://bugzilla.suse.com/show_bug.cgi?id=1214692
suse_bugzilla https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/ https://bugzilla.suse.com/show_bug.cgi?id=1214692
suse_bugzilla https://www.python.org/dev/security/ https://bugzilla.suse.com/show_bug.cgi?id=1214692
redhat_bugzilla https://nvd.nist.gov/vuln/detail/CVE-2023-40217 https://bugzilla.redhat.com/show_bug.cgi?id=2235789
redhat_bugzilla https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/ https://bugzilla.redhat.com/show_bug.cgi?id=2235789
redhat_bugzilla https://www.python.org/dev/security/ https://bugzilla.redhat.com/show_bug.cgi?id=2235789
debian https://security-tracker.debian.org/tracker/CVE-2023-40217
cve_search https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/
cve_search https://www.python.org/dev/security/
amazon_linux_explore https://access.redhat.com/security/cve/CVE-2023-40217 https://explore.alas.aws.amazon.com/CVE-2023-40217.html
amazon_linux_explore https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-40217 https://explore.alas.aws.amazon.com/CVE-2023-40217.html
snyk https://github.com/python/cpython/commit/0cb0c238d520a8718e313b52cffc356a5a7561bf https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
snyk https://github.com/python/cpython/commit/37d7180cb647f0bed0c1caab0037f3bc82e2af96 https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
snyk https://github.com/python/cpython/commit/75a875e0df0530b75b1470d797942f90f4a718d3 https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
snyk https://github.com/python/cpython/commit/264b1dacc67346efa0933d1e63f622676e0ed96b https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
snyk https://github.com/python/cpython/commit/b4bcc06a9cfe13d96d5270809d963f8ba278f89b https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
snyk https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/ https://security.snyk.io/vuln/SNYK-UNMANAGED-PYTHON-5862663
cve.mitre.org https://mail.python.org/archives/list/security-announce@python.org/thread/PEPLII27KYHLF4AK3ZQGKYNCRERG4YXY/
cve.mitre.org https://www.python.org/dev/security/

漏洞分析指导链接:
https://gitee.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
openBrain开源漏洞感知系统
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
https://github.com/python/cpython/commit/0cb0c238d520a8718e313b52cffc356a5a7561bf snyk
https://github.com/python/cpython/commit/37d7180cb647f0bed0c1caab0037f3bc82e2af96 snyk
https://github.com/python/cpython/commit/75a875e0df0530b75b1470d797942f90f4a718d3 snyk
https://github.com/python/cpython/commit/264b1dacc67346efa0933d1e63f622676e0ed96b snyk
https://github.com/python/cpython/commit/b4bcc06a9cfe13d96d5270809d963f8ba278f89b snyk

二、漏洞分析结构反馈
影响性分析说明:
在python3.11.5中发现了一个问题。它主要影响使用TLS客户端认证的服务器(例如HTTP服务器)。如果创建了一个TLS服务器端套接字,将数据接收到套接字缓冲区中,然后快速关闭,那么在短暂的时间窗口内,SSLSocket实例将检测到套接字为“未连接”,并且不会启动握手,但缓冲区中的缓冲数据仍然可以从套接字缓冲区中读取。如果服务器端TLS对等方期望客户端证书认证,则此数据将无法得到认证,并且与有效的TLS流数据无法区分。数据的大小限制为适合缓冲区的量。目前openeuler的所有版本均受到影响。
openEuler评分:
5.3
Vector:CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(3.7.9):受影响
2.openEuler-20.03-LTS-SP3(3.7.9):受影响
3.openEuler-22.03-LTS(3.9.9):受影响
4.openEuler-22.03-LTS-SP1(3.9.9):受影响
5.openEuler-22.03-LTS-SP2(3.9.9):受影响

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(3.7.9):否
2.openEuler-20.03-LTS-SP3(3.7.9):否
3.openEuler-22.03-LTS(3.9.9):否
4.openEuler-22.03-LTS-SP1(3.9.9):否

三、漏洞修复
安全公告链接:https://www.openeuler.org/zh/security/safety-bulletin/detail/?id=openEuler-SA-2023-1677

评论 (10)

openeuler-ci-bot 创建了CVE和安全问题 2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
展开全部操作日志
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
参考网址 关联pr 状态 补丁链接
https://nvd.nist.gov/vuln/detail/CVE-2023-40217
https://ubuntu.com/security/CVE-2023-40217NoneNonehttps://discourse.ubuntu.com/c/ubuntu-pro
https://www.opencve.io/cve/CVE-2023-40217
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2023-40217
https://security-tracker.debian.org/tracker/CVE-2023-40217

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用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 修改了描述 2年前

上游社区Patch链接:https://github.com/python/cpython/pull/108315
最新发布的3.11.5版本才完成该漏洞的修复,openEuler当前的版本均受影响:

  • ~3.8.18(exclude)
  • ~3.9.18(exclude)
  • ~3.10.13(exclude)
  • ~3.11.5(exclude)
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 计划开始日期设置为2023-08-25 2年前
openeuler-ci-bot 计划截止日期设置为2023-09-24 2年前
openeuler-ci-bot 优先级设置为次要 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
zhaotianyang 负责人hexiaowen 修改为zhaotianyang 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前

影响性分析说明:在python3.11.5中发现了一个问题。它主要影响使用TLS客户端认证的服务器(例如HTTP服务器)。如果创建了一个TLS服务器端套接字,将数据接收到套接字缓冲区中,然后快速关闭,那么在短暂的时间窗口内,SSLSocket实例将检测到套接字为“未连接”,并且不会启动握手,但缓冲区中的缓冲数据仍然可以从套接字缓冲区中读取。如果服务器端TLS对等方期望客户端证书认证,则此数据将无法得到认证,并且与有效的TLS流数据无法区分。数据的大小限制为适合缓冲区的量。目前openeuler的所有版本均受到影响。

openEuler评分: 5.3
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

受影响版本排查(受影响/不受影响):
1.openEuler-20.03-LTS-SP1(3.7.9):受影响
2.openEuler-20.03-LTS-SP3(3.7.9):受影响
3.openEuler-22.03-LTS(3.9.9):受影响
4.openEuler-22.03-LTS-SP1(3.9.9):受影响
5.openEuler-22.03-LTS-SP2(3.9.9):受影响

修复是否涉及abi变化(是/否):
1.openEuler-20.03-LTS-SP1(3.7.9):否
2.openEuler-20.03-LTS-SP3(3.7.9):否
3.openEuler-22.03-LTS(3.9.9):否
4.openEuler-22.03-LTS-SP1(3.9.9):否

openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 修改了描述 2年前
zhuo 通过合并 Pull Request !268: fix CVE-2023-40217任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
zhuo 通过合并 Pull Request !270: fix CVE-2023-40217任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
zhuo 通过合并 Pull Request !271: fix CVE-2023-40217任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-sync-bot 通过合并 Pull Request !274: [sync] PR-268: fix CVE-2023-40217任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 任务状态已完成 修改为待办的 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 添加了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
openeuler-sync-bot 通过合并 Pull Request !272: [sync] PR-268: fix CVE-2023-40217任务状态待办的 修改为已完成 2年前
openeuler-ci-bot 移除了
 
CVE/UNFIXED
标签
2年前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 添加了
 
CVE/FIXED
标签
2年前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
2年前
openeuler-ci-bot 修改了描述 2年前
openeuler-ci-bot 计划开始日期2023-08-25 修改为2023-09-01 2年前
openeuler-ci-bot 计划截止日期2023-09-24 修改为2023-10-01 2年前
openeuler-ci-bot 移除了
 
CVE/FIXED
标签
6个月前
openeuler-ci-bot 移除了
 
sig/Base-service
标签
6个月前
openeuler-ci-bot 添加了
 
CVE/UNAFFECTED
标签
6个月前
openeuler-ci-bot 添加了
 
sig/Base-service
标签
6个月前

登录 后才可以发表评论

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

搜索帮助