Integer overflow in Exiv2 - CVE-2021-31292

 

Integer overflow in Exiv2 - CVE-2021-31292

Published: August 17, 2021


Vulnerability identifier: #VU55922
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-31292
CWE-ID:
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to integer overflow CrwMap::encode0x1810 of Exiv2. A remote attacker can pass specially crafted data to the application, trigger integer overflow and crash the application.


Affected software

Exiv2
Gentoo Linux
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
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
Red Hat CodeReady Linux Builder for x86_64
openEuler
Fedora
exiv2 (Debian package)
compat-exiv2-026 (Red Hat package)
mingw-exiv2
exiv2 (Red Hat package)
exiv2-debuginfo
exiv2-help
exiv2-debugsource
exiv2-devel
exiv2
media-gfx/exiv2

How to mitigate CVE-2021-31292

Install update from vendor's website.

Exiv2 - update to 0.27.4
exiv2 (Debian package) - update to 0.25-4+deb10u2
compat-exiv2-026 (Red Hat package) - update to 0.26-6.el8
mingw-exiv2 - addressed in versions 0.27.4-3.fc33, 0.27.4-3.fc34
exiv2 (Red Hat package) - update to 0.27.4-5.el8
exiv2-debuginfo - addressed in versions 0.27.5-1, 0.27.5-2
exiv2-help - addressed in versions 0.27.5-1, 0.27.5-2
exiv2-debugsource - addressed in versions 0.27.5-1, 0.27.5-2
exiv2-devel - addressed in versions 0.27.5-1, 0.27.5-2
exiv2 - addressed in versions 0.27.5-1, 0.27.5-2
media-gfx/exiv2 - update to 0.28.1

External References

Related Security Bulletins