中危 读取 pypdf 中格式错误的对象时出现无限循环 (CVE-2023-36807)
CVE编号
CVE-2023-36807利用情况
暂无补丁情况
官方补丁披露时间
2023-07-01漏洞描述
pypdf is a pure-python PDF library capable of splitting, merging, cropping, and transforming the pages of PDF files. In version 2.10.5 an attacker who uses this vulnerability can craft a PDF which leads to an infinite loop. This infinite loop blocks the current process and can utilize a single core of the CPU by 100%. It does not affect memory usage. That is, for example, the case if the user extracted metadata from such a malformed PDF. Versions prior to 2.10.5 throw an error, but do not hang forever. This issue was fixed with https://github.com/py-pdf/pypdf/pull/1331 which has been included in release 2.10.6. Users are advised to upgrade. Users unable to upgrade should modify `PyPDF2/generic/_data_structures.py::read_object` to an an error throwing case. See GHSA-hm9v-vj3r-r55m for details.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/py-pdf/pypdf/issues/1329 | |
https://github.com/py-pdf/pypdf/pull/1331 | |
https://github.com/py-pdf/pypdf/security/advisories/GHSA-hm9v-vj3r-r55m |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | pypdf_project | pypdf | 2.10.5 | - | |||||
运行在以下环境 | |||||||||
系统 | debian_10 | pypdf2 | * | Up to (excluding) 1.26.0-2 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | pypdf2 | * | Up to (excluding) 1.26.0-4 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | pypdf2 | * | Up to (excluding) 2.10.7-1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | pypdf2 | * | Up to (excluding) 2.10.7-1 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 普通权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-835 | 不可达退出条件的循环(无限循环) |
Exp相关链接

版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
评论