UBUNTU-CVE-2023-35936

Source
https://ubuntu.com/security/CVE-2023-35936
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-35936.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-35936
Related
Published
2023-07-05T21:15:00Z
Modified
2024-10-15T14:11:37Z
Severity
  • 5.0 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:L CVSS Calculator
Summary
[none]
Details

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

References

Affected packages

Ubuntu:Pro:14.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

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

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:16.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

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

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:18.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*

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

{
    "ubuntu_priority": "medium"
}

Ubuntu:20.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.5-2
2.5-3
2.5-3build1
2.5-3build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.9.2.1-1ubuntu4
2.9.2.1-3ubuntu1
2.9.2.1-3ubuntu2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.10 / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

3.*

3.1.3+ds-2
3.1.3+ds-3build1
3.1.3+ds-3build2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / pandoc

Package

Name
pandoc
Purl
pkg:deb/ubuntu/pandoc?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.17.1.1-3ubuntu1

3.*

3.0.1+ds-3
3.1.3+ds-1
3.1.3+ds-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}