Buffer overflow in Exiv2 - CVE-2021-3482

 

Buffer overflow in Exiv2 - CVE-2021-3482

Published: August 17, 2021


Vulnerability identifier: #VU55919
CSH Severity: High
CVSS v4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-3482
CWE-ID:
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 when processing EXIF data in Jp2Image::readMetadata() in jp2image.cpp. A remote attacker can create a specially crafted EXIF document, trick the victim into opening it, trigger memory corruption and execute arbitrary code on the target system.

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


Affected software

Exiv2
Arch Linux
Anolis OS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for IBM z Systems
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for Power, little endian
Ubuntu
openEuler
Fedora
exiv2 (Debian package)
exiv2
exiv2-devel
exiv2-debuginfo
exiv2-debugsource
exiv2-help
exiv2 (Red Hat package)
exiv2-libs
libexiv2-14 (Ubuntu package)
libexiv2-27 (Ubuntu package)

How to mitigate CVE-2021-3482

Install updates from vendor's website.

Exiv2 - update to 0.27.4
exiv2 (Debian package) - update to 0.25-4+deb10u2
exiv2 - update to 0.26-25
exiv2-devel - update to 0.26-25
exiv2-debuginfo - update to 0.26-25
exiv2-debugsource - update to 0.26-25
exiv2-help - update to 0.26-25
exiv2 - addressed in versions 0.27.3-6.fc33, 0.27.3-6.fc34
exiv2 (Red Hat package) - update to 0.27.4-5.el8
exiv2 - update to 0.27.5-2
exiv2-libs - update to 0.27.5-2
libexiv2-14 (Ubuntu package) - addressed in versions 0.25-3.1ubuntu0.18.04.7, 0.25-3.1ubuntu0.18.04.11
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.2, 0.27.3-3ubuntu0.2, 0.27.3-3ubuntu1.1

External References

Related Security Bulletins