Out-of-bounds write in DjVuLibre - CVE-2021-3630

 

Out-of-bounds write in DjVuLibre - CVE-2021-3630

Published: August 2, 2021


Vulnerability identifier: #VU55487
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-3630
CWE-ID: CWE-787
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to compromise vulnerable system.

The vulnerability exists due to a boundary error when processing untrusted input within the DJVU::DjVuTXT::decode() function in DjVuText.cpp. A remote attacker can create a specially crafted djvu file, trick the victim into opening it using the affected software, trigger out-of-bounds write and execute arbitrary code on the target system.


Affected software

DjVuLibre
cflinuxfs3
djvulibre (Debian package)
SUSE Linux Enterprise Module for Packagehub Subpackages
libdjvulibre21
djvulibre-debuginfo
djvulibre-debugsource
libdjvulibre21-debuginfo
libdjvulibre-devel
djvulibre
libdjvulibre21 (Ubuntu package)
djvulibre-devel
djvulibre-help
mingw-djvulibre
SUSE Manager Retail Branch Server
SUSE Manager Server
SUSE CaaS Platform
SUSE Manager Proxy
SUSE Enterprise Storage
Fedora
SUSE OpenStack Cloud
SUSE OpenStack Cloud Crowbar
HPE Helion Openstack
SUSE Linux Enterprise Point
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

How to mitigate CVE-2021-3630

Install updates from vendor's website.

DjVuLibre - update to 3.5.28
cflinuxfs3 - update to 0.250.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.15.1, 3.5.25.3-5.19.2, 3.5.27-3.19.1
djvulibre-debuginfo - addressed in versions 3.5.21-3.15.1, 3.5.25.3-5.19.2, 3.5.27-3.19.1
djvulibre-debugsource - addressed in versions 3.5.21-3.15.1, 3.5.25.3-5.19.2, 3.5.27-3.19.1
libdjvulibre21-debuginfo - addressed in versions 3.5.25.3-5.19.2, 3.5.27-3.19.1
libdjvulibre-devel - addressed in versions 3.5.25.3-5.19.2, 3.5.27-3.19.1
djvulibre - addressed in versions 3.5.25.3-24.el7, 3.5.27-28.fc33, 3.5.27-30.fc34
libdjvulibre21 (Ubuntu package) - addressed in versions 3.5.27.1-8ubuntu0.4, 3.5.27.15ubuntu0.1+esm1
djvulibre - update to 3.5.27-17
djvulibre-debuginfo - update to 3.5.27-17
djvulibre-devel - update to 3.5.27-17
djvulibre-debugsource - update to 3.5.27-17
djvulibre-help - update to 3.5.27-17
mingw-djvulibre - addressed in versions 3.5.28-1.fc33, 3.5.28-1.fc34

External References

Related Security Bulletins