9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.04 Low
EPSS
Percentile
92.0%
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.
Author | Note |
---|---|
mdeslaur | on Ubuntu, binaries are compiled with Fortify Source, so exploiting this issue will likely only cause Python to crash, leading to a denial of service. |
OS | Version | Architecture | Package | Version | Filename |
---|---|---|---|---|---|
ubuntu | 18.04 | noarch | python2.7 | < 2.7.17-1~18.04ubuntu1.6 | UNKNOWN |
ubuntu | 20.04 | noarch | python2.7 | < 2.7.18-1~20.04.1 | UNKNOWN |
ubuntu | 14.04 | noarch | python2.7 | < 2.7.6-8ubuntu0.6+esm10) Available with Ubuntu Pro or Ubuntu Pro (Infra-only | UNKNOWN |
ubuntu | 16.04 | noarch | python2.7 | < 2.7.12-1ubuntu0~16.04.18 | UNKNOWN |
ubuntu | 14.04 | noarch | python3.4 | < 3.4.3-1ubuntu1~14.04.7+esm10) Available with Ubuntu Pro or Ubuntu Pro (Infra-only | UNKNOWN |
ubuntu | 14.04 | noarch | python3.5 | < any | UNKNOWN |
ubuntu | 16.04 | noarch | python3.5 | < 3.5.2-2ubuntu0~16.04.13 | UNKNOWN |
ubuntu | 18.04 | noarch | python3.6 | < 3.6.9-1~18.04ubuntu1.4 | UNKNOWN |
ubuntu | 18.04 | noarch | python3.7 | < 3.7.5-2~18.04.4 | UNKNOWN |
ubuntu | 18.04 | noarch | python3.8 | < 3.8.0-3~18.04.1 | UNKNOWN |
bugs.python.org/issue42938
github.com/python/cpython/pull/24239
launchpad.net/bugs/cve/CVE-2021-3177
nvd.nist.gov/vuln/detail/CVE-2021-3177
python-security.readthedocs.io/vuln/ctypes-buffer-overflow-pycarg_repr.html
security-tracker.debian.org/tracker/CVE-2021-3177
ubuntu.com/security/notices/USN-4754-1
ubuntu.com/security/notices/USN-4754-2 (regression in python2.7)
ubuntu.com/security/notices/USN-4754-3
ubuntu.com/security/notices/USN-4754-4
ubuntu.com/security/notices/USN-4754-5
www.cve.org/CVERecord?id=CVE-2021-3177
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
7.5 High
CVSS2
Access Vector
NETWORK
Access Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
0.04 Low
EPSS
Percentile
92.0%