BIT-libpython-2024-6232: 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 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 provide a specifically crafted tar archive that is parsed through tarfile.TarFile header processing. No privileges or user interaction are required according to the supplied severity vector.

2

Who is most exposed?

CPython deployments that parse tar archives from untrusted or attacker-controlled sources are exposed. The impact is denial of service, as malicious headers can trigger excessive regular-expression backtracking during parsing.

3

How can I tell whether an application may be affected?

Review whether the application uses Python's tarfile.TarFile functionality to open or inspect tar archives, especially archives received from external users, uploads, network sources, or other untrusted inputs.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203