PSF-2024-11: Regular-expression DoS when parsing TarFile headers
Published Sep 3, 2024
·Updated
There is a MEDIUM severity vulnerability affecting CPython.
Regular expressions that allowed excessive backtracking during tarfile.TarFile header parsing are vulnerable to ReDoS via specifically-crafted tar archives.
Affected Software
1 affected component
Python Software Foundation CPython
Event History
Sep 3, 2024
CVE Published
via OSV·12:29 PM
Data Sourced
via OSV·12:29 PM
DescriptionSeverityWeakness
Frequently Asked Questions
1
What does an attacker need to exploit this issue?
An attacker needs to supply a specifically crafted tar archive that is parsed using CPython's tarfile.TarFile header parsing.
2
What is the expected impact of successful exploitation?
The issue can cause denial of service through excessive regular-expression backtracking while parsing tar headers. The provided vector indicates availability impact, with no confidentiality or integrity impact.