Lucene search

K
osvGoogleOSV:HSEC-2023-0014
HistoryAug 22, 2023 - 11:08 p.m.

Arbitrary file write is possible when using PDF output or --extract-media with untrusted input

2023-08-2223:08:06
Google
osv.dev
14
arbitrary file write
pandoc
vulnerability
pdf
extract-media
untrusted input

6.1 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

LOW

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:L

0.001 Low

EPSS

Percentile

38.0%

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.

6.1 Medium

CVSS3

Attack Vector

LOCAL

Attack Complexity

HIGH

Privileges Required

LOW

User Interaction

REQUIRED

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

LOW

CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:L

0.001 Low

EPSS

Percentile

38.0%