Heap-based buffer overflow in Exiv2 - CVE-2021-31291
Published: August 18, 2021
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in jp2image.cpp in Exiv2. A remote attacker can use crafted metadata to trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Gentoo Linux
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, big endian
Red Hat Enterprise Linux for Power, little endian
CentOS
Red Hat Enterprise Linux for x86_64
Anolis OS
Red Hat Enterprise Linux for ARM 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
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for x86_64 - Extended Update Support
Red Hat CodeReady Linux Builder for Power, little endian - Extended Update Support
Red Hat CodeReady Linux Builder for ARM 64 - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat CodeReady Linux Builder for IBM z Systems - Extended Update Support
SUSE OpenStack Cloud Crowbar
SUSE OpenStack Cloud
SUSE Linux Enterprise Server
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Software Development Kit
SUSE Linux Enterprise Server for SAP Applications
Ubuntu
Fedora
exiv2 (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
compat-exiv2-023 (Red Hat package)
libexiv2-12-debuginfo
libexiv2-12
libexiv2-devel
exiv2-debugsource
exiv2-debuginfo
libexiv2-14 (Ubuntu package)
compat-exiv2-026 (Red Hat package)
compat-exiv2-026
exiv2
exiv2-libs
libexiv2-27 (Ubuntu package)
mingw-exiv2
media-gfx/exiv2
How to mitigate CVE-2021-31291
exiv2 (Red Hat package) - addressed in versions 0.26-11.el8_1, 0.27.0-4.el7_8, 0.27.2-6.el8_2, 0.27.3-3.el8_4
compat-exiv2-023 (Red Hat package) - update to 0.23-2.el7_9
libexiv2-12-debuginfo - addressed in versions 0.23-12.11.1, 0.23-12.18.1
libexiv2-12 - addressed in versions 0.23-12.11.1, 0.23-12.18.1
libexiv2-devel - addressed in versions 0.23-12.11.1, 0.23-12.18.1
exiv2-debugsource - addressed in versions 0.23-12.11.1, 0.23-12.18.1
exiv2-debuginfo - addressed in versions 0.23-12.11.1, 0.23-12.18.1
libexiv2-14 (Ubuntu package) - addressed in versions 0.25-3.1ubuntu0.18.04.10, 0.25-3.1ubuntu0.18.04.11
compat-exiv2-026 (Red Hat package) - addressed in versions 0.26-3.el7_9, 0.26-4.el8_2, 0.26-4.el8_4
compat-exiv2-026 - update to 0.26-4
exiv2 - addressed in versions 0.27.2-6, 0.27.3-3
exiv2-libs - addressed in versions 0.27.2-6, 0.27.3-3
libexiv2-27 (Ubuntu package) - addressed in versions 0.27.2-8ubuntu2.5, 0.27.3-3ubuntu1.4
mingw-exiv2 - addressed in versions 0.27.4-3.fc33, 0.27.4-3.fc34
media-gfx/exiv2 - update to 0.28.1
External References
Related Security Bulletins
- Multiple vulnerabilities in Exiv2
- CentOS 7 update for exiv2
- Red Hat Enterprise Linux 8.4 update for exiv2
- Red Hat Enterprise Linux 8.4 update for compat-exiv2-026
- Red Hat Enterprise Linux 7 update for exiv2
- Red Hat Enterprise Linux 8.2 update for compat-exiv2-026
- Red Hat Enterprise Linux 8.2 update for exiv2
- Red Hat Enterprise Linux 8.1 update for exiv2
- Red Hat Enterprise Linux 7 update for compat-exiv2-026
- Red Hat Enterprise Linux 7 update for compat-exiv2-023
- Ubuntu update for exiv2
- SUSE update for exiv2
- SUSE update for exiv2
- Gentoo update for Exiv2
- Fedora 33 update for mingw-exiv2
- Fedora 34 update for mingw-exiv2
- Anolis OS update for compat-exiv2-026 (Anolis OS 8.2)
- Anolis OS update for exiv2 (Anolis OS 8.2)
- Anolis OS update for compat-exiv2-026 (Anolis OS 8.4)
- Anolis OS update for exiv2 (Anolis OS 8.4)