Out-of-bounds read in Exiv2 - CVE-2021-29458

 

Out-of-bounds read in Exiv2 - CVE-2021-29458

Published: December 22, 2023


Vulnerability identifier: #VU84709
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-29458
CWE-ID: CWE-125
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a boundary condition within the Exiv2::Internal::CrwMap::encode() function. A remote attacker can pass a specially crafted file to the application and perform a denial of service attack.


Affected software

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

How to mitigate CVE-2021-29458

Install update from vendor's website.

Exiv2 - update to 0.27.4
libexiv2-14 (Ubuntu package) - addressed in versions 0.25-3.1ubuntu0.18.04.7, 0.25-3.1ubuntu0.18.04.11
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
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.2, 0.27.3-3ubuntu0.2, 0.27.3-3ubuntu1.1
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
media-gfx/exiv2 - update to 0.28.1

External References

Related Security Bulletins