CVE-2025-8291
Python Interpreter vulnerability analysis and mitigation

Overview

The Python 'zipfile' module contains a vulnerability (CVE-2025-8291) related to improper validation of ZIP64 End of Central Directory (EOCD) Locator record offset values. The vulnerability was discovered and disclosed on October 7, 2025. This issue affects Python's standard library zipfile module across multiple versions (Python Security).

Technical details

The vulnerability stems from the zipfile module not properly checking the validity of the ZIP64 End of Central Directory (EOCD) Locator record offset value. Instead of using this offset to locate the ZIP64 EOCD record, the module would assume it to be the previous record in the ZIP archive. The issue has been assigned a CVSS v3.1 score of 4.3 MEDIUM with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N (NVD Database).

Impact

This vulnerability could be exploited to create ZIP archives that are handled differently by the Python zipfile module compared to other ZIP implementations, potentially leading to inconsistent behavior and security implications when processing ZIP files (Python Security).

Mitigation and workarounds

The issue has been patched by implementing additional consistency checks in the zipfile module. The fix maintains the existing behavior but adds verification that the offset specified in the ZIP64 EOCD Locator record matches the expected value. The patch has been applied across multiple Python versions through various pull requests (Python GitHub).

Additional resources


SourceThis report was generated using AI

Related Python Interpreter vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-4517CRITICAL9.4
  • Rocky LinuxRocky Linux
  • python3-xml
NoYesJun 03, 2025
CVE-2025-49714HIGH7.8
  • Visual Studio CodeVisual Studio Code
  • cpe:2.3:a:microsoft:visual_studio_code
NoYesJul 08, 2025
CVE-2025-8194HIGH7.5
  • Rocky LinuxRocky Linux
  • python39-devel:3.9::python39-setuptools
NoYesJul 28, 2025
CVE-2025-8291MEDIUM4.3
  • Python InterpreterPython Interpreter
  • pypy3
NoNoOct 07, 2025
CVE-2025-6069MEDIUM4.3
  • Python InterpreterPython Interpreter
  • mingw64-python3
NoYesJun 17, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management