BIT-python-2024-6232: Regular-expression DoS when parsing TarFile headers
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
Event History
Frequently Asked Questions
What does an attacker need to exploit this issue?
An attacker needs to provide a specifically crafted tar archive that is parsed by CPython's tarfile.TarFile header-processing code. No authentication or user interaction is indicated by the supplied severity vector.
What is the likely impact of successful exploitation?
The vulnerable regular expressions can perform excessive backtracking, causing a denial of service while the crafted tar archive is parsed. The supplied vector indicates availability impact only, with no indicated confidentiality or integrity impact.
How can I determine whether an application is exposed?
An application is exposed if it uses affected CPython tarfile.TarFile functionality to parse tar archives that may be attacker-controlled or otherwise untrusted. The provided information does not identify specific affected or fixed CPython versions.