低危 Python 缓冲区错误漏洞
CVE编号
CVE-2021-3177利用情况
暂无补丁情况
官方补丁披露时间
2021-01-19漏洞描述
Python 3.x through 3.9.1 has a buffer overflow in PyCArg_repr in _ctypes/callproc.c, which may lead to remote code execution in certain Python applications that accept floating-point numbers as untrusted input, as demonstrated by a 1e300 argument to c_double.from_param. This occurs because sprintf is used unsafely.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.6.0 | Up to (including) 3.6.12 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.7.0 | Up to (including) 3.7.9 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.8.0 | Up to (including) 3.8.7 | ||||
运行在以下环境 | |||||||||
应用 | python | python | * | From (including) 3.9.0 | Up to (including) 3.9.1 | ||||
运行在以下环境 | |||||||||
系统 | alibaba_cloud_linux_2.1903 | python-libs | * | Up to (excluding) 2.7.5-92.1.al7 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.10 | python3 | * | Up to (excluding) 3.7.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.11 | python3 | * | Up to (excluding) 3.8.2-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.12 | python3 | * | Up to (excluding) 3.8.5-r1 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.13 | python3 | * | Up to (excluding) 3.8.7-r1 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.14 | python2 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.15 | python2 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.16 | python3 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.17 | python3 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_3.18 | python3 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | alpine_edge | python3 | * | Up to (excluding) 3.8.7-r2 | |||||
运行在以下环境 | |||||||||
系统 | amazon_2 | python38 | * | Up to (excluding) 2.7.18-1.amzn2.0.3 | |||||
运行在以下环境 | |||||||||
系统 | amazon_AMI | python27 | * | Up to (excluding) 2.7.18-2.141.amzn1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_7 | python-tools | * | Up to (excluding) 2.7.5-92.0.1 | |||||
运行在以下环境 | |||||||||
系统 | anolis_os_8 | python3-idle | * | Up to (excluding) 3.4.2-13 | |||||
运行在以下环境 | |||||||||
系统 | centos_7 | python | * | Up to (excluding) 2.7.5-92.el7_9 | |||||
运行在以下环境 | |||||||||
系统 | centos_8 | platform-python-debug | * | Up to (excluding) 3.6.1-11.module+el8.1.0+3446+c3d52da3 | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | python2.7 | * | Up to (excluding) 2.7.16-2+deb10u2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | python2.7 | * | Up to (excluding) 2.7.18-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_9 | python2.7 | * | Up to (excluding) 2.7.13-2+deb9u6 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | python2.7 | * | Up to (including) 2.7.18-1 | |||||
运行在以下环境 | |||||||||
系统 | fedora_32 | python27-debuginfo | * | Up to (excluding) 3.8.7-2.fc32 | |||||
运行在以下环境 | |||||||||
系统 | fedora_33 | python3.7-debugsource | * | Up to (excluding) 3.9.1-2.fc33 | |||||
运行在以下环境 | |||||||||
系统 | fedora_34 | python3.6-debuginfo | * | Up to (excluding) 3.6.13-1.fc34 | |||||
运行在以下环境 | |||||||||
系统 | fedora_35 | python3.6-debuginfo | * | Up to (excluding) 3.6.13-1.fc35 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_aarch64_V10SP1 | python3 | * | Up to (excluding) 3.7.9-20.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-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | kylinos_x86_64_V10SP2 | python3 | * | Up to (excluding) 3.7.9-20.p01.se.ky10 | |||||
运行在以下环境 | |||||||||
系统 | opensuse_Leap_15.2 | python-doc | * | Up to (excluding) 3.6.12-lp152.4.17.1 | |||||
运行在以下环境 | |||||||||
系统 | oracle_7 | oraclelinux-release | * | Up to (excluding) 3.6.8-18.0.3.el7 | |||||
运行在以下环境 | |||||||||
系统 | oracle_8 | oraclelinux-release | * | Up to (excluding) 1.3.2-2.module+el8.3.0+7833+4aaf98ce | |||||
运行在以下环境 | |||||||||
系统 | redhat_7 | python | * | Up to (excluding) 2.7.5-92.el7_9 | |||||
运行在以下环境 | |||||||||
系统 | redhat_8 | platform-python-debug | * | Up to (excluding) 3.6.1-11.module+el8.1.0+3446+c3d52da3 | |||||
运行在以下环境 | |||||||||
系统 | suse_12_SP5 | python36 | * | Up to (excluding) 2.7.17-28.64.1 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_16.04 | python2.7 | * | Up to (excluding) 2.7.12-1ubuntu0~16.04.18 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_16.04.7_lts | python2.7 | * | Up to (excluding) 2.7.12-1ubuntu0~16.04.18 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04 | python3.8 | * | Up to (excluding) 3.6.9-1~18.04ubuntu1.4 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_18.04.5_lts | python2.7 | * | Up to (excluding) 2.7.17-1~18.04ubuntu1.6 | |||||
运行在以下环境 | |||||||||
系统 | ubuntu_20.04 | python3.8 | * | Up to (excluding) 2.7.18-1~20.04.1 | |||||
- 攻击路径 远程
- 攻击复杂度 容易
- 权限要求 无需权限
- 影响范围 有限影响
- EXP成熟度 N/A
- 补丁情况 官方补丁
- 数据保密性 N/A
- 数据完整性 传输被破坏
- 服务器危害 DoS
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-120 | 未进行输入大小检查的缓冲区拷贝(传统缓冲区溢出) |
Exp相关链接

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