CVE-2019-20907
In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by…
Check your servers for CVE-2019-20907
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-2019-20907 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In Lib/tarfile.py in Python through 3.8.3, an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because _proc_pax lacks header validation.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- 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 none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 2.68%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 86.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 7 Oct 2026):
- 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-835 Loop with Unreachable Exit Condition
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) 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 PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-20907 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-20907RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-20907Alpine
apk list --installed | grep -i PACKAGEWith 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-2019-20907
trivy image --scanners vuln IMAGE | grep CVE-2019-20907
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-2020-dfb11916cc lists.fedoraproject.org · vendor advisory
- FEDORA-2020-e9251de272 lists.fedoraproject.org · vendor advisory
- USN-4428-1 usn.ubuntu.com · vendor advisory
- FEDORA-2020-c3b07cc5c9 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-aab24d3714 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-bb919e575e lists.fedoraproject.org · vendor advisory
- FEDORA-2020-97d775e649 lists.fedoraproject.org · vendor advisory
- GLSA-202008-01 security.gentoo.org · vendor advisory
- FEDORA-2020-826b24c329 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-1ddd5273d6 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-87c0a0a52d lists.fedoraproject.org · vendor advisory
- FEDORA-2020-efb908b6a8 lists.fedoraproject.org · vendor advisory
8 more
- FEDORA-2020-d808fdd597 lists.fedoraproject.org · vendor advisory
- FEDORA-2020-982b2950db lists.fedoraproject.org · vendor advisory
- FEDORA-2020-c539babb0a lists.fedoraproject.org · vendor advisory
- openSUSE-SU-2020:1254 lists.opensuse.org · vendor advisory
- openSUSE-SU-2020:1257 lists.opensuse.org · vendor advisory
- openSUSE-SU-2020:1258 lists.opensuse.org · vendor advisory
- openSUSE-SU-2020:1265 lists.opensuse.org · vendor advisory
- FEDORA-2020-d30881c970 lists.fedoraproject.org · vendor advisory
Other references
- [debian-lts-announce] 20200822 [SECURITY] [DLA 2337-1] python2.7 security update lists.debian.org · mailing list
- [debian-lts-announce] 20201119 [SECURITY] [DLA 2456-1] python3.5 security update lists.debian.org · mailing list
- https://www.oracle.com/security-alerts/cpujan2021.html oracle.com
- https://bugs.python.org/issue39017 bugs.python.org
- https://github.com/python/cpython/pull/21454 github.com
- https://security.netapp.com/advisory/ntap-20200731-0002/ security.netapp.com
- [debian-lts-announce] 20230524 [SECURITY] [DLA 3432-1] python2.7 security update lists.debian.org · mailing list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html cert-portal.siemens.com
Source: the record CVE-2019-20907 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