UBUNTU-CVE-2023-38745 (CVE-2023-38745)
Vulnerability from osv_ubuntu – Published: 2023-07-25 04:15 – Updated: 2026-05-20 15:02 – Source websitePandoc 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).
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "1.12.2.1-1build2"
},
{
"binary_name": "pandoc",
"binary_version": "1.12.2.1-1build2"
},
{
"binary_name": "pandoc-data",
"binary_version": "1.12.2.1-1build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:14.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@1.12.2.1-1build2?arch=source\u0026distro=trusty"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.11.1-2build2",
"1.11.1-4",
"1.11.1-5",
"1.12.2.1-1",
"1.12.2.1-1build1",
"1.12.2.1-1build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "1.16.0.2~dfsg-1"
},
{
"binary_name": "pandoc",
"binary_version": "1.16.0.2~dfsg-1"
},
{
"binary_name": "pandoc-data",
"binary_version": "1.16.0.2~dfsg-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:16.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@1.16.0.2~dfsg-1?arch=source\u0026distro=xenial"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.13.2.1~dfsg-1build6",
"1.15.1.1~dfsg-2",
"1.15.1.1~dfsg-2build1",
"1.16.0.2~dfsg-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "1.19.2.4~dfsg-1build4"
},
{
"binary_name": "pandoc",
"binary_version": "1.19.2.4~dfsg-1build4"
},
{
"binary_name": "pandoc-data",
"binary_version": "1.19.2.4~dfsg-1build4"
}
]
},
"package": {
"ecosystem": "Ubuntu:18.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@1.19.2.4~dfsg-1build4?arch=source\u0026distro=bionic"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"1.19.2.1.0-1",
"1.19.2.4~dfsg-1build1",
"1.19.2.4~dfsg-1build2",
"1.19.2.4~dfsg-1build3",
"1.19.2.4~dfsg-1build4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "2.5-3build2"
},
{
"binary_name": "pandoc",
"binary_version": "2.5-3build2"
},
{
"binary_name": "pandoc-data",
"binary_version": "2.5-3build2"
}
]
},
"package": {
"ecosystem": "Ubuntu:20.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@2.5-3build2?arch=source\u0026distro=focal"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.5-2",
"2.5-3",
"2.5-3build1",
"2.5-3build2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "libghc-pandoc-prof",
"binary_version": "2.9.2.1-3ubuntu2"
},
{
"binary_name": "pandoc",
"binary_version": "2.9.2.1-3ubuntu2"
},
{
"binary_name": "pandoc-data",
"binary_version": "2.9.2.1-3ubuntu2"
}
]
},
"package": {
"ecosystem": "Ubuntu:22.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@2.9.2.1-3ubuntu2?arch=source\u0026distro=jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.9.2.1-1ubuntu4",
"2.9.2.1-3ubuntu1",
"2.9.2.1-3ubuntu2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.1.3+ds-2"
}
]
},
"package": {
"ecosystem": "Ubuntu:24.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@3.1.3+ds-2?arch=source\u0026distro=noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"2.17.1.1-3ubuntu1",
"3.0.1+ds-3",
"3.1.3+ds-1",
"3.1.3+ds-2"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.1.11.1+ds-4"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@3.1.11.1+ds-4?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.11.1+ds-2",
"3.1.11.1+ds-4"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "pandoc",
"binary_version": "3.7.0.2+ds-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:26.04:LTS",
"name": "pandoc",
"purl": "pkg:deb/ubuntu/pandoc@3.7.0.2+ds-1?arch=source\u0026distro=resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"3.1.11.1+ds-4",
"3.7.0.2+ds-1"
]
}
],
"aliases": [],
"details": "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).",
"id": "UBUNTU-CVE-2023-38745",
"modified": "2026-05-20T15:02:47Z",
"published": "2023-07-25T04:15:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2023-38745"
},
{
"type": "REPORT",
"url": "https://github.com/jgm/pandoc/commit/eddedbfc14916aa06fc01ff04b38aeb30ae2e625"
},
{
"type": "REPORT",
"url": "https://github.com/jgm/pandoc/compare/3.1.5...3.1.6"
},
{
"type": "REPORT",
"url": "https://github.com/jgm/pandoc/commit/eddedbfc14916aa06fc01ff04b38aeb30ae2e625"
},
{
"type": "REPORT",
"url": "https://lists.debian.org/debian-lts-announce/2023/07/msg00029.html"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2023-38745"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2023-38745"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.