CVE-2023-38745

pandoc: allows attacker to create or overwrite arbitrary files on the system (incomplete fix in upstream for CVE-2023-35936)

Published Jul 25, 2023 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3507-1 pandoc security update
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 6:16 PM
Reserved
Jul 25, 2023, 12:00 AM
Status
Modified
Published
Jul 25, 2023, 4:15 AM
Modified
Jun 17, 2026, 6:11 AM
Severity
Moderate
Public date
Jul 25, 2023, 12:00 AM