Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A heap buffer overflow was found in Exiv2 versions v0.27.3 and earlier. The heap overflow is triggered when Exiv2 is used to write metadata into a crafted image file. An attacker could potentially exploit the vulnerability to gain code execution, if they can trick the victim into running Exiv2 on a crafted image file. Note that this bug is only triggered when _writing_ the metadata, which is a less frequently used Exiv2 operation than _reading_ the metadata. For example, to trigger the bug in the Exiv2 command-line application, you need to add an extra command-line argument such as `insert`. The bug is fixed in version v0.27.4.
CVSS Details
- CVSS 3.1 Base Score: 7.8
- CVSS 3.1 Vector: (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alma_linux | alma-upgrade-exiv2alma-upgrade-exiv2-develalma-upgrade-exiv2-docalma-upgrade-exiv2-libs | May 4, 2022 | Apr 19, 2021 | |
| Alpine Linux | alpine-linux-upgrade-exiv2 | Aug 22, 2024 | Apr 19, 2021 | |
| Arch Linux | arch-linux-upgrade-latest | Jul 11, 2025 | Apr 19, 2021 | |
| Centos_linux | — | centos-upgrade-exiv2centos-upgrade-exiv2-debuginfocentos-upgrade-exiv2-debugsourcecentos-upgrade-exiv2-libscentos-upgrade-exiv2-libs-debuginfo | Nov 10, 2021 | Apr 19, 2021 |
| Debian | debian-upgrade-exiv2 | Aug 16, 2021 | Apr 19, 2021 | |
| Freebsd | freebsd-upgrade-package-exiv2 | Nov 4, 2022 | Jun 30, 2021 | |
| Gentoo Linux | gentoo-linux-upgrade-media-gfx-exiv2 | Dec 27, 2023 | Apr 19, 2021 | |
| Huawei Euleros 2_0_sp3 | huawei-euleros-2_0_sp3-upgrade-exiv2-libs | Oct 26, 2021 | Apr 19, 2021 | |
| Huawei Euleros 2_0_sp5 | huawei-euleros-2_0_sp5-upgrade-exiv2-libs | Sep 7, 2021 | Apr 19, 2021 | |
| Huawei Euleros 2_0_sp8 | huawei-euleros-2_0_sp8-upgrade-exiv2huawei-euleros-2_0_sp8-upgrade-exiv2-libs | Jun 28, 2021 | Apr 19, 2021 | |
| Redhat_linux | no-fix-redhat-rpm-packageredhat-upgrade-exiv2redhat-upgrade-exiv2-debuginforedhat-upgrade-exiv2-debugsourceredhat-upgrade-exiv2-develredhat-upgrade-exiv2-docredhat-upgrade-exiv2-libsredhat-upgrade-exiv2-libs-debuginfo | Nov 10, 2021 | Apr 19, 2021 | |
| Rocky_linux | rocky-upgrade-exiv2rocky-upgrade-exiv2-debuginforocky-upgrade-exiv2-debugsourcerocky-upgrade-exiv2-develrocky-upgrade-exiv2-libsrocky-upgrade-exiv2-libs-debuginfo | Mar 12, 2024 | Apr 19, 2021 | |
| Suse | — | suse-upgrade-exiv2suse-upgrade-exiv2-langsuse-upgrade-libexiv2-12suse-upgrade-libexiv2-26suse-upgrade-libexiv2-26-32bitsuse-upgrade-libexiv2-27suse-upgrade-libexiv2-27-32bitsuse-upgrade-libexiv2-develsuse-upgrade-libexiv2-xmp-static | Nov 8, 2022 | Apr 19, 2021 |
| Ubuntu | ubuntu-pro-upgrade-libexiv2-14ubuntu-upgrade-libexiv2-14ubuntu-upgrade-libexiv2-27 | May 11, 2021 | Apr 19, 2021 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub