ADVISORIES

Alpine Security Database

ALPINE-CVE-2024-8088

Details

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.

Affected packages

EcosystemPackageAffected versions
Alpine:v3.17python3
All versions before 3.10.14-r2 (fixed in 3.10.14-r2)
Alpine:v3.18python3
All versions before 3.11.8-r1 (fixed in 3.11.8-r1)
Alpine:v3.19python3
All versions before 3.11.9-r1 (fixed in 3.11.9-r1)
Alpine:v3.20python3
All versions before 3.12.3-r2 (fixed in 3.12.3-r2)
Alpine:v3.21python3
All versions before 3.12.5-r1 (fixed in 3.12.5-r1)
Alpine:v3.22python3
All versions before 3.12.5-r1 (fixed in 3.12.5-r1)
Alpine:v3.23python3
All versions before 3.12.5-r1 (fixed in 3.12.5-r1)
Alpine:v3.24python3
All versions before 3.12.5-r1 (fixed in 3.12.5-r1)

References