CVE-2021-3426
n/a python: Exposure of Sensitive Information to an Unauthorized Actor
Check your servers for CVE-2021-3426
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2021-3426 affects python, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
There's a flaw in Python 3's pydoc. A local or adjacent attacker who discovers or is able to convince another local or adjacent user to start a pydoc server could access the server and use it to disclose sensitive information belonging to the other user that they would not normally be able to access. The highest risk of this flaw is to data confidentiality. This flaw affects Python versions before 3.8.9, Python versions before 3.9.3 and Python versions before 3.10.0a7.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 1.86%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 79.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 18 Dec 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
python
n/a
|
affected python 3.8.9, python 3.9.3, python 3.10.0a7
|
Is my server affected?
Find the installed version of python and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i python
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2021-3426 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2021-3426RHEL, Rocky, Alma, Fedora
rpm -q python
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2021-3426Alpine
apk list --installed | grep -i pythonWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2021-3426
trivy image --scanners vuln IMAGE | grep CVE-2021-3426
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- FEDORA-2021-a311bf10d4 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-2ab6f060d9 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-1769a23935 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-b6b6093b3a lists.fedoraproject.org · vendor advisory
- FEDORA-2021-067c9deff1 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-0a8f3ffbc0 lists.fedoraproject.org · vendor advisory
- FEDORA-2021-a26257ccf5 lists.fedoraproject.org · vendor advisory
- GLSA-202104-04 security.gentoo.org · vendor advisory
Other references
- [debian-lts-announce] 20210405 [SECURITY] [DLA 2619-1] python3.5 security update lists.debian.org · mailing list
- https://bugzilla.redhat.com/show_bug.cgi?id=1935913 bugzilla.redhat.com
- https://www.oracle.com/security-alerts/cpuoct2021.html oracle.com
- https://security.netapp.com/advisory/ntap-20210629-0003/ security.netapp.com
- https://www.oracle.com/security-alerts/cpujan2022.html oracle.com
- [debian-lts-announce] 20230630 [SECURITY] [DLA 3477-1] python3.7 security update lists.debian.org · mailing list
- https://lists.debian.org/debian-lts-announce/2024/12/msg00000.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
Source: the record CVE-2021-3426 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse