---
cve: "CVE-2025-8291"
severity: "MEDIUM"
cvss: 4.3
epss: "0.5%"
vendor: "Python Software Foundation"
kev: false
exploited: false
published: "2025-10-07 18:16:00"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-10-29T01:07:46+01:00"
---

# CVE-2025-8291

> 4.3 MEDIUM · 🧪 PoC

## Beschreibung

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.

## CNA-Record (Kanon, cvelistV5)

- CNA: **PSF**
- State: PUBLISHED
- Stand: 2026-07-31 14:01:02
- CNA-CVSS: **4.3** (`CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`)

## CISA-Anreicherung (vulnrichment/ADP)

- CISA-SSVC (Coordinator, v2.0.3):
  - Exploitation: **poc**
  - Automatable: **no**
  - Technical Impact: **partial**

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Erforderlich | good |
| S Scope | Unverändert | good |
| C Vertraulichkeit | Keine | good |
| I Integrität | Gering | warn |
| A Verfügbarkeit | Keine | good |

## Schwachstellen-Klasse

- **CWE-1285** — Improper Validation of Specified Index, Position, or Offset in Input
  The product receives input that is expected to specify an index, position, or offset into an indexable resource such as a buffer or file, but it does not validate or incorrectly validates that the specified index/position/offset has the required properties.

## Patch verfügbar (OSV)

- 91bdb00dfed8634de52e2f64cba7545deb20f74c (Commit)
- f08d3c437bc5f41973ddd11f4cfc3d9fe04010f7 (Commit)

## BSI-Hinweise (deutsch)

- [Xerox FreeFlow Print Server: Mehrere Schwachstellen ermöglichen nicht spezifizierten Angriff](https://wid.cert-bund.de/portal/wid/sicherheitshinweis/WID-SEC-W-2026-1730) — _BSI-Einstufung: mittel_
  Ein Angreifer kann mehrere Schwachstellen in Xerox FreeFlow Print Server ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
- [Dell Secure Connect Gateway Policy Manager: Mehrere Schwachstellen](https://wid.cert-bund.de/portal/wid/sicherheitshinweis/WID-SEC-W-2026-0778) — _BSI-Einstufung: hoch_
  Ein Angreifer kann mehrere Schwachstellen in Dell Secure Connect Gateway Policy Manager ausnutzen, um einen nicht näher spezifizierten Angriff durchzuführen.
- [Python (CPython Zipfile Module): Schwachstelle ermöglicht Manipulation von Dateien](https://wid.cert-bund.de/portal/wid/sicherheitshinweis/WID-SEC-W-2025-2230) — _BSI-Einstufung: niedrig_
  Ein entfernter, anonymer Angreifer kann eine Schwachstelle im zipfile-Modul von CPython ausnutzen, um Dateien zu manipulieren.

## Referenzen

- <https://github.com/python/cpython/pull/139702>
- <https://mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/>
- <https://github.com/python/cpython/issues/139700>
- <https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267>
- <https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6>
- <https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46>
- <https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196>
- <https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4>
- <https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388>
- <https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3>
- <https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p>
- <https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/sicherheitsluecken/cve-2025-8291/) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI WID (CSAF)_
