CVE-2025-8291: ZIP64 End of Central Directory (EOCD) Locator record offset not checked

Published Oct 7, 2025
·
Updated

The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locator record offset value would not be used to locate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be assumed to be the previous record in the ZIP archive. This could be abused to create ZIP archives that are handled differently by the 'zipfile' module compared to other ZIP implementations.

Remediation maintains this behavior, but checks that the offset specified in the ZIP64 EOCD Locator record matches the expected value.

Other sources

ZIP64 End of Central Directory (EOCD) Locator record offset not checked

— Microsoft

Affected Software

39 affected componentsFixes available
IBM Netezza Software<=11.3.0.3-IF2
All of the following
azurelinux/python3<3.9.19-16
3.9.19-16
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/python3<3.12.9-5
3.12.9-5
Microsoft Azure Linux=3.0
All of the following
azurelinux/python3=3.9.19-14
Microsoft CBL-Mariner=2.0
debian/jython*
debian/jython*
debian/jython<2.7.4-1
2.7.4-1
debian/pypy3*
debian/pypy3*
debian/pypy3<7.3.21+dfsg-1
7.3.21+dfsg-1
debian/python3.11<3.11.2-6+deb12u7
3.11.2-6+deb12u7
debian/python3.13<3.13.5-2+deb13u1
3.13.5-2+deb13u1
debian/python3.14<3.14.0-3
3.14.0-3
debian/jython<=2.7.3+repack1-1
2.7.4-1
debian/pypy3<=7.3.11+dfsg-2+deb12u3, <=7.3.19+dfsg-2
8.0.1+dfsg-1
debian/python3.11
3.11.2-6+deb12u83.11.2-6+deb12u9
debian/python3.13
3.13.5-2+deb13u53.13.18-1
debian/python3.14
3.14.10-1
ubuntu/python2.7*
ubuntu/python3.4<3.4.3-1ubuntu1~14.04.7+esm17
3.4.3-1ubuntu1~14.04.7+esm17
ubuntu/python3.5<3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
ubuntu/python3.5<3.5.2-2ubuntu0~16.04.13+esm20
3.5.2-2ubuntu0~16.04.13+esm20
ubuntu/python2.7*
ubuntu/python2.7*
ubuntu/python3.6<3.6.9-1~18.04ubuntu1.13+esm7
3.6.9-1~18.04ubuntu1.13+esm7
ubuntu/python3.7<3.7.5-2ubuntu1~18.04.2+esm8
3.7.5-2ubuntu1~18.04.2+esm8
ubuntu/python3.8<3.8.0-3ubuntu1~18.04.2+esm7
3.8.0-3ubuntu1~18.04.2+esm7
ubuntu/python3.8<3.8.10-0ubuntu1~20.04.18+esm3
3.8.10-0ubuntu1~20.04.18+esm3
ubuntu/python2.7*
ubuntu/python3.9<3.9.5-3ubuntu0~20.04.1+esm7
3.9.5-3ubuntu0~20.04.1+esm7
ubuntu/python3.10<3.10.12-1~22.04.12
3.10.12-1~22.04.12
ubuntu/python2.7*
ubuntu/python3.11<3.11.0~rc1-1~22.04.1~esm6
3.11.0~rc1-1~22.04.1~esm6
ubuntu/python3.12<3.12.3-1ubuntu0.9
3.12.3-1ubuntu0.9
ubuntu/python3.13<3.13.7-1ubuntu0.1
3.13.7-1ubuntu0.1
ubuntu/python3.14*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.9.19-16
  2. Upgrade

    Upgrade azurelinux/python3 to a version that resolves this vulnerability.

    Fixed in 3.12.9-5
  3. Upgrade

    Upgrade debian/jython to a version that resolves this vulnerability.

    Fixed in 2.7.4-1
  4. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 7.3.21+dfsg-1
  5. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u7
  6. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u1
  7. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.0-3
  8. Upgrade

    Upgrade debian/pypy3 to a version that resolves this vulnerability.

    Fixed in 8.0.1+dfsg-1
  9. Upgrade

    Upgrade debian/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.2-6+deb12u8Fixed in 3.11.2-6+deb12u9
  10. Upgrade

    Upgrade debian/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.5-2+deb13u5Fixed in 3.13.18-1
  11. Upgrade

    Upgrade debian/python3.14 to a version that resolves this vulnerability.

    Fixed in 3.14.10-1
  12. Upgrade

    Upgrade ubuntu/python3.4 to a version that resolves this vulnerability.

    Fixed in 3.4.3-1ubuntu1~14.04.7+esm17
  13. Upgrade

    Upgrade ubuntu/python3.5 to a version that resolves this vulnerability.

    Fixed in 3.5.2-2ubuntu0~16.04.4~14.04.1+esm8
  14. Upgrade

    Upgrade ubuntu/python3.5 to a version that resolves this vulnerability.

    Fixed in 3.5.2-2ubuntu0~16.04.13+esm20
  15. Upgrade

    Upgrade ubuntu/python3.6 to a version that resolves this vulnerability.

    Fixed in 3.6.9-1~18.04ubuntu1.13+esm7
  16. Upgrade

    Upgrade ubuntu/python3.7 to a version that resolves this vulnerability.

    Fixed in 3.7.5-2ubuntu1~18.04.2+esm8
  17. Upgrade

    Upgrade ubuntu/python3.8 to a version that resolves this vulnerability.

    Fixed in 3.8.0-3ubuntu1~18.04.2+esm7
  18. Upgrade

    Upgrade ubuntu/python3.8 to a version that resolves this vulnerability.

    Fixed in 3.8.10-0ubuntu1~20.04.18+esm3
  19. Upgrade

    Upgrade ubuntu/python3.9 to a version that resolves this vulnerability.

    Fixed in 3.9.5-3ubuntu0~20.04.1+esm7
  20. Upgrade

    Upgrade ubuntu/python3.10 to a version that resolves this vulnerability.

    Fixed in 3.10.12-1~22.04.12
  21. Upgrade

    Upgrade ubuntu/python3.11 to a version that resolves this vulnerability.

    Fixed in 3.11.0~rc1-1~22.04.1~esm6
  22. Upgrade

    Upgrade ubuntu/python3.12 to a version that resolves this vulnerability.

    Fixed in 3.12.3-1ubuntu0.9
  23. Upgrade

    Upgrade ubuntu/python3.13 to a version that resolves this vulnerability.

    Fixed in 3.13.7-1ubuntu0.1

Event History

Oct 7, 2025
CVE Published
via MITRE·06:10 PM
Data Sourced
via MITRE·06:10 PM
DescriptionSeverity
Data Sourced
via NVD·06:16 PM
DescriptionSeverity
Data Sourced
via Red Hat·07:01 PM
DescriptionSeverityAffected Software
Oct 10, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·01:02 AM
Affected Software
Updated
via Microsoft·08:02 AM
Affected Software
Oct 15, 2025
Data Sourced
via NVD·04:15 PM
Weakness
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Nov 1, 2026
Data Sourced
via OSV·05:00 PM
Affected Software
Nov 16, 2026
Updated
via OSV·11:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-8291?

CVE-2025-8291 is classified as a high severity vulnerability due to potential exploitation leading to arbitrary code execution.

2

How do I fix CVE-2025-8291?

To fix CVE-2025-8291, update to the latest version of the Python 'zipfile' module where the vulnerability has been patched.

3

What is the impact of CVE-2025-8291?

The impact of CVE-2025-8291 includes potential data corruption or arbitrary code execution if malformed ZIP files are processed.

4

Who is affected by CVE-2025-8291?

CVE-2025-8291 affects all applications using the Python Software Foundation's 'zipfile' module without proper input validation on ZIP64 files.

5

Is CVE-2025-8291 being actively exploited?

As of now, there are no confirmed reports of active exploitation for CVE-2025-8291, but vigilance is advised.

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