hsec-2023-0014

osv_haskell
Description

# Arbitrary file write is possible when using PDF output or --extract-media with untrusted input 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). This vulnerability only affects systems that (a) pass untrusted user input to pandoc and (b) allow pandoc to be used to produce a PDF or with the --extract-media option. The vulnerability is patched in pandoc 3.1.4.

Timeline
Published
unknown
Last Modified
unknown
CVSS Details

CVSS details not available.

Affected Products

No product information available.

References
Linked Vulnerabilities

No linked vulnerabilities found.

{
  "affected": [
    {
      "database_specific": {
        "human_link": "https://github.com/haskell/security-advisories/tree/main/advisories/published/2023/HSEC-2023-0014.md",
        "osv": "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export/2023/HSEC-2023-0014.json",
        "source": "https://github.com/haskell/security-advisories/blob/generated/osv-export/2023/HSEC-2023-0014.json"
      },
      "package": {
        "ecosystem": "Hackage",
        "name": "pandoc",
        "purl": "pkg:hackage/pandoc"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "1.13"
            },
            {
              "fixed": "3.1.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "severity": [
        {
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:L",
          "type": "CVSS_V3"
        }
      ],
      "versions": [
        "1.13",
        "1.13.0.1",
        "1.13.1",
        "1.13.2",
        "1.13.2.1",
        "1.14",
        "1.14.0.1",
        "1.14.0.2",
        "1.14.0.3",
        "1.14.0.4",
        "1.14.1",
        "1.15",
        "1.15.0.1",
        "1.15.0.2",
        "1.15.0.3",
        "1.15.0.4",
        "1.15.0.5",
        "1.15.0.6",
        "1.15.1",
        "1.15.1.1",
        "1.15.2",
        "1.15.2.1",
        "1.16",
        "1.16.0.1",
        "1.16.0.2",
        "1.17",
        "1.17.0.1",
        "1.17.0.2",
        "1.17.0.3",
        "1.17.1",
        "1.17.2",
        "1.18",
        "1.19",
        "1.19.1",
        "1.19.2",
        "1.19.2.1",
        "1.19.2.2",
        "1.19.2.3",
        "1.19.2.4",
        "2.0",
        "2.0.0.1",
        "2.0.1",
        "2.0.1.1",
        "2.0.2",
        "2.0.3",
        "2.0.4",
        "2.0.5",
        "2.0.6",
        "2.1",
        "2.1.1",
        "2.1.2",
        "2.1.3",
        "2.10",
        "2.10.1",
        "2.11",
        "2.11.0.1",
        "2.11.0.2",
        "2.11.0.3",
        "2.11.0.4",
        "2.11.1",
        "2.11.1.1",
        "2.11.2",
        "2.11.3",
        "2.11.3.1",
        "2.11.3.2",
        "2.11.4",
        "2.12",
        "2.13",
        "2.14",
        "2.14.0.1",
        "2.14.0.2",
        "2.14.0.3",
        "2.14.1",
        "2.14.2",
        "2.15",
        "2.16",
        "2.16.1",
        "2.16.2",
        "2.17",
        "2.17.0.1",
        "2.17.1",
        "2.17.1.1",
        "2.18",
        "2.19",
        "2.19.1",
        "2.19.2",
        "2.2",
        "2.2.1",
        "2.2.2",
        "2.2.2.1",
        "2.2.3",
        "2.2.3.1",
        "2.2.3.2",
        "2.3",
        "2.3.1",
        "2.4",
        "2.5",
        "2.6",
        "2.7",
        "2.7.1",
        "2.7.2",
        "2.7.3",
        "2.8",
        "2.8.0.1",
        "2.8.1",
        "2.9",
        "2.9.1",
        "2.9.1.1",
        "2.9.2",
        "2.9.2.1",
        "3.0",
        "3.0.1",
        "3.1",
        "3.1.1",
        "3.1.2",
        "3.1.3"
      ]
    }
  ],
  "aliases": [
    "CVE-2023-35936",
    "GHSA-xj5q-fv23-575g"
  ],
  "database_specific": {
    "home": "https://github.com/haskell/security-advisories",
    "osvs": "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export",
    "repository": "https://github.com/haskell/security-advisories"
  },
  "details": "# Arbitrary file write is possible when using PDF output or --extract-media with untrusted input\n\nPandoc 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).\n\nThis vulnerability only affects systems that (a) pass untrusted user input to pandoc and (b) allow pandoc to be used to produce a PDF or with the --extract-media option.\n\nThe vulnerability is patched in pandoc 3.1.4.\n",
  "id": "HSEC-2023-0014",
  "modified": "2025-11-14T18:15:39.254281Z",
  "published": "2025-11-14T14:45:34Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://github.com/jgm/pandoc/security/advisories/GHSA-xj5q-fv23-575g"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "Arbitrary file write is possible when using PDF output or --extract-media with untrusted input"
}
View JSON API Download JSON