中危 python python http请求的解释不一致性(http请求私运)

CVE编号

CVE-2021-23336

利用情况

暂无

补丁情况

没有补丁

披露时间

2021-02-16
漏洞描述
The package python/cpython from 0 and before 3.6.13, from 3.7.0 and before 3.7.10, from 3.8.0 and before 3.8.8, from 3.9.0 and before 3.9.2 are vulnerable to Web Cache Poisoning via urllib.parse.parse_qsl and urllib.parse.parse_qs by using a vector called parameter cloaking. When the attacker can separate query parameters using a semicolon (;), they can cause a difference in the interpretation of the request between the proxy (running with default configuration) and the server. This can result in malicious requests being cached as completely safe ones, as the proxy would usually not see the semicolon as a separator, and therefore would not include it in a cache key of an unkeyed parameter.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
http://www.openwall.com/lists/oss-security/2021/02/19/4
http://www.openwall.com/lists/oss-security/2021/05/01/2
https://github.com/python/cpython/pull/24297
https://lists.apache.org/thread.html/ra8ce70088ba291f358e077cafdb14d174b7a1ce...
https://lists.apache.org/thread.html/rc005f4de9d9b0ba943ceb8ff5a21a5c6ff8a9df...
https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0...
https://lists.debian.org/debian-lts-announce/2021/02/msg00030.html
https://lists.debian.org/debian-lts-announce/2021/04/msg00005.html
https://lists.debian.org/debian-lts-announce/2021/04/msg00015.html
https://lists.debian.org/debian-lts-announce/2023/09/msg00022.html
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedora...
https://security.gentoo.org/glsa/202104-04
https://security.netapp.com/advisory/ntap-20210326-0004/
https://snyk.io/blog/cache-poisoning-in-popular-open-source-packages/
https://snyk.io/vuln/SNYK-UPSTREAM-PYTHONCPYTHON-1074933
https://www.oracle.com//security-alerts/cpujul2021.html
https://www.oracle.com/security-alerts/cpuApr2021.html
https://www.oracle.com/security-alerts/cpujan2022.html
https://www.oracle.com/security-alerts/cpuoct2021.html
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 python python * Up to
(excluding)
3.6.13
运行在以下环境
应用 python python * From
(including)
3.7.0
Up to
(excluding)
3.7.10
运行在以下环境
应用 python python * From
(including)
3.8.0
Up to
(excluding)
3.8.8
运行在以下环境
应用 python python * From
(including)
3.9.0
Up to
(excluding)
3.9.2
运行在以下环境
系统 alibaba_cloud_linux_3 python3 * Up to
(excluding)
3.6.8-39.1.al8
运行在以下环境
系统 alpine_3.12 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.13 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.14 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.15 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.16 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.17 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.18 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 alpine_3.19 python3 * Up to
(excluding)
3.8.8-r0
运行在以下环境
系统 amazon_2 python * Up to
(excluding)
2.7.18-1.amzn2.0.5
运行在以下环境
系统 amazon_AMI python35 * Up to
(excluding)
3.5.10-1.30.amzn1
运行在以下环境
系统 anolis_os_8 python3 * Up to
(excluding)
3.6.8-47.0.1
运行在以下环境
系统 debian_11 pypy3 * Up to
(excluding)
2.7.18-8+deb11u1
运行在以下环境
系统 debian_12 pypy3 * Up to
(excluding)
7.3.3+dfsg-3
运行在以下环境
系统 fedora_32 python3 * Up to
(excluding)
3.8.8-1.fc32
运行在以下环境
系统 fedora_33 python3 * Up to
(excluding)
3.9.2-1.fc33
运行在以下环境
系统 fedora_34 python2.7 * Up to
(excluding)
2.7.18-11.fc34
运行在以下环境
系统 fedora_35 python3.6 * Up to
(excluding)
3.6.13-1.fc35
运行在以下环境
系统 fedora_38 python-django3 * Up to
(excluding)
3.2.15-1.fc38
运行在以下环境
系统 fedora_EPEL_8 python-django * Up to
(excluding)
2.2.19-1.el8
运行在以下环境
系统 kylinos_aarch64_V10SP1 python3 * Up to
(excluding)
3.7.9-7.p02.se.ky10
运行在以下环境
系统 kylinos_aarch64_V10SP2 python3 * Up to
(excluding)
3.7.9-20.p01.se.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP1 python3 * Up to
(excluding)
3.7.9-7.p02.se.ky10
运行在以下环境
系统 kylinos_x86_64_V10SP2 python3 * Up to
(excluding)
3.7.9-20.p02.se.ky10
运行在以下环境
系统 opensuse_Leap_15.2 python * Up to
(excluding)
2.7.18-lp152.3.15.1
运行在以下环境
系统 oracle_8 python3-libs * Up to
(excluding)
3.6.8-37.0.1.el8
运行在以下环境
系统 redhat_8 python3-idle * Up to
(excluding)
3.6.8-37.el8
运行在以下环境
系统 rocky_linux_8 python-dns * Up to
(excluding)
0.23-19.el8
运行在以下环境
系统 suse_12_SP5 python * Up to
(excluding)
2.7.18-28.67.1
运行在以下环境
系统 ubuntu_18.04 python-django * Up to
(excluding)
1.11.11-1ubuntu1.11
运行在以下环境
系统 ubuntu_20.04 python3.9 * Up to
(excluding)
3.9.5-3~20.04.1
运行在以下环境
系统 ubuntu_21.04 python-django * Up to
(excluding)
2.2.19-1
运行在以下环境
系统 ubuntu_21.10 python-django * Up to
(excluding)
2.2.19-1
运行在以下环境
系统 ubuntu_22.04 python-django * Up to
(excluding)
2.2.19-1
运行在以下环境
系统 ubuntu_22.10 python-django * Up to
(excluding)
2.2.19-1
阿里云评分
5.8
  • 攻击路径
    远程
  • 攻击复杂度
    困难
  • 权限要求
    无需权限
  • 影响范围
    越权影响
  • EXP成熟度
    N/A
  • 补丁情况
    没有补丁
  • 数据保密性
    无影响
  • 数据完整性
    传输被破坏
  • 服务器危害
    服务器失陷
  • 全网数量
    N/A
CWE-ID 漏洞类型
CWE-444 HTTP请求的解释不一致性(HTTP请求私运)
阿里云安全产品覆盖情况