# 在遍历zipfile.Path中的压缩文件条目名称时,出现无限循环
# 漏洞描述
## 概述
CPython的`zipfile`模块中的`zipfile.Path`存在高危漏洞。注意,常见的API `zipfile.ZipFile`类不受此漏洞影响。
## 影响版本
未指定具体版本
## 细节
当遍历ZIP归档文件条目的名称(例如 `zipfile.Path`的 `namelist()`、`iterdir()`等方法)时,使用恶意构造的ZIP归档文件可以将进程置入无限循环中。此缺陷在仅读取元数据或提取ZIP归档文件内容时适用。
## 影响
处理用户控制的ZIP归档文件的程序可能会受到影响。其他程序不受影响。
# | POC 描述 | 源链接 | 神龙链接 |
---|
标题: zipfile.Path regression · Issue #123270 · python/cpython · GitHub -- 🔗来源链接
标签: issue-tracking
标题: gh-123270: Replaced SanitizedNames with a more surgical fix. (#123354) · python/cpython@2231286 · GitHub -- 🔗来源链接
标签: patch
标题: [3.13] gh-123270: Replaced SanitizedNames with a more surgical fix. (… · python/cpython@7e8883a · GitHub -- 🔗来源链接
标签: patch
标题: [3.12] gh-123270: Replaced SanitizedNames with a more surgical fix. (… · python/cpython@95b073b · GitHub -- 🔗来源链接
标签: patch
标题: [3.8] gh-123270: Replaced SanitizedNames with a more surgical fix. (G… · python/cpython@7bc367e · GitHub -- 🔗来源链接
标签: patch
神龙速读标题: [3.9] gh-123270: Replaced SanitizedNames with a more surgical fix. (G… · python/cpython@9620552 · GitHub -- 🔗来源链接
标签: patch
神龙速读标题: [3.11] gh-123270: Replaced SanitizedNames with a more surgical fix. (… · python/cpython@fc0b825 · GitHub -- 🔗来源链接
标签: patch
神龙速读标题: [3.10] gh-123270: Replaced SanitizedNames with a more surgical fix. (… · python/cpython@0aa1ee2 · GitHub -- 🔗来源链接
标签: patch