Path traversal in pandoc - CVE-2023-35936

 

Path traversal in pandoc - CVE-2023-35936

Published: July 4, 2023 / Updated: April 24, 2026


Vulnerability identifier: #VU127460
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:L/AC:L/AT:P/PR:N/UI:A/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2023-35936
CWE-ID: CWE-22
Exploitation vector: Local access
Exploit availability: No public exploit available
Vulnerable software:
pandoc
Software vendor:
jgm

Description

The vulnerability allows a local user to create or overwrite arbitrary files on the system.

The vulnerability exists due to improper path restriction in media extraction handling when processing a specially crafted image element in untrusted input during PDF generation or when using the --extract-media option. A local user can supply crafted input with a percent-encoded path in a media URI to create or overwrite arbitrary files on the system.

User interaction is required to process untrusted input, and only configurations that generate PDF output or use the --extract-media option are affected.


Remediation

Install security update from vendor's website.

External links