Out-of-bounds read in Exiv2 - CVE-2021-37618
Published: December 22, 2023
Vulnerability identifier: #VU84716
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-37618
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 in Exiv2::Jp2Image::printStructure(). A remote attacker can pass a specially crafted file to the application, trigger an out-of-bounds read error and perform a denial of service attack.
Affected software
Exiv2
Gentoo Linux
Red Hat Enterprise Linux for ARM 64
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 CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
openEuler
Fedora
libexiv2-14 (Ubuntu package)
compat-exiv2-026 (Red Hat package)
libexiv2-27 (Ubuntu package)
mingw-exiv2
exiv2 (Red Hat package)
exiv2
exiv2-help
exiv2-debuginfo
exiv2-debugsource
exiv2-devel
media-gfx/exiv2
Gentoo Linux
Red Hat Enterprise Linux for ARM 64
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 CodeReady Linux Builder for x86_64
Red Hat CodeReady Linux Builder for Power, little endian
Red Hat CodeReady Linux Builder for ARM 64
Red Hat CodeReady Linux Builder for IBM z Systems
Ubuntu
openEuler
Fedora
libexiv2-14 (Ubuntu package)
compat-exiv2-026 (Red Hat package)
libexiv2-27 (Ubuntu package)
mingw-exiv2
exiv2 (Red Hat package)
exiv2
exiv2-help
exiv2-debuginfo
exiv2-debugsource
exiv2-devel
media-gfx/exiv2
How to mitigate CVE-2021-37618
Install update from vendor's website.
Exiv2 - update to 0.27.5 rc1
libexiv2-14 (Ubuntu package) - update to 0.25-3.1ubuntu0.18.04.11
compat-exiv2-026 (Red Hat package) - update to 0.26-6.el8
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.6, 0.27.3-3ubuntu1.5
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 - 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-debuginfo - 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
media-gfx/exiv2 - update to 0.28.1
libexiv2-14 (Ubuntu package) - update to 0.25-3.1ubuntu0.18.04.11
compat-exiv2-026 (Red Hat package) - update to 0.26-6.el8
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.6, 0.27.3-3ubuntu1.5
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 - 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-debuginfo - 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
media-gfx/exiv2 - update to 0.28.1
External References
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-583f-w9pm-99r2
- https://github.com/Exiv2/exiv2/pull/1759
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FMDT4PJB7P43WSOM3TRQIY3J33BAFVVE/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/UYGDELIFFJWKUU7SO3QATCIXCZJERGAC/
Related Security Bulletins
- Multiple vulnerabilities in GNU Exiv2
- Gentoo update for Exiv2
- openEuler update for exiv2
- openEuler 20.03 LTS SP3 update for exiv2
- openEuler 22.03 LTS update for exiv2
- Red Hat Enterprise Linux 8 update for exiv2
- Red Hat Enterprise Linux 8 update for compat-exiv2-026
- Ubuntu update for exiv2
- Fedora 33 update for mingw-exiv2
- Fedora 34 update for mingw-exiv2