Path traversal in pandoc - CVE-2023-35936
Published: July 4, 2023 / Updated: April 24, 2026
pandoc
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.