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.ope
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.
- BDU:2021-00726
- ALSA-2020:4641
- ALSA-2020:4654
- DLA-2337-1
- DLA-2456-1
- DLA-3432-1
- openSUSE-SU-2020:1254-1
- openSUSE-SU-2020:1257-1
- openSUSE-SU-2020:1258-1
- openSUSE-SU-2020:1265-1
- openSUSE-SU-2020:2332-1
- openSUSE-SU-2020:2333-1
- openSUSE-SU-2024:11283-1
- openSUSE-SU-2024:11285-1
- openSUSE-SU-2024:11286-1
- openSUSE-SU-2024:11551-1
- openSUSE-SU-2024:12089-1
- openSUSE-SU-2024:12910-1
- openSUSE-SU-2024:14109-1
- openSUSE-SU-2024:14434-1
- Published
- Jul 13, 2020
- Updated
- Jun 16, 2026
- EPSS
- 6.3% · 93th percentile
- CWE
- CWE-835
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
32
Monitor
Low priority for now.
- CVSS
- 30 / 40 · 7.5 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.3%
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpAffected systems
| Vendor | Product | CPE |
|---|---|---|
| python | python | cpe:2.3:a:python:python |
| opensuse | leap | cpe:2.3:o:opensuse:leap |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| netapp | active iq unified manager | cpe:2.3:a:netapp:active_iq_unified_manager |
| netapp | cloud volumes ontap mediator | cpe:2.3:a:netapp:cloud_volumes_ontap_mediator |
| oracle | zfs storage appliance kit | cpe:2.3:a:oracle:zfs_storage_appliance_kit |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux12.04
- canonical ubuntu linux14.04
- canonical ubuntu linux16.04
- canonical ubuntu linux18.04
- canonical ubuntu linux20.04
- debian debian linux9.0
- fedoraproject fedora31
- fedoraproject fedora32
- netapp active iq unified manager9.5 and later
- netapp cloud volumes ontap mediatorall versions
- opensuse leap15.1
- opensuse leap15.2
- oracle zfs storage appliance kit8.8
- python python3.8.0 and later · before 3.8.5
- python python3.7.0 and later · before 3.7.9
- python python3.6.0 and later · before 3.6.12
- python python3.5.0 and later · before 3.5.10
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| AlmaLinux:8 | python-psycopg2-doc | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python-sqlalchemy-doc | before 1.3.2-2.module_el8.5.0+2569+5c5719bc | 1.3.2-2.module_el8.5.0+2569+5c5719bc |
| AlmaLinux:8 | python-sqlalchemy-doc | before 1.3.2-2.module_el8.6.0+2781+fed64c13 | 1.3.2-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-attrs | before 17.4.0-10.module_el8.6.0+2781+fed64c13 | 17.4.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-chardet | before 3.0.4-10.module_el8.6.0+2781+fed64c13 | 3.0.4-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-coverage | before 4.5.1-4.module_el8.6.0+2781+fed64c13 | 4.5.1-4.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-Cython | before 0.28.1-7.module_el8.6.0+2781+fed64c13 | 0.28.1-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-dns | before 1.15.0-10.module_el8.6.0+2781+fed64c13 | 1.15.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docs-info | before 2.7.16-2.module_el8.6.0+2781+fed64c13 | 2.7.16-2.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-docutils | before 0.14-12.module_el8.6.0+2781+fed64c13 | 0.14-12.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-funcsigs | before 1.0.2-13.module_el8.6.0+2781+fed64c13 | 1.0.2-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-idna | before 2.5-7.module_el8.6.0+2781+fed64c13 | 2.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-ipaddress | before 1.0.18-6.module_el8.6.0+2781+fed64c13 | 1.0.18-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-markupsafe | before 0.23-19.module_el8.6.0+2781+fed64c13 | 0.23-19.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-mock | before 2.0.0-13.module_el8.6.0+2781+fed64c13 | 2.0.0-13.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pluggy | before 0.6.0-8.module_el8.6.0+2781+fed64c13 | 0.6.0-8.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2 | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2-debug | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-psycopg2-tests | before 2.7.5-7.module_el8.6.0+2781+fed64c13 | 2.7.5-7.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-py | before 1.5.3-6.module_el8.6.0+2781+fed64c13 | 1.5.3-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-PyMySQL | before 0.8.0-10.module_el8.6.0+2781+fed64c13 | 0.8.0-10.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pysocks | before 1.6.8-6.module_el8.6.0+2781+fed64c13 | 1.6.8-6.module_el8.6.0+2781+fed64c13 |
| AlmaLinux:8 | python2-pytest | before 3.4.2-13.module_el8.6.0+2781+fed64c13 | 3.4.2-13.module_el8.6.0+2781+fed64c13 |
+96
Same product
python: all recordsOther highest-scoring records for the same primary product.
- CVE-2016-5636Integer overflow in the get_data function in zipimport.c in CPython (aka Python) before 2.7.12, 3.x before 3.4.5, and 3.5.x before 3.5.2 all47Plan
- CVE-2007-4559Directory traversal vulnerability in the (1) extract and (2) extractall functions in the tarfile module in Python allows user-assisted remot47Plan
- CVE-2021-3177Python 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 Pyth46Plan
- CVE-2014-4650The CGIHTTPServer module in Python 2.7.5 and 3.3.4 does not properly handle URLs in which URL encoding is used for path separators, which al46Plan
- CVE-2018-1000802Python Software Foundation Python (CPython) version 2.7 contains a CWE-77: Improper Neutralization of Special Elements used in a Command ('C45Plan
- CVE-2020-27619In Python 3 through 3.9.0, the Lib/test/multibytecodec_support.py CJK codec tests call eval() on content retrieved via HTTP.42Plan
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| CBL Mariner 1.0 ARM | 2.7.18-5 · python2 | Microsoft (MSRC) |
| CBL Mariner 1.0 ARM | 3.7.10-3 · python3 | Microsoft (MSRC) |
| CBL Mariner 1.0 x64 | 2.7.18-5 · python2 | Microsoft (MSRC) |
| CBL Mariner 1.0 x64 | 3.7.10-3 · python3 | Microsoft (MSRC) |
| almalinux:python38-asn1crypto | 1.2.0-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-cffi | 1.13.2-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-chardet | 3.0.4-19.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-cryptography | 2.8-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-Cython | 0.29.14-4.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-idna | 2.8-6.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-markupsafe | 1.1.1-6.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-mod_wsgi | 4.6.8-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-psycopg2 | 2.8.4-4.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-psycopg2-doc | 2.8.4-4.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-psycopg2-tests | 2.8.4-4.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| almalinux:python38-pycparser | 2.19-3.module_el8.6.0+2778+cd494b30 · AlmaLinux:8 | Package registry (OSV) |
| alpine:python3 | 3.8.5-r0 · Alpine:v3.12 | Package registry (OSV) |
| debian:pypy3 | 7.3.3+dfsg-1 · Debian:12 | Package registry (OSV) |
| debian:python2.7 | 2.7.13-2+deb9u4 · Debian:9 | Package registry (OSV) |
| debian:python3.5 | 3.5.3-1+deb9u3 · Debian:9 | Package registry (OSV) |
| opensuse:python | 2.7.17-lp152.3.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python-base | 2.7.17-lp152.3.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python-doc | 2.7.17-lp152.3.3.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python3 | 3.6.10-lp151.6.24.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3-base | 3.6.10-lp151.6.24.1 · openSUSE:Leap 15.1 | Package registry (OSV) |
| opensuse:python3-core | 3.6.12-lp152.4.14.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python3-doc | 3.6.10-lp152.4.6.3 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python3-documentation | 3.6.12-lp152.4.14.1 · openSUSE:Leap 15.2 | Package registry (OSV) |
| opensuse:python310 | 3.10.0rc1-4.2 · openSUSE:Tumbleweed | Package registry (OSV) |
| opensuse:python311 | 3.11.0b1-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
+37
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
National notice (Türkiye Cybersecurity Directorate / USOM)
Official security notices citing this record; remediation advice is on the agency's page.
- TR-21-0230 · Mar 12, 2021(RedHat Güvenlik Güncellemeleri Yayınladı)
- TR-20-1044 · Dec 18, 2020(OpenShift Güvenlik Güncellemesi)
- TR-20-958 · Nov 13, 2020(Python için Güvenlik Güncellemeleri Yayınladı)
- TR-20-773 · Sep 22, 2020(Python için Güvenlik Güncellemeleri Yayınladı)
- TR-20-612 · Aug 14, 2020(Python için Güvenlik Güncellemeleri Yayınladı)
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- none
- Integrity
- none
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- None
- Integrity impact
- None
- Availability impact
- High
Weakness class (CWE)
CWE-835 · Loop with Unreachable Exit Condition ('Infinite Loop')CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- lists.opensuse.org/opensuse-security-announce/2020-08/msg00051.html
- lists.opensuse.org/opensuse-security-announce/2020-08/msg00052.html
- lists.opensuse.org/opensuse-security-announce/2020-08/msg00053.html
- lists.opensuse.org/opensuse-security-announce/2020-08/msg00056.html
- bugs.python.org/issue39017
- github.com/python/cpython/pull/21454
- lists.debian.org/debian-lts-announce/2020/08/msg00034.html
- lists.debian.org/debian-lts-announce/2020/11/msg00032.html
- lists.debian.org/debian-lts-announce/2023/05/msg00024.html
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36XI3EEQNMHGOZEI63Y7UV6XZRELYEAU/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CAXHCY4V3LPAAJOBCJ26ISZ4NUXQXTUZ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CNHPQGSP2YM3JAUD2VAMPXTIUQTZ2M2U/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CTUNTBJ3POHONQOTLEZC46POCIYYTAKZ/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE4O3PNDNNOMSKHNUKZKD3NGHIFUFDPX/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NTBKKOLFFNHG6CM4ACDX4APHSD5ZX5N4/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OXI72HIHMXCQFWTULUXDG7VDA2BCYL4Y/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PDKKRXLNVXRF6VGERZSR3OMQR5D5QI6I/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TOGKLGTXZLHQQFBVCAPSUDA6DOOJFNRY/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V3TALOUBYU2MQD4BPLRTDQUMBKGCAXUA/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/V53P2YOLEQH4J7S5QHXMKMZYFTVVMTMO/
Vendor advisories and official records. Exploit/PoC links are deliberately left out.