Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2023-35936

published medium CVSS 3.1 · 6.0

Arbitrary file write is possible in Pandoc when using PDF output or --extract-media with untrusted input

Published
05 Jul 2023, 20:37:56 UTC
Updated
13 Feb 2025, 16:55:56 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
jgm — pandoc>= 1.13, < 3.1.4 Affected Not stated GitHub_M
Debian buster pandoc Advisory build 2.2.1-3+deb10u1 DLA-3507-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandocaarch64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandocppc64le Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandocs390x Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandocx86_64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-develaarch64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-develppc64le Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
Show 10 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-devels390x Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-develx86_64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-docaarch64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-docppc64le Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-docs390x Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-docx86_64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-profaarch64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-profppc64le Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-profs390x Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1
SUSE / openSUSE openSUSE-Tumbleweed ghc-pandoc-profx86_64 Advisory build 3.1.3-2.1 OPENSUSE-SU-2024:13056-1

Description

Pandoc is a Haskell library for converting from one markup format to another, and a command-line tool that uses this library. Starting in version 1.13 and prior to version 3.1.4, Pandoc is susceptible to an arbitrary file write vulnerability, which can be triggered by providing a specially crafted image element in the input when generating files using the `--extract-media` option or outputting to PDF format. This vulnerability allows an attacker to create or overwrite arbitrary files on the system ,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. The fix is to unescape the percent-encoding prior to checking that the resource is not above the working directory, and prior to extracting the extension. Some code for checking that the path is below the working directory was flawed in a similar way and has also been fixed. Note that the `--sandbox` option, which only affects IO done by readers and writers themselves, does not block this vulnerability. The vulnerability is patched in pandoc 3.1.4. As a workaround, audit the pandoc command and disallow PDF output and the `--extract-media` option.

en · GitHub_M · cna

Vendor advisories explicitly linked to this CVE.

2

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
6.0 / 10
Severity
medium
Provider
GitHub_M · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:L

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
jgm pandoc >= 1.13, < 3.1.4 (affected) GitHub_M · cna

Weaknesses

1
  • CWE-20 CWE-20: Improper Input Validation (GitHub_M · cna)

References

5

Provider assertions

2

GitHub_M · cna

Arbitrary file write is possible in Pandoc when using PDF output or --extract-media with untrusted input

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
10ada84dc9e3dc1746e125113d99b031082a2428242e241843bd119ee460cbb5
Ingested
23 Sep 2026, 08:09:50 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected