Skip to content
OpenAdvisories
Unscored CVE-2023-38745 EUVD-2023-42520GHSA-9hpj-m9v9-5wvw

Pandoc before 3.1.6 allows arbitrary file write: this can be triggered by providing a crafted image element in the input when generating fi…

Published Jul 25, 2023 · Updated Nov 4, 2025 · Assigned by mitre

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).

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 pandoc No fix yet —
Ubuntu 26.04 LTS pandoc No fix yet —
Ubuntu 25.10 pandoc No fix yet —
Ubuntu 24.04 LTS pandoc No fix yet —
Ubuntu 22.04 LTS pandoc No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS pandoc No fix yet —
Ubuntu 18.04 LTS pandoc No fix yet —
Ubuntu 16.04 LTS pandoc No fix yet —
Ubuntu 14.04 LTS pandoc No fix yet —

References