{"document":{"aggregate_severity":{"namespace":"https://www.suse.com/support/security/rating/","text":"moderate"},"category":"csaf_vex","csaf_version":"2.0","distribution":{"text":"Copyright 2024 SUSE LLC. All rights reserved.","tlp":{"label":"WHITE","url":"https://www.first.org/tlp/"}},"lang":"en","notes":[{"category":"summary","text":"SUSE CVE-2023-35936","title":"Title"},{"category":"description","text":"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.\n\nThe 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.","title":"Description of the CVE"},{"category":"legal_disclaimer","text":"CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).","title":"Terms of use"}],"publisher":{"category":"vendor","contact_details":"https://www.suse.com/support/security/contact/","name":"SUSE Product Security Team","namespace":"https://www.suse.com/"},"references":[{"category":"external","summary":"CVE-2023-35936","url":"https://www.suse.com/security/cve/CVE-2023-35936"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"SUSE Bug 1213066 for CVE-2023-35936","url":"https://bugzilla.suse.com/1213066"},{"category":"external","summary":"SUSE Bug 1213622 for CVE-2023-35936","url":"https://bugzilla.suse.com/1213622"}],"title":"SUSE CVE CVE-2023-35936","tracking":{"current_release_date":"2025-07-07T23:51:13Z","generator":{"date":"2023-07-07T02:18:47Z","engine":{"name":"cve-database.git:bin/generate-csaf-vex.pl","version":"1"}},"id":"CVE-2023-35936","initial_release_date":"2023-07-07T02:18:47Z","revision_history":[{"date":"2023-07-07T02:18:47Z","number":"2","summary":"Current version"},{"date":"2023-07-19T02:02:33Z","number":"3","summary":"Current version"},{"date":"2023-07-26T01:34:42Z","number":"4","summary":"Current version"},{"date":"2025-01-01T02:02:40Z","number":"5","summary":"Current version"},{"date":"2025-02-14T06:22:53Z","number":"6","summary":"Current version"},{"date":"2025-02-16T06:16:01Z","number":"7","summary":"Current version"},{"date":"2025-03-15T06:16:06Z","number":"8","summary":"Current version"},{"date":"2025-04-25T02:32:23Z","number":"9","summary":"Current version"},{"date":"2025-07-07T23:51:13Z","number":"10","summary":"Current version"}],"status":"interim","version":"10"}},"product_tree":{"branches":[{"branches":[{"branches":[{"category":"product_name","name":"SUSE Linux Enterprise Module for Package Hub 15 SP5","product":{"name":"SUSE Linux Enterprise Module for Package Hub 15 SP5","product_id":"SUSE Linux Enterprise Module for Package Hub 15 SP5","product_identification_helper":{"cpe":"cpe:/o:suse:packagehub:15:sp5"}}},{"category":"product_name","name":"openSUSE Tumbleweed","product":{"name":"openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed","product_identification_helper":{"cpe":"cpe:/o:opensuse:tumbleweed"}}},{"category":"product_version","name":"ghc-pandoc-3.1.3-2.1","product":{"name":"ghc-pandoc-3.1.3-2.1","product_id":"ghc-pandoc-3.1.3-2.1","product_identification_helper":{"cpe":"cpe:2.3:a:pandoc:pandoc:3.1.3:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/ghc-pandoc@3.1.3-2.1?upstream=ghc-pandoc-3.1.3-2.1.src.rpm"}}},{"category":"product_version","name":"ghc-pandoc-devel-3.1.3-2.1","product":{"name":"ghc-pandoc-devel-3.1.3-2.1","product_id":"ghc-pandoc-devel-3.1.3-2.1","product_identification_helper":{"cpe":"cpe:2.3:a:pandoc:pandoc:3.1.3:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/ghc-pandoc-devel@3.1.3-2.1?upstream=ghc-pandoc-3.1.3-2.1.src.rpm"}}},{"category":"product_version","name":"ghc-pandoc-doc-3.1.3-2.1","product":{"name":"ghc-pandoc-doc-3.1.3-2.1","product_id":"ghc-pandoc-doc-3.1.3-2.1","product_identification_helper":{"purl":"pkg:rpm/suse/ghc-pandoc-doc@3.1.3-2.1"}}},{"category":"product_version","name":"ghc-pandoc-prof-3.1.3-2.1","product":{"name":"ghc-pandoc-prof-3.1.3-2.1","product_id":"ghc-pandoc-prof-3.1.3-2.1","product_identification_helper":{"purl":"pkg:rpm/suse/ghc-pandoc-prof@3.1.3-2.1"}}},{"category":"product_version","name":"pandoc","product":{"name":"pandoc","product_id":"pandoc","product_identification_helper":{"cpe":"cpe:2.3:a:pandoc:pandoc:*:*:*:*:*:*:*:*","purl":"pkg:rpm/suse/pandoc@?upstream=pandoc.src.rpm"}}}],"category":"product_family","name":"SUSE Linux Enterprise"}],"category":"vendor","name":"SUSE"}],"relationships":[{"category":"default_component_of","full_product_name":{"name":"ghc-pandoc-3.1.3-2.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:ghc-pandoc-3.1.3-2.1"},"product_reference":"ghc-pandoc-3.1.3-2.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"ghc-pandoc-devel-3.1.3-2.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:ghc-pandoc-devel-3.1.3-2.1"},"product_reference":"ghc-pandoc-devel-3.1.3-2.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"ghc-pandoc-doc-3.1.3-2.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:ghc-pandoc-doc-3.1.3-2.1"},"product_reference":"ghc-pandoc-doc-3.1.3-2.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"ghc-pandoc-prof-3.1.3-2.1 as component of openSUSE Tumbleweed","product_id":"openSUSE Tumbleweed:ghc-pandoc-prof-3.1.3-2.1"},"product_reference":"ghc-pandoc-prof-3.1.3-2.1","relates_to_product_reference":"openSUSE Tumbleweed"},{"category":"default_component_of","full_product_name":{"name":"pandoc as component of SUSE Linux Enterprise Module for Package Hub 15 SP5","product_id":"SUSE Linux Enterprise Module for Package Hub 15 SP5:pandoc"},"product_reference":"pandoc","relates_to_product_reference":"SUSE Linux Enterprise Module for Package Hub 15 SP5"}]},"vulnerabilities":[{"cve":"CVE-2023-35936","ids":[{"system_name":"SUSE CVE Page","text":"https://www.suse.com/security/cve/CVE-2023-35936"}],"notes":[{"category":"general","text":"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.\n\nThe 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.","title":"CVE description"}],"product_status":{"known_not_affected":["SUSE Linux Enterprise Module for Package Hub 15 SP5:pandoc"],"recommended":["openSUSE Tumbleweed:ghc-pandoc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-devel-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-doc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-prof-3.1.3-2.1"]},"references":[{"category":"external","summary":"CVE-2023-35936","url":"https://www.suse.com/security/cve/CVE-2023-35936"},{"category":"external","summary":"SUSE Security Ratings","url":"https://www.suse.com/support/security/rating/"},{"category":"external","summary":"SUSE Bug 1213066 for CVE-2023-35936","url":"https://bugzilla.suse.com/1213066"},{"category":"external","summary":"SUSE Bug 1213622 for CVE-2023-35936","url":"https://bugzilla.suse.com/1213622"}],"remediations":[{"category":"vendor_fix","details":"To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n","product_ids":["openSUSE Tumbleweed:ghc-pandoc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-devel-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-doc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-prof-3.1.3-2.1"]}],"scores":[{"cvss_v3":{"baseScore":5.3,"baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N","version":"3.1"},"products":["openSUSE Tumbleweed:ghc-pandoc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-devel-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-doc-3.1.3-2.1","openSUSE Tumbleweed:ghc-pandoc-prof-3.1.3-2.1"]}],"threats":[{"category":"impact","date":"2023-07-05T22:04:20Z","details":"moderate"}],"title":"CVE-2023-35936"}]}