CVE-2019-20907: Input Validation
A flaw was found in python. In Lib/tarfile.py an attacker is able to craft a TAR archive leading to an infinite loop when opened by tarfile.open, because procpax lacks header validation.
Other sources
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 procpax lacks header validation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 0:2.7.5-90.el7 - Upgrade
Upgrade
redhat/python3to a version that resolves this vulnerability.Fixed in 0:3.6.8-18.el7 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 0:2.7.5-64.el7_4 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 0:2.7.5-84.el7_6 - Upgrade
Upgrade
redhat/pythonto a version that resolves this vulnerability.Fixed in 0:2.7.5-88.el7_7 - Upgrade
Upgrade
redhat/python3to a version that resolves this vulnerability.Fixed in 0:3.6.8-31.el8 - Upgrade
Upgrade
redhat/rh-python36-pythonto a version that resolves this vulnerability.Fixed in 0:3.6.12-1.el6 - Upgrade
Upgrade
redhat/rh-python36-python-pipto a version that resolves this vulnerability.Fixed in 0:9.0.1-5.el6 - Upgrade
Upgrade
redhat/rh-python36-python-virtualenvto a version that resolves this vulnerability.Fixed in 0:15.1.0-3.el6 - Upgrade
Upgrade
redhat/python27-pythonto a version that resolves this vulnerability.Fixed in 0:2.7.18-2.el7 - Upgrade
Upgrade
redhat/python27-python-pipto a version that resolves this vulnerability.Fixed in 0:8.1.2-6.el7 - Upgrade
Upgrade
redhat/python27-python-virtualenvto a version that resolves this vulnerability.Fixed in 0:13.1.0-4.el7 - Upgrade
Upgrade
redhat/rh-python36-pythonto a version that resolves this vulnerability.Fixed in 0:3.6.12-1.el7 - Upgrade
Upgrade
redhat/rh-python36-python-pipto a version that resolves this vulnerability.Fixed in 0:9.0.1-5.el7 - Upgrade
Upgrade
redhat/rh-python36-python-virtualenvto a version that resolves this vulnerability.Fixed in 0:15.1.0-3.el7 - Upgrade
Upgrade
redhat/rh-python38-pythonto a version that resolves this vulnerability.Fixed in 0:3.8.6-1.el7 - Upgrade
Upgrade
redhat/rh-python38-python-psutilto a version that resolves this vulnerability.Fixed in 0:5.6.4-5.el7 - Upgrade
Upgrade
redhat/rh-python38-python-urllib3to a version that resolves this vulnerability.Fixed in 0:1.25.7-6.el7 - Upgrade
Upgrade
debian/pypy3to a version that resolves this vulnerability.Fixed in 7.3.11+dfsg-2+deb12u3Fixed in 7.3.19+dfsg-2Fixed in 8.0.0+dfsg-1 - Compensating control
Do not open untrusted TAR files with Python's tarfile module.
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is CVE-2019-20907?
CVE-2019-20907 is a vulnerability in Python that allows an attacker to craft a TAR archive leading to an infinite loop when opened by tarfile.open.
How severe is CVE-2019-20907?
CVE-2019-20907 has a severity score of 7.5, which is considered high.
Which versions of Python are affected by CVE-2019-20907?
Python versions 2.7.5 to 2.7.5-90.el7, 3.6.8 to 3.6.8-18.el7, and 3.8.0 to 3.8.3 are affected by CVE-2019-20907.
How can I fix CVE-2019-20907?
To fix CVE-2019-20907, update your Python version to 2.7.5-91.el7, 3.6.8-19.el7, or 3.8.4 or later.
Where can I find more information about CVE-2019-20907?
You can find more information about CVE-2019-20907 at the following references: [link 1], [link 2], [link 3].