7.5
CWE
835 20
Advisory Published
Updated

CVE-2019-20907: Input Validation

First published: Tue Dec 10 2019(Updated: )

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.

Credit: cve@mitre.org cve@mitre.org

Affected SoftwareAffected VersionHow to fix
redhat/python<0:2.7.5-90.el7
0:2.7.5-90.el7
redhat/python3<0:3.6.8-18.el7
0:3.6.8-18.el7
redhat/python<0:2.7.5-64.el7_4
0:2.7.5-64.el7_4
redhat/python<0:2.7.5-84.el7_6
0:2.7.5-84.el7_6
redhat/python<0:2.7.5-88.el7_7
0:2.7.5-88.el7_7
redhat/python3<0:3.6.8-31.el8
0:3.6.8-31.el8
redhat/rh-python36-python<0:3.6.12-1.el6
0:3.6.12-1.el6
redhat/rh-python36-python-pip<0:9.0.1-5.el6
0:9.0.1-5.el6
redhat/rh-python36-python-virtualenv<0:15.1.0-3.el6
0:15.1.0-3.el6
redhat/python27-python<0:2.7.18-2.el7
0:2.7.18-2.el7
redhat/python27-python-pip<0:8.1.2-6.el7
0:8.1.2-6.el7
redhat/python27-python-virtualenv<0:13.1.0-4.el7
0:13.1.0-4.el7
redhat/rh-python36-python<0:3.6.12-1.el7
0:3.6.12-1.el7
redhat/rh-python36-python-pip<0:9.0.1-5.el7
0:9.0.1-5.el7
redhat/rh-python36-python-virtualenv<0:15.1.0-3.el7
0:15.1.0-3.el7
redhat/rh-python38-python<0:3.8.6-1.el7
0:3.8.6-1.el7
redhat/rh-python38-python-psutil<0:5.6.4-5.el7
0:5.6.4-5.el7
redhat/rh-python38-python-urllib3<0:1.25.7-6.el7
0:1.25.7-6.el7
debian/python2.7<=2.7.16-2+deb10u1
2.7.16-2+deb10u4
2.7.18-8+deb11u1
debian/python3.7
3.7.3-2+deb10u3
3.7.3-2+deb10u7
debian/python3.9
3.9.2-1
ubuntu/python2.7<2.7.17-1~18.04ubuntu1.1
2.7.17-1~18.04ubuntu1.1
ubuntu/python2.7<2.7.18-1~20.04.1
2.7.18-1~20.04.1
ubuntu/python2.7<2.7.6-8ubuntu0.6+
2.7.6-8ubuntu0.6+
ubuntu/python2.7<2.7.12-1ubuntu0~16.04.12
2.7.12-1ubuntu0~16.04.12
ubuntu/python3.4<3.4.3-1ubuntu1~14.04.7+
3.4.3-1ubuntu1~14.04.7+
ubuntu/python3.5<3.5.2-2ubuntu0~16.04.11
3.5.2-2ubuntu0~16.04.11
ubuntu/python3.6<3.6.9-1~18.04ubuntu1.1
3.6.9-1~18.04ubuntu1.1
ubuntu/python3.8<3.8.2-1ubuntu1.2
3.8.2-1ubuntu1.2
ubuntu/python3.8<3.8.5-1
3.8.5-1
Python Python>=3.5.0<3.5.10
Python Python>=3.6.0<3.6.12
Python Python>=3.7.0<3.7.9
Python Python>=3.8.0<3.8.5
openSUSE Leap=15.1
openSUSE Leap=15.2
Debian Debian Linux=9.0
Fedoraproject Fedora=31
Fedoraproject Fedora=32
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=20.04
Netapp Active Iq Unified Manager Vsphere>=9.5
Netapp Cloud Volumes Ontap Mediator
Oracle ZFS Storage Appliance Kit=8.8

Remedy

This flaw can be mitigated by not opening untrusted files with tarfile.

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

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].

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203