BIT-python-min-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
Who is exposed to this issue?
Any CPython deployment that parses tar archives through tarfile.TarFile may be exposed, particularly services that accept or process tar files from untrusted sources.
What does an attacker need to exploit it?
An attacker needs to provide a specifically crafted tar archive that is parsed by tarfile.TarFile. The provided vector indicates exploitation can occur remotely without privileges or user interaction.
What is the impact of successful exploitation?
The vulnerable header-parsing regular expressions can perform excessive backtracking, causing a denial of service. The supplied impact data indicates availability impact only, with no stated confidentiality or integrity impact.