Stack-based buffer overflow in DjVuLibre - CVE-2021-3500

 

Stack-based buffer overflow in DjVuLibre - CVE-2021-3500

Published: May 17, 2021


Vulnerability identifier: #VU53319
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-3500
CWE-ID: CWE-121
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 in DJVU::DjVuDocument::get_djvu_file() function. A remote unauthenticated attacker can create a specially crafted djvu  file, trick the victim into opening it, trigger stack-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 CaaS Platform
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE Enterprise Storage
Fedora
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
HPE Helion Openstack
SUSE Linux Enterprise Debuginfo
SUSE Linux Enterprise Point of Sale
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
cflinuxfs3
djvulibre (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
libdjvulibre21
djvulibre-debuginfo
djvulibre-debugsource
libdjvulibre21-debuginfo
libdjvulibre-devel
djvulibre
libdjvulibre21 (Ubuntu package)
mingw-djvulibre
djvulibre-help
djvulibre-devel

How to mitigate CVE-2021-3500

Install updates 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.12.1, 3.5.25.3-5.12.1, 3.5.27-3.14.1, 3.5.27-11.6.1
djvulibre-debuginfo - addressed in versions 3.5.21-3.12.1, 3.5.25.3-5.12.1, 3.5.27-3.14.1, 3.5.27-11.6.1
djvulibre-debugsource - addressed in versions 3.5.21-3.12.1, 3.5.25.3-5.12.1, 3.5.27-3.14.1, 3.5.27-11.6.1
libdjvulibre21-debuginfo - addressed in versions 3.5.25.3-5.12.1, 3.5.27-3.14.1, 3.5.27-11.6.1
libdjvulibre-devel - addressed in versions 3.5.25.3-5.12.1, 3.5.27-3.14.1, 3.5.27-11.6.1
djvulibre - addressed in versions 3.5.25.3-23.el7, 3.5.27-25.fc32, 3.5.27-27.fc33, 3.5.27-28.fc34
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
djvulibre - update to 3.5.27-11.6.1
mingw-djvulibre - addressed in versions 3.5.27-12.fc33, 3.5.27-12.fc34
djvulibre - update to 3.5.27-16
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

External References

Related Security Bulletins