中危 Python 安全漏洞
CVE编号
CVE-2021-4189利用情况
暂无补丁情况
官方补丁披露时间
2022-02-21漏洞描述
Python是Python基金会的一套开源的、面向对象的程序设计语言。该语言具有可扩展、支持模块和包、支持多种平台等特点。 python 存在安全漏洞,该漏洞源于在 Python2.7 中发现了一个缺陷,特别是在 PASV(被动)模式下使用 FTP(文件传输协议)客户端库时。缺陷在于默认情况下 FTP 客户端如何信任来自 PASV 响应的主机。攻击者可以利用此漏洞设置恶意 FTP 服务器,该服务器可以欺骗 FTP 客户端连接回给定的 IP 地址和端口。这可能导致 FTP 客户端扫描端口,否则这些端口是不可能的。ftplib 现在不再使用返回的地址,而是使用我们已经连接到的 IP 地址。对于想要旧行为的极少数用户,请将 `ftplib.FTP` 实例上的 `trust_server_pasv_ipv4_address` 属性设置为 True。解决建议
目前厂商已发布升级补丁以修复漏洞,补丁获取链接:https://www.debian.org/lts/security/2022/dla-2919受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.6.0 | Up to (excluding) 3.6.14 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.7.0 | Up to (excluding) 3.7.11 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.8.0 | Up to (excluding) 3.8.9 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.9.0 | Up to (excluding) 3.9.3 | ||||
运行在以下环境 | |||||||||
应用 | python | python | 3.10.0 | - | |||||
运行在以下环境 | |||||||||
应用 | redhat | software_collections | - | - | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | python | * | Up to (excluding) 2.7.18-1.amzn2.0.5 | |||||
运行在以下环境 | |||||||||
系统 | amazon_AMI | python27 | * | Up to (excluding) 2.7.18-2.142.amzn1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_8 | python3-idle | * | Up to (excluding) 3.4.2-13 | |||||
运行在以下环境 | |||||||||
系统 | centos_8 | python3-test | * | Up to (excluding) 3.6.8-45.el8 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | python2.7 | * | Up to (excluding) 2.7.16-2+deb10u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | python2.7 | * | Up to (including) 2.7.18-8+deb11u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | python2.7 | * | Up to (including) 2.7.18-13 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | python2.7 | * | Up to (excluding) 2.7.13-2+deb9u6 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | python3.10 | * | Up to (excluding) 3.10.13-1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_34 | python2.7 | * | Up to (excluding) 2.7.18-20.fc34 | |||||
运行在以下环境 | |||||||||
系统 | fedora_35 | python2.7 | * | Up to (excluding) 2.7.18-20.fc35 | |||||
运行在以下环境 | |||||||||
系统 | fedora_37 | python2.7 | * | Up to (excluding) 2.7.18-20.fc37 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10 | python3 | * | Up to (excluding) 3.7.9-18.se.05.p04.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP1 | debug/python3-debuginfo | * | Up to (excluding) 3.7.9-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP2 | debug/python3-debuginfo | * | Up to (excluding) 3.7.9-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP3 | python3 | * | Up to (excluding) 3.7.9-18.se.05.p04.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_loongarch64_V10SP3 | python3 | * | Up to (excluding) 3.7.9-18.se.05.p04.a.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10 | python3 | * | Up to (excluding) 3.7.9-18.se.05.p04.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP1 | debug/python3-debuginfo | * | Up to (excluding) 3.7.9-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP2 | debug/python3-debuginfo | * | Up to (excluding) 3.7.9-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP3 | python3 | * | Up to (excluding) 3.7.9-18.se.05.p04.ky10 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.3 | python-base | * | Up to (excluding) 2.7.18-150000.38.2 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.4 | libpython2_7-1_0-32bit | * | Up to (excluding) 2.7.18-150000.38.2 | |||||
运行在以下环境 | |||||||||
系统 | oracle_8 | oraclelinux-release | * | Up to (excluding) 1.3.7-31.module+el8.5.0+20361+8a9d3d27 | |||||
运行在以下环境 | |||||||||
系统 | redhat_8 | python3-test | * | Up to (excluding) 3.6.8-45.el8 | |||||
运行在以下环境 | |||||||||
系统 | suse_12_SP5 | python3 | * | Up to (excluding) 2.7.18-33.8.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | python3.8 | * | Up to (excluding) 3.6.9-1~18.04ubuntu1.7 | |||||
运行在以下环境 | |||||||||
系统 | unionos_d | python3.7 | * | Up to (excluding) 2.7.16.9-deepin1 | |||||
- 攻击路径 远程
- 攻击复杂度 复杂
- 权限要求 无需权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 数据泄露
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-252 | 未加检查的返回值 |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论