CVE-2021-29457
publishedHeap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Exiv2 | — | exiv2< 0.27.4 | Affected | Not stated | GitHub_M |
| AlmaLinux | 8 | exiv2 | Advisory build | 0.27.4-5.el8 | ALSA-2021:4173 |
| Alpine Linux | edge | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Debian | buster | exiv2 | Advisory build | 0.25-4+deb10u2 | DSA-4958-1 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2aarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| Ubuntu | bionic | exiv2 | Advisory build | 0.25-3.1ubuntu0.18.04.7 | USN-4941-1 |
| Alpine Linux | v3.13 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
Show 93 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.14 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.15 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.16 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.17 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.18 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.19 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.20 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.21 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.22 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.23 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Alpine Linux | v3.24 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
| Debian | stretch | exiv2 | Advisory build | 0.25-3.1+deb9u3 | DLA-2750-1 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2ppc64le | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2s390x | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2src | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2x86_64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2aarch64 | Advisory build | 0.27.5-3.1 | OPENSUSE-SU-2024:12381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2ppc64le | Advisory build | 0.27.5-3.1 | OPENSUSE-SU-2024:12381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2s390x | Advisory build | 0.27.5-3.1 | OPENSUSE-SU-2024:12381-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | exiv2x86_64 | Advisory build | 0.27.5-3.1 | OPENSUSE-SU-2024:12381-1 |
| Ubuntu | focal | exiv2 | Advisory build | 0.27.2-8ubuntu2.2 | USN-4941-1 |
| Ubuntu | xenial | exiv2 | Advisory build | 0.25-2.1ubuntu16.04.7+esm1 | USN-4941-1 |
| AlmaLinux | 8 | exiv2-devel | Advisory build | 0.27.4-5.el8 | ALSA-2021:4173 |
| AlmaLinux | 8 | exiv2-doc | Advisory build | 0.27.4-5.el8 | ALSA-2021:4173 |
| AlmaLinux | 8 | exiv2-libs | Advisory build | 0.27.4-5.el8 | ALSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debuginfoaarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debuginfoi686 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debuginfoppc64le | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debuginfos390x | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debuginfox86_64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debugsourceaarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debugsourcei686 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debugsourceppc64le | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debugsources390x | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-debugsourcex86_64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libsaarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libsi686 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libsppc64le | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libss390x | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libsx86_64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libs-debuginfoaarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libs-debuginfoi686 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libs-debuginfoppc64le | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libs-debuginfos390x | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Red Hat Enterprise Linux | RHEL-8 | exiv2-libs-debuginfox86_64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| SUSE / openSUSE | SLE-12-SP2 | libexiv2-12x86_64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP3 | libexiv2-12x86_64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP4 | libexiv2-12aarch64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP4 | libexiv2-12ppc64le | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP4 | libexiv2-12s390x | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP4 | libexiv2-12x86_64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-12aarch64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-12ppc64le | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-12s390x | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-12x86_64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-develaarch64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-develppc64le | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-devels390x | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-12-SP5 | libexiv2-develx86_64 | Advisory build | 0.23-12.18.1 | SUSE-SU-2022:4252-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26aarch64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26ppc64le | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26s390x | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-26x86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-27x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-devels390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-develx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-statics390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | SLE-15-SP4 | libexiv2-xmp-staticx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | exiv2-langnoarch | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26aarch64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26ppc64le | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26s390x | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26x86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-26-32bitx86_64 | Advisory build | 0.26-150400.9.16.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27aarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27ppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27s390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27x86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-27-32bitx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develaarch64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develppc64le | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-devels390x | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | libexiv2-develx86_64 | Advisory build | 0.27.5-150400.15.4.1 | SUSE-SU-2022:3889-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Exiv2 | exiv2 | < 0.27.4 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-122 CWE-122: Heap-based Buffer Overflow
References
8- https://github.com/Exiv2/exiv2/issues/1529
- https://github.com/Exiv2/exiv2/pull/1534
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-v74w-h496-cgqm
- [debian-lts-announce] 20210830 [SECURITY] [DLA 2750-1] exiv2 security update https://lists.debian.org/debian-lts-announce/2021/08/msg00028.html
- FEDORA-2021-10d7331a31 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2XQT5F5IINTDYDAFGVGQZ7PMMLG7I5ZZ/
- FEDORA-2021-be94728b95 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/P2A5GMJEXQ5Q76JK6F6VKK5JYCLVFGKN/
- GLSA-202312-06 https://security.gentoo.org/glsa/202312-06
- DSA-4958 https://www.debian.org/security/2021/dsa-4958
Provider assertions
2GitHub_M · cna
Heap buffer overflow in Exiv2::Jp2Image::doWriteMetadata
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 1f64ebc4edafa46f87d697e0f4fc4f8d551e3a34d3ea1ece6995c96506a75ef2
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record