Out-of-bounds write in Exiv2 - CVE-2021-29464
Published: December 22, 2023
Vulnerability details
The vulnerability allows a remote attacker to compromise vulnerable system.
The vulnerability exists due to a boundary error when processing untrusted input in Exiv2::Jp2Image::encodeJp2Header(). A remote attacker can pass specially crafted file to the application, trigger an out-of-bounds write and execute arbitrary code on the target system.
Affected software
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 (Ubuntu package)
exiv2
exiv2-help
exiv2-debugsource
exiv2-debuginfo
exiv2-devel
libexiv2-27 (Ubuntu package)
mingw-exiv2
exiv2 (Red Hat package)
exiv2-libs
media-gfx/exiv2
How to mitigate CVE-2021-29464
libexiv2-14 (Ubuntu package) - addressed in versions 0.25-3.1ubuntu0.18.04.9, 0.25-3.1ubuntu0.18.04.11
exiv2 (Ubuntu package) - addressed in versions 0.25-3.1ubuntu0.18.04.9, 0.27.2-8ubuntu2.4, 0.27.2-8ubuntu2.7, 0.27.3-3ubuntu0.4, 0.27.3-3ubuntu1.3
exiv2 - update to 0.26-25
exiv2-help - update to 0.26-25
exiv2-debugsource - update to 0.26-25
exiv2-debuginfo - update to 0.26-25
exiv2-devel - update to 0.26-25
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.4, 0.27.3-3ubuntu0.4, 0.27.3-3ubuntu1.3
mingw-exiv2 - addressed in versions 0.27.4-2.fc33, 0.27.4-2.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
- https://github.com/Exiv2/exiv2/commit/f9308839198aca5e68a65194f151a1de92398f54
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-jgm9-5fw5-pw9p
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/K3HKXR6JOVKMBE4HY4FDXNVZGNCQG6T3/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NDMZTVQAZSMLPTDVDYLBHAAF7I5QXVYQ/