中危 使用 PDF 输出或带有不受信任的输入的 --extract-media 时,可以在 Pandoc 中进行任意文件写入 (CVE-2023-35936)
CVE编号
CVE-2023-35936利用情况
暂无补丁情况
官方补丁披露时间
2023-07-06漏洞描述
Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. Starting in version 1.13 and prior to version 3.1.4, Pandoc is susceptible to an arbitrary file write vulnerability, which can be triggered by providing a specially crafted image element in the input when generating files using the `--extract-media` option or outputting to PDF format. This vulnerability allows an attacker to create or overwrite arbitrary files on the system ,depending on the privileges of the process running pandoc. It only affects systems that pass untrusted user input to pandoc and allow pandoc to be used to produce a PDF or with the `--extract-media` option. The fix is to unescape the percent-encoding prior to checking that the resource is not above the working directory, and prior to extracting the extension. Some code for checking that the path is below the working directory was flawed in a similar way and has also been fixed. Note that the `--sandbox` option, which only affects IO done by readers and writers themselves, does not block this vulnerability. The vulnerability is patched in pandoc 3.1.4. As a workaround, audit the pandoc command and disallow PDF output and the `--extract-media` option.解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接 |
|
---|---|
https://github.com/jgm/pandoc/security/advisories/GHSA-xj5q-fv23-575g | |
https://lists.debian.org/debian-lts-announce/2023/07/msg00029.html |
受影响软件情况
# | 类型 | 厂商 | 产品 | 版本 | 影响面 | ||||
1 | |||||||||
---|---|---|---|---|---|---|---|---|---|
运行在以下环境 | |||||||||
应用 | pandoc | pandoc | * | From (including) 1.13 | Up to (excluding) 3.1.4 | ||||
运行在以下环境 | |||||||||
系统 | debian_10 | pandoc | * | Up to (excluding) 2.2.1-3+deb10u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_11 | pandoc | * | Up to (excluding) 2.9.2.1-1+deb11u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_12 | pandoc | * | Up to (excluding) 2.17.1.1-2~deb12u1 | |||||
运行在以下环境 | |||||||||
系统 | debian_sid | pandoc | * | Up to (excluding) 2.17.1.1-2 | |||||
运行在以下环境 | |||||||||
系统 | unionos_d | pandoc | * | Up to (excluding) 2.2.1.1-deepin1 | |||||
- 攻击路径 本地
- 攻击复杂度 困难
- 权限要求 管控权限
- 影响范围 有限影响
- EXP成熟度 未验证
- 补丁情况 官方补丁
- 数据保密性 无影响
- 数据完整性 无影响
- 服务器危害 无影响
- 全网数量 N/A
CWE-ID | 漏洞类型 |
CWE-20 | 输入验证不恰当 |
NVD-CWE-noinfo |
Exp相关链接

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