VDB

CVE-2021-3177

CVE-2021-3177 PUBLISHED CVSS 9.8 CRITICAL

Reported by mitre · Published January 19, 2021

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
python-testAmazon Linux2.7.18-1.amzn2.0.3
python3-toolsAmazon Linux3.7.9-1.amzn2.0.2
libpythonBitnami3.9.2, 3.8.8, 3.7.10, 3.6.13
python3Alpine3.8.7-r2, 3.8.7-r1, 3.8.5-r1, 3.8.2-r2, 3.7.7-r2
pythonArch Linux3.9.2-1
python-toolsAmazon Linux2.7.18-1.amzn2.0.3
python-debugAmazon Linux2.7.18-1.amzn2.0.3
python3-debugAmazon Linux3.7.9-1.amzn2.0.2
python2Alpine2.7.18-r1
python-libsAmazon Linux2.7.18-1.amzn2.0.3
python3-tkinterAmazon Linux3.7.9-1.amzn2.0.2
python3-libsAmazon Linux3.7.9-1.amzn2.0.2

32 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
amazon:2python-test0
amazon:2python3-tools0
alpinepython30, 0, 0
archpython0
amazon:2python-tools0
amazon:2python-debug0
amazon:2python3-debug0
alpinepython20
amazon:2python-libs0
SiemensSIMATIC S7-1500 CPU 1518F-4 PN/DP MFP3.1.0
SiemensSIPLUS S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python3-tkinter0
amazon:2python3-libs0
amazon:2python-devel0
amazon:2python3-test0
amazon:2tkinter0
SiemensSIMATIC S7-1500 CPU 1518-4 PN/DP MFP3.1.0
amazon:2python30
amazon:2python0

…and 2 more

Timeline

  • Jan 19, 2021 CVE Published
  • Apr 14, 2021 EPSS Score (30 in total, the first dated here)
  • Aug 25, 2021 PoC Published (3 in total, the first dated here)
  • Mar 7, 2026 Distribution Patch (17 in total, the first dated here)
  • Mar 7, 2026 Security Advisory (22 in total, the first dated here)
  • Aug 1, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3177
vulnetix vdb fixes CVE-2021-3177

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3177/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›