Heap-based buffer overflow in DjVuLibre - CVE-2021-32493

 

Heap-based buffer overflow in DjVuLibre - CVE-2021-32493

Published: May 17, 2021


Vulnerability identifier: #VU53317
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-32493
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 DJVU::GBitmap::decode() function. A remote attacker can create a specially crafted djvu file, trick the victim into opening it, trigger 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

DjVuLibre
Arch Linux
SUSE Manager Retail Branch Server
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Manager Server
SUSE Enterprise Storage
Fedora
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
SUSE Linux Enterprise Point of Sale
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Module for Desktop Applications
Ubuntu
openEuler
Anolis OS
cflinuxfs3
djvulibre (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
libdjvulibre21
djvulibre-debugsource
djvulibre-debuginfo
libdjvulibre21-debuginfo
libdjvulibre-devel
djvulibre
libdjvulibre21 (Ubuntu package)
mingw-djvulibre
djvulibre-help
djvulibre-devel
djvulibre-doc
djvulibre-libs

How to mitigate CVE-2021-32493

Install update from vendor's website.

DjVuLibre - update to 3.5.28
cflinuxfs3 - update to 0.238.0
djvulibre (Debian package) - addressed in versions 3.5.27.1-10+deb10u1, 3.5.28-2
libdjvulibre21 - addressed in versions 3.5.21-3.9.1, 3.5.25.3-5.9.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre-debugsource - addressed in versions 3.5.21-3.9.1, 3.5.25.3-5.9.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre-debuginfo - addressed in versions 3.5.21-3.9.1, 3.5.25.3-5.9.1, 3.5.27-3.11.1, 3.5.27-11.3.1
libdjvulibre21-debuginfo - addressed in versions 3.5.25.3-5.9.1, 3.5.27-3.11.1, 3.5.27-11.3.1
libdjvulibre-devel - addressed in versions 3.5.25.3-5.9.1, 3.5.27-3.11.1, 3.5.27-11.3.1
djvulibre - update to 3.5.25.3-23.el7
libdjvulibre21 (Ubuntu package) - addressed in versions 3.5.27.1-8ubuntu0.3, 3.5.27.1-14ubuntu0.1, 3.5.27.1-15ubuntu0.1, 3.5.27.15ubuntu0.1+esm1, 3.5.28-1ubuntu0.1
mingw-djvulibre - addressed in versions 3.5.27-11.fc33, 3.5.27-11.fc34, 3.5.27-12.fc33, 3.5.27-12.fc34
djvulibre - update to 3.5.27-11.3.1
djvulibre-help - update to 3.5.27-16
djvulibre-debuginfo - update to 3.5.27-16
djvulibre-debugsource - update to 3.5.27-16
djvulibre-devel - update to 3.5.27-16
djvulibre - update to 3.5.27-16
djvulibre-devel - update to 3.5.28-2
djvulibre-doc - update to 3.5.28-2
djvulibre-libs - update to 3.5.28-2
djvulibre - update to 3.5.28-2

External References

Related Security Bulletins