CVEfocus › CVE database › CVE-2023-38745

CVE-2023-38745

CVSS 6.3 MediumEPSS 0.3% (higher than 19% of CVEs)Published 2023-07-25Updated 2025-11-04Assigner: mitre

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

What to do

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fix pending
3Under investigation
7Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10pandocFix pendingUBUNTU-CVE-2023-38745
Ubuntu 26.04pandocUnder investigationUBUNTU-CVE-2023-38745
Ubuntu 25.10pandocWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-38745
Ubuntu 24.04pandocUnder investigationUBUNTU-CVE-2023-38745
Ubuntu 22.04pandocUnder investigationUBUNTU-CVE-2023-38745
Ubuntu 20.04pandocWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-38745
Ubuntu 18.04pandocWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-38745
Ubuntu 16.04pandocWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-38745
Ubuntu 14.04pandocWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2023-38745
Red Hat Enterprise Linux 8pandocWill not fix
Will not fix
Red Hat Enterprise Linux 8pandoc-commonWill not fix
Will not fix

What the vendor says

As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.