原始描述
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.
受影响的软件
- Python ≥ 3.9.0 ≤ 3.9.1≥ 3.8.0 ≤ 3.8.7≥ 3.6.0 ≤ 3.6.12≥ 3.7.0 ≤ 3.7.9 精确匹配
详情
- 发布日期
- 2021-01-19
- 最后修改
- 2026-10-14
- CVSS 向量
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- EPSS(30 天内被利用概率)
- 24.00% (百分位 98)
参考资料
- cve.org/CVE-2021-3177
- nvd.nist.gov/vuln/detail/CVE-2021-3177
- bugs.python.org/issue42938
- github.com/python/cpython/pull/24239
- python-security.readthedocs.io/vuln/ctypes-buffer-overflow-pycarg_repr.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/M...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N...
- security.gentoo.org/glsa/202101-18
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Z...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/C...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/B...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/N...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V...
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y...
本产品使用 NVD API 的数据,但未获得 NVD 的认可或认证。CVE® 是 The MITRE Corporation 的注册商标;CVE 记录依据 CVE Program 使用条款使用。