# JLSEC-2026-500: 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…

- Severity: Medium 6.3 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-05-18T13:20:11.997Z
- Modified: 2026-07-18T00:00:49.209Z
- Related: CVE-2023-38745

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

(As written by Julia Security Advisories.)

## Affected

- pandoc_jll (Julia): before 3.1.9+0

## References

- <https://github.com/jgm/pandoc/commit/eddedbfc14916aa06fc01ff04b38aeb30ae2e625> (web)
- <https://github.com/jgm/pandoc/compare/3.1.5...3.1.6> (web)
- <https://lists.debian.org/debian-lts-announce/2023/07/msg00029.html> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JGRJHU2FTSGTHHRTNDF7STEKLKKA25JN/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LYP3FKDS3KAYMQUZVVL73IUI4CWSKLKP/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QI6RBP6ZKVC2OOCV6SU2FUHPMAXDDJFU/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYP3FKDS3KAYMQUZVVL73IUI4CWSKLKP/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/QI6RBP6ZKVC2OOCV6SU2FUHPMAXDDJFU/> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-500](https://osv.dev/vulnerability/JLSEC-2026-500), CC-BY-4.0, modified 2026-07-18

---

Page: https://cve.day/JLSEC-2026-500 · Whole record: https://cve.day/JLSEC-2026-500.json · Rebuilt by cve.day 2026-11-25T22:56:26.141Z
