{"id":"CVE-2025-8291","aliases":["CVE-2025-8291","PSF-2025-12","BIT-LIBPYTHON-2025-8291","BIT-PYTHON-2025-8291","BIT-PYTHON-MIN-2025-8291","GHSA-hhv7-p4pg-wm6p"],"related":[],"kind":"vulnerability","state":"published","title":"ZIP64 End of Central Directory (EOCD) Locator record offset not checked","summary":"The 'zipfile' module would not check the validity of the ZIP64 End of\nCentral Directory (EOCD) Locator record offset value would not be used to\nlocate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be\nassumed to be the previous record in the ZIP archive. This could be abused\nto create ZIP archives that are handled differently by the 'zipfile' module\ncompared to other ZIP implementations.\n\n\nRemediation maintains this behavior, but checks that the offset specified\nin the ZIP64 EOCD Locator record matches the expected value.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The 'zipfile' module would not check the validity of the ZIP64 End of\nCentral Directory (EOCD) Locator record offset value would not be used to\nlocate the ZIP64 EOCD record, instead the ZIP64 EOCD record would be\nassumed to be the previous record in the ZIP archive. This could be abused\nto create ZIP archives that are handled differently by the 'zipfile' module\ncompared to other ZIP implementations.\n\n\nRemediation maintains this behavior, but checks that the offset specified\nin the ZIP64 EOCD Locator record matches the expected value.","source":"cvelist"},{"lang":"es","text":"El módulo 'zipfile' no verificaría la validez del valor de desplazamiento del registro localizador del Fin del Directorio Central (EOCD) ZIP64, y este valor no se usaría para localizar el registro EOCD ZIP64; en su lugar, se asumiría que el registro EOCD ZIP64 es el registro anterior en el archivo ZIP. Esto podría ser abusado para crear archivos ZIP que son manejados de manera diferente por el módulo 'zipfile' en comparación con otras implementaciones ZIP.\n\nLa remediación mantiene este comportamiento, pero verifica que el desplazamiento especificado en el registro localizador EOCD ZIP64 coincide con el valor esperado.","source":"nvd"}],"published":"2025-10-07T18:10:05.908Z","modified":"2026-10-08T22:10:00.563Z","severity":{"scorer":"PSF","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":4.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1285"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.9.24","status":"affected"},{"type":"python","introduced":"3.10.0","fixed":"3.10.19","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.14","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.12","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.10","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.1","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"162997bb70e067668c039700141770687bc8f267"},{"type":"git","status":"affected","fixed":"333d4a6f4967d3ace91492a39ededbcf3faa76a6"},{"type":"git","status":"affected","fixed":"1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46"},{"type":"git","status":"affected","fixed":"76437ac248ad8ca44e9bf697b02b1e2241df2196"},{"type":"git","status":"affected","fixed":"8392b2f0d35678407d9ce7d95655a5b77de161b4"},{"type":"git","status":"affected","fixed":"bca11ae7d575d87ed93f5dd6a313be6246e3e388"},{"type":"git","status":"affected","fixed":"d11e69d6203080e3ec450446bfed0516727b85c3"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.24"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.19"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.14"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.12"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.24"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.19"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.14"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.12"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.24"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.19"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.14"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.12"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.10"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.1"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/pull/139702","tags":["patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/QECOPWMTH4VPPJAXAH2BGTA4XADOP62G/","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/issues/139700","tags":["issue-tracking","report","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/162997bb70e067668c039700141770687bc8f267","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/333d4a6f4967d3ace91492a39ededbcf3faa76a6","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/1d29afb0d6218aa8fb5e1e4a6133a4778d89bb46","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/76437ac248ad8ca44e9bf697b02b1e2241df2196","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/8392b2f0d35678407d9ce7d95655a5b77de161b4","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/bca11ae7d575d87ed93f5dd6a313be6246e3e388","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/d11e69d6203080e3ec450446bfed0516727b85c3","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/psf/advisory-database/blob/main/advisories/python/PSF-2025-12.json","tags":["vendor-advisory","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/google/security-research/security/advisories/GHSA-hhv7-p4pg-wm6p","tags":["exploit","technical-description","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8291","tags":["web"],"sources":["bitnami"]}],"credits":["Caleb Brown (Google)","Serhiy Storchaka","Seth Larson"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-10-29T15:15:06.403Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-8291","url":"https://www.cve.org/CVERecord?id=CVE-2025-8291","licence":"CVE Terms of Use","modified":"2026-07-31T14:01:02.211Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2025-12","url":"https://osv.dev/vulnerability/PSF-2025-12","licence":"CC-BY-4.0","modified":"2025-10-31T03:59:55.798Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-8291","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-8291","licence":"Public domain","modified":"2026-10-08T22:10:00.563Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2025-8291","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2025-8291","licence":"Apache-2.0","modified":"2025-12-04T12:21:54.904Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2025-8291","url":"https://osv.dev/vulnerability/BIT-PYTHON-2025-8291","licence":"Apache-2.0","modified":"2025-12-04T13:29:00.824Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2025-8291","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2025-8291","licence":"Apache-2.0","modified":"2025-12-04T12:58:38.910Z"}],"updatedAt":"2026-11-25T22:59:05.610Z","epss":{"score":0.00489,"percentile":0.43708,"date":"2026-12-01T12:00:22.000Z"}}