CVE-2023-35936
Last modified
CVE-2023-35936 is a medium-severity vulnerability rated 5/10 on the CVSS scale. 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. EPSS estimates a 0.35% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:L
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Pandoc | Pandoc | >= 1.13, < 3.1.4 |
| Debian | Debian Linux | 10.0 |
References
- https://github.com/jgm/pandoc/security/advisories/GHSA-xj5q-fv23-575gExploit, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/07/msg00029.htmlMailing List, Third Party Advisory
- https://github.com/jgm/pandoc/security/advisories/GHSA-xj5q-fv23-575gExploit, Vendor Advisory
- https://lists.debian.org/debian-lts-announce/2023/07/msg00029.htmlMailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-35936?
How severe is CVE-2023-35936?
How do I fix CVE-2023-35936?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-35930SpiceDB is an open source, Google Zanzibar-inspired, databas…5.3
- CVE-2023-35931Shescape is a simple shell escape library for JavaScript. An…4.3
- CVE-2023-35932jcvi is a Python library to facilitate genome assembly, anno…8.8
- CVE-2023-35933OPenFGA is an open source authorization/permission engine bu…7.5
- CVE-2023-35934yt-dlp is a command-line program to download videos from vid…8.2
- CVE-2023-35935Rejected reason: ** REJECT ** DO NOT USE THIS CANDIDATE NUMB…
- CVE-2023-35937Metersphere is an open source continuous testing platform. I…8.8
- CVE-2023-35938 Tuleap is a Free & Open Source Suite to improve management …7.2
- CVE-2023-35939GLPI is a free asset and IT management software package. Sta…8.1
- CVE-2023-35940GLPI is a free asset and IT management software package. Sta…7.5
- CVE-2023-35941Envoy is an open source edge and service proxy designed for …9.8
- CVE-2023-35942Envoy is an open source edge and service proxy designed for …6.5
Are you affected by CVE-2023-35936?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
