CVE-2023-38745 Pandoc before 3.1.6 allows arbitrary file write: this can be triggered by providing a crafted image element in the input when generating files via the --extract-media option or outputting to PDF forma...
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebian
Description
Pandoc before 3.1.6 allows arbitrary file write: this can be triggered by providing a crafted image element in the input when generating files via the --extract-media option or outputting to PDF format. This allows an attacker to create or overwrite arbitrary files, 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. NOTE: this issue exists because of an incomplete fix for CVE-2023-35936 (failure to properly account for double encoded path names).
Upgrade path
11 packages: 1 fixed, 9 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/pandoc(Ubuntu 14.04) | = 1.11.1-2build2; = 1.11.1-4; = 1.11.1-5; = 1.12.2.1-1 +3 more | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 16.04) | = 1.13.2.1~dfsg-1build6; = 1.15.1.1~dfsg-2; = 1.15.1.1~dfsg-2build1; = 1.16.0.2~dfsg-1 +1 more | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 18.04) | = 1.19.2.1.0-1; = 1.19.2.4~dfsg-1build1; = 1.19.2.4~dfsg-1build2; = 1.19.2.4~dfsg-1build3 +2 more | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 20.04) | = 2.5-2; = 2.5-3; = 2.5-3build1; = 2.5-3build2 +1 more | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 22.04) | = 2.9.2.1-1ubuntu4; = 2.9.2.1-3ubuntu1; = 2.9.2.1-3ubuntu2; All versions | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 24.04) | = 2.17.1.1-3ubuntu1; = 3.0.1+ds-3; = 3.1.3+ds-1; = 3.1.3+ds-2 +1 more | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 25.10) | = 3.1.11.1+ds-2; = 3.1.11.1+ds-4; All versions | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 26.04) | = 3.1.11.1+ds-4; = 3.7.0.2+ds-1; All versions | No fix listed | No fix yet |
| ubuntu/pandoc(Ubuntu 26.10) | = 3.7.0.2+ds-1; = 3.9.0.2-1; = 3.10-1; = 3.11-1 +1 more | No fix listed | No fix yet |
| pandoc | < 3.1.6 | 3.1.6 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/pandoc(Ubuntu:22.04) | All versions | No fix listed |
| pandoc | < 3.1.6 | 3.1.6 |
| debian linux | = 10.0 | No fix listed |
| ubuntu/pandoc(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:26.10) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.11.1-2build2 | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.11.1-4 | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.11.1-5 | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.12.2.1-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.12.2.1-1build1 | No fix listed |
| ubuntu/pandoc(Ubuntu:14.04) | = 1.12.2.1-1build2 | No fix listed |
| ubuntu/pandoc(Ubuntu:16.04) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:16.04) | = 1.13.2.1~dfsg-1build6 | No fix listed |
| ubuntu/pandoc(Ubuntu:16.04) | = 1.15.1.1~dfsg-2 | No fix listed |
| ubuntu/pandoc(Ubuntu:16.04) | = 1.15.1.1~dfsg-2build1 | No fix listed |
| ubuntu/pandoc(Ubuntu:16.04) | = 1.16.0.2~dfsg-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | = 1.19.2.1.0-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | = 1.19.2.4~dfsg-1build1 | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | = 1.19.2.4~dfsg-1build2 | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | = 1.19.2.4~dfsg-1build3 | No fix listed |
| ubuntu/pandoc(Ubuntu:18.04) | = 1.19.2.4~dfsg-1build4 | No fix listed |
| ubuntu/pandoc(Ubuntu:20.04) | All versions | No fix listed |
Show 20 more
| Product | Affected versions | Fixed in |
|---|---|---|
| ubuntu/pandoc(Ubuntu:20.04) | = 2.5-2 | No fix listed |
| ubuntu/pandoc(Ubuntu:20.04) | = 2.5-3 | No fix listed |
| ubuntu/pandoc(Ubuntu:20.04) | = 2.5-3build1 | No fix listed |
| ubuntu/pandoc(Ubuntu:20.04) | = 2.5-3build2 | No fix listed |
| ubuntu/pandoc(Ubuntu:22.04) | = 2.9.2.1-1ubuntu4 | No fix listed |
| ubuntu/pandoc(Ubuntu:22.04) | = 2.9.2.1-3ubuntu1 | No fix listed |
| ubuntu/pandoc(Ubuntu:22.04) | = 2.9.2.1-3ubuntu2 | No fix listed |
| ubuntu/pandoc(Ubuntu:24.04) | = 2.17.1.1-3ubuntu1 | No fix listed |
| ubuntu/pandoc(Ubuntu:24.04) | = 3.0.1+ds-3 | No fix listed |
| ubuntu/pandoc(Ubuntu:24.04) | = 3.1.3+ds-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:24.04) | = 3.1.3+ds-2 | No fix listed |
| ubuntu/pandoc(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/pandoc(Ubuntu:25.10) | = 3.1.11.1+ds-2 | No fix listed |
| ubuntu/pandoc(Ubuntu:25.10) | = 3.1.11.1+ds-4 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.10) | = 3.7.0.2+ds-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.10) | = 3.9.0.2-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.10) | = 3.10-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.10) | = 3.11-1 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.04) | = 3.1.11.1+ds-4 | No fix listed |
| ubuntu/pandoc(Ubuntu:26.04) | = 3.7.0.2+ds-1 | No fix listed |
References
- github.com issue-tracking patch
- github.com issue-tracking patch
- [debian-lts-announce] 20230725 [SECURITY] [DLA 3507-1] pandoc security update issue-tracking mailing-list
- FEDORA-2024-7d83cbccb6 vendor-advisory
- FEDORA-2024-b458482d48 vendor-advisory
- FEDORA-2024-6ad6b9f417 vendor-advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- Debian Security Tracker CVE-2023-38745 vendor-advisory