CVE-2025-8291

NameCVE-2025-8291
DescriptionThe '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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jython (PTS)bullseye2.7.2+repack1-3vulnerable
forky, sid, bookworm, trixie2.7.3+repack1-1vulnerable
pypy3 (PTS)bullseye7.3.5+dfsg-2+deb11u2vulnerable
bullseye (security)7.3.5+dfsg-2+deb11u4vulnerable
bookworm7.3.11+dfsg-2+deb12u3vulnerable
trixie7.3.19+dfsg-2vulnerable
forky, sid7.3.20+dfsg-3vulnerable
python3.11 (PTS)bookworm3.11.2-6+deb12u6vulnerable
bookworm (security)3.11.2-6+deb12u3vulnerable
python3.13 (PTS)trixie3.13.5-2vulnerable
forky, sid3.13.7-1vulnerable
python3.14 (PTS)forky3.14.0~rc3-1vulnerable
sid3.14.0-1vulnerable
python3.9 (PTS)bullseye3.9.2-1vulnerable
bullseye (security)3.9.2-1+deb11u3vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jythonsourcebullseye(unfixed)end-of-life
jythonsource(unstable)(unfixed)
pypy3source(unstable)(unfixed)
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.9source(unstable)(unfixed)

Notes

[bullseye] - jython <end-of-life> (EOL in bullseye LTS)
https://mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/
https://github.com/python/cpython/issues/139700
https://github.com/python/cpython/pull/139702
https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267 (main)
https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3 (3.14-branch)
https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6 (3.13-branch)
https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4 (3.12-branch)
https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46 (3.11-branch)
https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388 (3.10-branch)
https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196 (3.9-branch)

Search for package or bug name: Reporting problems