Skip to content
pkgseek
Back to CVE search

CVE-2021-3177

critical · 9.8

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.

First indexed 1/19/2021View on NVD

Advisory Facts

Markdown

CVE-2021-3177 is rated CRITICAL (9.8), with 161 indexed affected package builds across 3 distributions.

Severity / Score
CRITICAL (9.8)
Affected builds
161
Affected distros
3
Distros with fixed_in
Alibaba Cloud Linux, Oracle Linux, Ubuntu
+ Embed this vulnerability status card

https://pkgseek.com/embed/security/CVE-2021-3177?locale=en

Distribution-aware status

3
Distributions
161
Package/release records
11
Vendor advisories
161
Fix versions available

Why the upstream version is not enough

Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.

Affected packages

Newest affected build per package, repository source and distribution release.

161 affected package/release combinations
platform-python
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade platform-python
platform-python-debug
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade platform-python-debug
platform-python-devel
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade platform-python-devel
python3-devel
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-devel
python3-idle
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-idle
python3-libs
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-libs
python3-test
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-test
python3-tkinter
3x86_64
3.6.8-37.2.al8Fixed in 3.6.8-39.1.al8
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-tkinter
python36-rpm-macros
8noarch
3.6.8-2.module+el8.3.0+7694+550a8252Fixed in 3.6.8-2.0.1.module+el8.3.0+el8+9688+bb1990d3
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python36-rpm-macros
python3-bson
8x86_64
3.6.1-11.module+el8.1.0+5397+3d987d7cFixed in 3.6.1-11.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-bson
python3-distro
8noarch
1.4.0-2.module+el8.1.0+5397+3d987d7cFixed in 1.4.0-2.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-distro
python3-docs
8noarch
3.6.7-2.module+el8.1.0+5397+3d987d7cFixed in 3.6.7-2.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-docs
python3-docutils
8noarch
0.14-12.module+el8.1.0+5397+3d987d7cFixed in 0.14-12.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-docutils
python3-nose
8noarch
1.3.7-30.module+el8.1.0+5397+3d987d7cFixed in 1.3.7-30.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-nose
python3-pygments
8noarch
2.2.0-20.module+el8.1.0+5397+3d987d7cFixed in 2.2.0-20.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-pygments
python3-pymongo
8x86_64
3.6.1-11.module+el8.1.0+5397+3d987d7cFixed in 3.6.1-11.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-pymongo
python3-pymongo-gridfs
8x86_64
3.6.1-11.module+el8.1.0+5397+3d987d7cFixed in 3.6.1-11.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-pymongo-gridfs
python3-PyMySQL
8noarch
0.8.0-10.module+el8.1.0+5397+3d987d7cFixed in 0.8.0-10.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-PyMySQL
python3-scipy
8x86_64
1.0.0-20.module+el8.1.0+5397+3d987d7cFixed in 1.0.0-20.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-scipy
python3-sqlalchemy
8x86_64
1.3.2-1.module+el8.1.0+5397+3d987d7cFixed in 1.3.2-2.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-sqlalchemy
python3-virtualenv
8noarch
15.1.0-19.module+el8.1.0+5397+3d987d7cFixed in 15.1.0-19.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-virtualenv
python3-wheel-wheel
8noarch
1:0.31.1-2.module+el8.1.0+5397+3d987d7cFixed in 1:0.31.1-2.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python3-wheel-wheel
python-pymongo-doc
8noarch
3.6.1-11.module+el8.1.0+5397+3d987d7cFixed in 3.6.1-11.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python-pymongo-doc
python-virtualenv-doc
8noarch
15.1.0-19.module+el8.1.0+5397+3d987d7cFixed in 15.1.0-19.module+el8.3.0+7694+550a8252
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo dnf upgrade python-virtualenv-doc
libpython3.10
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade libpython3.10
libpython3.10-dbg
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade libpython3.10-dbg
libpython3.10-dev
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade libpython3.10-dev
libpython3.10-minimal
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade libpython3.10-minimal
libpython3.10-stdlib
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade libpython3.10-stdlib
python3.10
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10
python3.10-dbg
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10-dbg
python3.10-dev
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10-dev
python3.10-doc
jammyall
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10-doc
python3.10-examples
jammyall
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10-examples
python3.10-minimal
jammyamd64
3.10.4-3Fixed in 3.10.12-1~22.04.4
Update guidance

Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.

sudo apt update && sudo apt install --only-upgrade python3.10-minimal

CNNVD cross-reference

Cached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.