Heap-based buffer overflow in QPDF - CVE-2021-36978

 

Heap-based buffer overflow in QPDF - CVE-2021-36978

Published: August 17, 2022


Vulnerability identifier: #VU66595
CSH Severity: High
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-36978
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the Pl_ASCII85Decoder::write() function when processing PDF files. A remote attacker can pass specially crafted file to the application, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

QPDF
Gentoo Linux
SUSE CaaS Platform
SUSE Manager Server
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Enterprise Storage
SUSE Linux Enterprise Storage
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Module for Basesystem
openSUSE Leap
Ubuntu
libqpdf18-debuginfo
qpdf
qpdf-debuginfo
qpdf-debugsource
qpdf-devel
libqpdf18
qpdf (Ubuntu package)
libqpdf21 (Ubuntu package)
libqpdf21-debuginfo
libqpdf21
libqpdf26
libqpdf26-debuginfo
libqpdf26 (Ubuntu package)
app-text/qpdf

How to mitigate CVE-2021-36978

Install update from vendor's website.

QPDF - update to 10.5.0
libqpdf18-debuginfo - update to 7.1.1-3.8.1
qpdf - addressed in versions 7.1.1-3.8.1, 8.0.2-150000.3.5.1, 9.0.2-150200.3.3.1
qpdf-debuginfo - addressed in versions 7.1.1-3.8.1, 8.0.2-150000.3.5.1, 9.0.2-150200.3.3.1
qpdf-debugsource - addressed in versions 7.1.1-3.8.1, 8.0.2-150000.3.5.1, 9.0.2-150200.3.3.1
qpdf-devel - addressed in versions 7.1.1-3.8.1, 8.0.2-150000.3.5.1, 9.0.2-150200.3.3.1
libqpdf18 - update to 7.1.1-3.8.1
qpdf (Ubuntu package) - addressed in versions 8.0.2-3ubuntu0.1, 8.0.23~16.04.1+esm1, 9.1.1-1ubuntu0.1
libqpdf21 (Ubuntu package) - addressed in versions 8.0.2-3ubuntu0.1, 8.0.23~16.04.1+esm1
libqpdf21-debuginfo - update to 8.0.2-150000.3.5.1
libqpdf21 - update to 8.0.2-150000.3.5.1
libqpdf26 - update to 9.0.2-150200.3.3.1
libqpdf26-debuginfo - update to 9.0.2-150200.3.3.1
libqpdf26 (Ubuntu package) - update to 9.1.1-1ubuntu0.1
app-text/qpdf - update to 10.1.0

External References

Related Security Bulletins