原始描述
In Python before 3,9,5, the ipaddress library mishandles leading zero characters in the octets of an IP address string. This (in some situations) allows attackers to bypass access control that is based on IP addresses.
受影响的软件
- Python ≥ 3.8.0 < 3.8.12≥ 3.9.0 < 3.9.5 修复版本: 3.8.12, 3.9.5 精确匹配
详情
- 发布日期
- 2021-05-06
- 最后修改
- 2026-10-09
- CVSS 向量
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- EPSS(30 天内被利用概率)
- 6.76% (百分位 94)
参考资料
- cve.org/CVE-2021-29921
- nvd.nist.gov/vuln/detail/CVE-2021-29921
- github.com/sickcodes
- docs.python.org/3/library/ipaddress.html
- github.com/python/cpython/blob/63298930fb531ba2bb4f23bc3b915dbf1e17e9e1/Misc/NEWS.d/3.8.0a...
- sick.codes/sick-2021-014
- www.oracle.com//security-alerts/cpujul2021.html
- github.com/sickcodes/security/blob/master/advisories/SICK-2021-014.md
- python-security.readthedocs.io/vuln/ipaddress-ipv4-leading-zeros.html
- bugs.python.org/issue36384
- github.com/python/cpython/pull/12577
- github.com/python/cpython/pull/25099
- security.netapp.com/advisory/ntap-20210622-0003/
- www.oracle.com/security-alerts/cpuoct2021.html
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。