Skip to main content
CVE-2025-8291VulnerabilityPublished Updated

Python2.7: The 'zipfile' module would not check the validity of the ZIP64 End of Central Directory (EOCD) Locator

Affects python2.7Source GCVE Database

0
Compare
Authoritative record:CVE-2025-8291· Medium 4.3

Not known to be exploited · CVSS 4.3 Medium · fixed in 3.4.3-1ubuntu1~14.04.7+esm17 : update python2.7 when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.4% chance of exploitation in 30 days – higher than 42% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.4.3-1ubuntu1~14.04.7+esm17, 3.5.2-2ubuntu0~16.04.4~14.04.1+esm8, 3.5.2-2ubuntu0~16.04.13+esm20 +9
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 7 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 25.10python3.13pkg:deb/ubuntu/python3.13?arch=source&distro=questingOther threatsAffected
  • <3.13.7-1ubuntu0.1
Fixed in
  • 3.13.7-1ubuntu0.1
Ubuntu 25.10python3.14pkg:deb/ubuntu/python3.14?arch=source&distro=questingOther threatsAffected
  • 3.14.0-1 – 3.14.0~rc3-1
10 affected builds
Fixed in–
Ubuntu 24.04 LTSpython3.12pkg:deb/ubuntu/python3.12?arch=source&distro=nobleOther threatsAffected
  • <3.12.3-1ubuntu0.9
Fixed in
  • 3.12.3-1ubuntu0.9
Ubuntu 22.04 LTSpython3.10pkg:deb/ubuntu/python3.10?arch=source&distro=jammyOther threatsAffected
  • <3.10.12-1~22.04.12
Fixed in
  • 3.10.12-1~22.04.12
Ubuntu Pro 22.04 LTSpython2.7pkg:deb/ubuntu/python2.7?arch=source&distro=esm-apps/jammyOther threatsAffected
  • 2.7.18-8build1 – 2.7.18-13ubuntu1.5+esm9
21 affected builds
Fixed in–
Ubuntu Pro 22.04 LTSpython3.11pkg:deb/ubuntu/python3.11?arch=source&distro=esm-apps/jammyOther threatsAffected
  • <3.11.0~rc1-1~22.04.1~esm6
Fixed in
  • 3.11.0~rc1-1~22.04.1~esm6

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…