CVE-2021-29464
published low CVSS 3.1 · 3.3Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Exiv2 | — | exiv2< 0.27.4 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluationALAS2-2023-2215 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | exiv2 | Advisory build | 0.27.4-5.el8 | ALSA-2021:4173 |
| Alpine Linux | edge | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Red Hat Enterprise Linux | RHEL-8 | exiv2aarch64 | Advisory build | 0.27.4-5.el8 | RHSA-2021:4173 |
| Ubuntu | focal | exiv2 | Advisory build | 0.27.2-8ubuntu2.4 | USN-4964-1 |
| Amazon Linux | AL2 | exiv2aarch64 | Listed in advisory | Not stated | ALAS2-2023-2215 |
| Rocky Linux | 8 | exiv2aarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
Show 60 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.14 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.15 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.16 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.17 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.18 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.19 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.20 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.21 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.22 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.23 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| Alpine Linux | v3.24 | exiv2 | Fixed | 0.27.4-r0 | Package fix record |
| 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 |
| 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 |
| Ubuntu | focal | libexiv2-27 | Advisory build | 0.27.2-8ubuntu2.4 | USN-4964-1 |
| Amazon Linux | AL2 | exiv2i686 | Listed in advisory | Not stated | ALAS2-2023-2215 |
| Amazon Linux | AL2 | exiv2noarch | Listed in advisory | Not stated | ALAS2-2023-2215 |
| Amazon Linux | AL2 | exiv2src | Listed in advisory | Not stated | ALAS2-2023-2215 |
| Amazon Linux | AL2 | exiv2x86_64 | Listed in advisory | Not stated | ALAS2-2023-2215 |
| Rocky Linux | 8 | exiv2src | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2x86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-debuginfoi686 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-debugsourceaarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-develaarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-develi686 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-develx86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-docnoarch | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libsaarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libsi686 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libsx86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libs-debuginfoaarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libs-debuginfoi686 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Rocky Linux | 8 | exiv2-libs-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:4173 |
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.
- CVSS version
- 3.1
- Base score
- 3.3 / 10
- Severity
- low
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N
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
5- https://github.com/Exiv2/exiv2/commit/f9308839198aca5e68a65194f151a1de92398f54
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-jgm9-5fw5-pw9p
- FEDORA-2021-dde4d7d47e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/K3HKXR6JOVKMBE4HY4FDXNVZGNCQG6T3/
- FEDORA-2021-0b27f220bd https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NDMZTVQAZSMLPTDVDYLBHAAF7I5QXVYQ/
- GLSA-202312-06 https://security.gentoo.org/glsa/202312-06
Provider assertions
2GitHub_M · cna
Heap buffer overflow in Exiv2::Jp2Image::encodeJp2Header
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 89ac19ebb0d02fc7de6580d13eb69961d1a744f8312ca758a3beb8138db912db
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record