Skip to content
Fencer Vulns
high 8.7

CVE-2024-8088 json

Infinite loop when iterating over zip archive entry names from zipfile.Path

published 2024-08-22 2 y ago modified 2026-06-17 4 mo ago also BIT-libpython-2024-8088 , BIT-python-2024-8088 , BIT-python-min-2024-8088 , EUVD-2024-48931

cvss
8.7
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
1.3%
EPSS 1.3% chance of exploitation in 30 days, percentile 70%
public exploits
0
none known

Summary

There is a HIGH severity vulnerability affecting the CPython "zipfile" module affecting "zipfile.Path". Note that the more common API "zipfile.ZipFile" class is unaffected.

When iterating over names of entries in a zip archive (for example, methods of "zipfile.Path" like "namelist()", "iterdir()", etc) the process can be put into an infinite loop with a maliciously crafted zip archive. This defect applies when reading only metadata or extracting the contents of the zip archive. Programs that are not handling user-controlled zip archives are not affected.

Patch / fix

  • bitnami libpython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • bitnami python 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • bitnami python-min 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6
  • Python Software Foundation CPython 3.8.20, 3.9.20, 3.10.15, 3.11.10, 3.12.6, 3.13.0rc2
  • pypy3 Debian 14, Debian 13 7.3.18+dfsg-1
  • python3.11 Debian 12 3.11.2-6+deb12u3
  • python3.13 Debian 13 3.13.0~rc2-1

debian advisories DEBIAN-CVE-2024-8088

  • python3.8 Ubuntu 20.04 LTS 3.8.10-0ubuntu1~20.04.12
  • python3.10 Ubuntu 22.04 LTS 3.10.12-1~22.04.6
  • python3.12 Ubuntu 24.04 LTS 3.12.3-1ubuntu0.2

ubuntu advisories UBUNTU-CVE-2024-8088

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3.9 RHEL 9 3.9.19-8.el9
  • python3 RHEL 9 3.9.19-8.el9
  • python3-idle RHEL 9 3.9.19-8.el9
  • python3-libs RHEL 9 3.9.19-8.el9
  • python3-test RHEL 9 3.9.19-8.el9
  • python3-tkinter RHEL 9 3.9.19-8.el9
  • python-unversioned-command RHEL 9 3.9.19-8.el9
  • python3.11 RHEL 9 3.11.9-7.el9

red hat advisories RHSA-2024:9371RHSA-2024:9192RHSA-2024:9190RHSA-2024:5962RHSA-2024:6961RHSA-2024:6962

  • python311 Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311-core Linux Micro 6.1 3.11.12-slfo.1.1_1.1
  • python311 Linux Micro 6.0 3.11.11-1.1
  • python311-core Linux Micro 6.0 3.11.11-1.1
  • python311 Linux Micro 6.0 3.11.8-4.1
  • python311-core Linux Micro 6.0 3.11.8-4.1
  • venv-salt-minion Manager Client Tools for RHEL, Liberty and Clones 9-CLIENT-TOOLS, EL-9:Update:Products:SaltBundle:Update 3006.0-1.47.1
  • saltbundlepy EL-9:Update:Products:SaltBundle:Update 3.11.9-1.26.1

suse advisories SUSE-SU-2025:20374-1SUSE-SU-2025:20154-1SUSE-SU-2025:20065-1SUSE-EL-9-CLIENT-TOOLS-2024-4029SUSE-SU-2024:4029-1SUSE-SU-2024:4021-1

  • python315 openSUSE Tumbleweed 3.15.0~a1-1.1
  • python314 openSUSE Tumbleweed 3.14.0~a1-1.1
  • python310 openSUSE Tumbleweed 3.10.14-7.1
  • python311 openSUSE Tumbleweed 3.11.9-7.1
  • python312 openSUSE Tumbleweed 3.12.5-2.1
  • python313 openSUSE Tumbleweed 3.13.0~rc1-3.1
  • python38 openSUSE Tumbleweed 3.8.19-8.1
  • python39 openSUSE Tumbleweed 3.9.19-7.1

opensuse advisories openSUSE-SU-2025:15713-1openSUSE-SU-2024:14434-1openSUSE-SU-2024:14298-1openSUSE-SU-2024:14299-1openSUSE-SU-2024:14300-1openSUSE-SU-2024:14301-1

  • python3.12 AlmaLinux 9 3.12.5-2.el9
  • python3.12-idle AlmaLinux 9 3.12.5-2.el9
  • python3.12-libs AlmaLinux 9 3.12.5-2.el9
  • python3.12-test AlmaLinux 9 3.12.5-2.el9
  • python3.12-tkinter AlmaLinux 9 3.12.5-2.el9
  • python3.11 AlmaLinux 9 3.11.9-7.el9
  • python3.11-idle AlmaLinux 9 3.11.9-7.el9
  • python3.11-libs AlmaLinux 9 3.11.9-7.el9

almalinux advisories ALSA-2024:9190ALSA-2024:9192ALSA-2024:9371ALSA-2024:6961ALSA-2024:6962ALSA-2024:5962

  • numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1582+bc278001
  • numpy Rocky Linux 8 1.19.4-3.module+el8.10.0+1860+afcc1c71
  • scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1582+bc278001
  • scipy Rocky Linux 8 1.5.4-5.module+el8.10.0+1860+afcc1c71
  • Cython Rocky Linux 8 0.29.21-5.module+el8.10.0+1860+afcc1c71
  • Cython Rocky Linux 8 0.29.21-5.module+el8.10.0+1582+bc278001
  • pytest Rocky Linux 8 6.0.2-2.module+el8.10.0+1582+bc278001
  • pytest Rocky Linux 8 6.0.2-2.module+el8.10.0+1860+afcc1c71

rocky linux advisories RLSA-2024:5962RLSA-2024:9190RLSA-2024:9192RLSA-2024:6961RLSA-2024:6962

  • python3 Alpine 3.17 3.10.14-r2
  • python3 Alpine 3.18 3.11.8-r1
  • python3 Alpine 3.19 3.11.9-r1
  • python3 Alpine 3.20 3.12.3-r2
  • python3 Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 3.12.5-r1

alpine advisories ALPINE-CVE-2024-8088

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • python3 CBL-Mariner 2.0 3.9.19-5
  • python3 Azure Linux 3.0 3.12.3-4
  • tensorflow Azure Linux 3.0 2.16.1-7

azure linux advisories AZL-48114AZL-48125AZL-48141

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-8088 updated cvss 5.3

python: cpython: Iterating over a malicious ZIP file may lead to Denial of Service

  • Red Hat Enterprise Linux 6 python, tkinter, python-libs, python-test, python-tools Red Hat Enterprise Linux 7 python, python3, tkinter, python-libs, python-test, python-tools, +4 more
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat Enterprise Linux 8 scipy, python2, python36, python-nose, python-wheel, python2-libs, +24 more
    affected: workaround, no fix planned “Will not fix”
  • Red Hat CodeReady Linux Builder (v. 9) python3 3.9.19-8.el9, python3.11 3.11.9-7.el9, python3.12 3.12.5-2.el9, python3-idle 3.9.19-8.el9, python3-test 3.9.19-8.el9, python3-tkinter 3.9.19-8.el9, +6 more
    fixed: vendor fix RHSA-2024:9371
  • Red Hat Enterprise Linux AppStream (v. 8) python3.11 3.11.9-7.el8_10, python3.12 3.12.5-2.el8_10, python3.11-libs 3.11.9-7.el8_10, python3.12-libs 3.12.5-2.el8_10, python3.11-tkinter 3.11.9-7.el8_10, python3.12-tkinter 3.12.5-2.el8_10, +57 more
    fixed: vendor fix RHSA-2024:5962
  • Red Hat Enterprise Linux AppStream (v. 9) python3.11 3.11.9-7.el9, python3.12 3.12.5-2.el9, python3-tkinter 3.9.19-8.el9, python3.11-libs 3.11.9-7.el9, python3.12-libs 3.12.5-2.el9, python3.11-tkinter 3.11.9-7.el9, +4 more Red Hat Enterprise Linux BaseOS (v. 9) python3 3.9.19-8.el9, python3.9 3.9.19-8.el9, python3 3.9.18-3.el9_4.5, python3-libs 3.9.19-8.el9, python3.9 3.9.18-3.el9_4.5, python3-libs 3.9.18-3.el9_4.5
    fixed: vendor fix RHSA-2024:6163
  • Red Hat Enterprise Linux CRB (v. 8) python3.11 3.11.9-7.el8_10, python3.12 3.12.5-2.el8_10, python3.11-idle 3.11.9-7.el8_10, python3.11-test 3.11.9-7.el8_10, python3.12-idle 3.12.5-2.el8_10, python3.12-test 3.12.5-2.el8_10, +24 more
    fixed: vendor fix RHSA-2024:5962
  • Red Hat Enterprise Linux CRB (v. 9) python3 3.9.18-3.el9_4.5, python3-idle 3.9.18-3.el9_4.5, python3-test 3.9.18-3.el9_4.5, python3-tkinter 3.9.18-3.el9_4.5
    fixed: vendor fix RHSA-2024:6163
  • Red Hat Enterprise Linux 8 python3, python3-idle, python3-libs, python3-test, platform-python, python3-tkinter Red Hat Enterprise Linux 10 python3.12
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
2 y ago

Exploit prediction

1.27% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/S:N/AU:N/R:U/RE:L
CNA 4.0 8.7 CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:N/AU:N/R:U/V:X/RE:L/U:X

Affected packages

ecosystem package affected fixed in
bitnami libpython
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6
bitnami python
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6
bitnami python-min
<3.8.20
>=3.9.0, <3.9.20
>=3.10.0, <3.10.15
>=3.11.0, <3.11.10
>=3.12.0, <3.12.6
3.8.20
3.9.20
3.10.15
3.11.10
3.12.6

Affected products

  • Python Software Foundation CPython
  • python_software_foundation cpython

Classification

Weakness
  • CWE-835 Loop with Unreachable Exit Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.