BIT-python-min-2025-8194: Tarfile infinite loop during parsing with negative member offset

Published Jul 28, 2025
·
Updated

There is a defect in the CPython “tarfile” module affecting the “TarFile” extraction and entry enumeration APIs. The tar implementation would process tar archives with negative offsets without error, resulting in an infinite loop and deadlock during the parsing of maliciously crafted tar archives.

This vulnerability can be mitigated by including the following patch after importing the “tarfile” module:  https://gist.github.com/sethmlarson/1716ac5b82b73dbcbf23ad2eff8b33e1

Affected Software

16 affected componentsFixes available
Python Software Foundation CPython
bitnami/libpython<3.9.24
3.9.24
bitnami/libpython>=3.10.0<3.10.19
3.10.19
bitnami/libpython>=3.11.0<3.11.14
3.11.14
bitnami/libpython>=3.12.0<3.12.12
3.12.12
bitnami/libpython>=3.13.0<3.13.6
3.13.6
bitnami/python<3.9.24
3.9.24
bitnami/python>=3.10.0<3.10.19
3.10.19
bitnami/python>=3.11.0<3.11.14
3.11.14
bitnami/python>=3.12.0<3.12.12
3.12.12
bitnami/python>=3.13.0<3.13.6
3.13.6
bitnami/python-min<3.9.24
3.9.24
bitnami/python-min>=3.10.0<3.10.19
3.10.19
bitnami/python-min>=3.11.0<3.11.14
3.11.14
bitnami/python-min>=3.12.0<3.12.12
3.12.12
bitnami/python-min>=3.13.0<3.13.6
3.13.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade bitnami/libpython to a version that resolves this vulnerability.

    Fixed in 3.9.24
  2. Upgrade

    Upgrade bitnami/libpython to a version that resolves this vulnerability.

    Fixed in 3.10.19
  3. Upgrade

    Upgrade bitnami/libpython to a version that resolves this vulnerability.

    Fixed in 3.11.14
  4. Upgrade

    Upgrade bitnami/libpython to a version that resolves this vulnerability.

    Fixed in 3.12.12
  5. Upgrade

    Upgrade bitnami/libpython to a version that resolves this vulnerability.

    Fixed in 3.13.6
  6. Upgrade

    Upgrade bitnami/python to a version that resolves this vulnerability.

    Fixed in 3.9.24
  7. Upgrade

    Upgrade bitnami/python to a version that resolves this vulnerability.

    Fixed in 3.10.19
  8. Upgrade

    Upgrade bitnami/python to a version that resolves this vulnerability.

    Fixed in 3.11.14
  9. Upgrade

    Upgrade bitnami/python to a version that resolves this vulnerability.

    Fixed in 3.12.12
  10. Upgrade

    Upgrade bitnami/python to a version that resolves this vulnerability.

    Fixed in 3.13.6
  11. Upgrade

    Upgrade bitnami/python-min to a version that resolves this vulnerability.

    Fixed in 3.9.24
  12. Upgrade

    Upgrade bitnami/python-min to a version that resolves this vulnerability.

    Fixed in 3.10.19
  13. Upgrade

    Upgrade bitnami/python-min to a version that resolves this vulnerability.

    Fixed in 3.11.14
  14. Upgrade

    Upgrade bitnami/python-min to a version that resolves this vulnerability.

    Fixed in 3.12.12
  15. Upgrade

    Upgrade bitnami/python-min to a version that resolves this vulnerability.

    Fixed in 3.13.6

Event History

Jul 28, 2025
CVE Published
via OSV·06:42 PM
Data Sourced
via OSV·06:42 PM
DescriptionSeverityWeakness
Aug 11, 2025
Advisory Published
via OSV·02:00 PM
Data Sourced
via OSV·02:00 PM
Affected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that use CPython's tarfile module to enumerate entries in or extract attacker-controlled tar archives are exposed. Processing a maliciously crafted archive can cause the parsing operation to loop indefinitely and deadlock.

2

What does an attacker need to exploit it?

An attacker needs to cause the application to parse a crafted tar archive containing a negative member offset. No privileges or user interaction are indicated by the provided severity vector.

3

Are confidentiality or integrity affected?

The provided severity vector indicates no confidentiality or integrity impact. The impact is denial of service, because tarfile parsing can enter an infinite loop and deadlock.

4

What can be done if patching is not immediately possible?

The issue can be mitigated by applying the provided patch after importing the tarfile module. This mitigation is intended to prevent processing of tar archives with negative offsets.

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