Description
There is a HIGH severity vulnerability affecting the CPython “zipfile” module. When iterating over names of entries in a zip archive (for example, methods of “zipfile.ZipFile” like “namelist()”, “iterdir()”, “extractall()”, 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.
References
https://github.com/python/cpython/pull/122906
https://github.com/python/cpython/issues/122905
https://github.com/python/cpython/commit/795f2597a4be988e2bb19b69ff9958e981cb894e
https://github.com/python/cpython/commit/8c7348939d8a3ecd79d630075f6be1b0c5b41f64
https://github.com/python/cpython/commit/dcc5182f27c1500006a1ef78e10613bb45788dea