CVE catalog

CVE-2023-38745

pandoc: CVE-2023-38745

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.25% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianpandocsid3.11-1not affected
Debianpandocforky3.11-1not affected
Debianpandoctrixie3.1.11.1+ds-2not affected
Debianpandocbookworm2.17.1.1-2~deb12u1not affected

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
DebianpandocsourcesidNot affectedunimportantNot reportedNot reported
DebianpandocsourceforkyNot affectedunimportantNot reportedNot reported
DebianpandocsourcetrixieNot affectedunimportantNot reportedNot reported
DebianpandocsourcebookwormNot affectedunimportantNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libghc-pandoc-dev]Not affected

    Source package: [pandoc]

    Details (2)
    • 2.17.1.1-2~deb12u1 · amd64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

    • 2.17.1.1-2~deb12u1 · arm64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

  • [libghc-pandoc-doc]Not affected

    Source package: [pandoc]

    Details (2)
    • 2.17.1.1-2~deb12u1 · all · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

    • 2.17.1.1-2~deb12u1 · all · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

  • [libghc-pandoc-prof]Not affected

    Source package: [pandoc]

    Details (2)
    • 2.17.1.1-2~deb12u1 · amd64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

    • 2.17.1.1-2~deb12u1 · arm64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

  • [pandoc]Not affected
    Details (2)
    • 2.17.1.1-2~deb12u1 · amd64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

    • 2.17.1.1-2~deb12u1 · arm64 · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

  • [pandoc-data]Not affected

    Source package: [pandoc]

    Details (2)
    • 2.17.1.1-2~deb12u1 · all · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

    • 2.17.1.1-2~deb12u1 · all · bookworm

      Not affected

      dsa · pandoc · debian · bookworm

Observed:

References