CVE-2021-3482
publishedexiv2: Heap-based buffer overflow in Jp2Image::readMetadata()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | exiv2exiv2 0.27.4RC2 | Affected | Not stated | redhat |
| 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 |
| Ubuntu | bionic | exiv2 | Advisory build | 0.25-3.1ubuntu0.18.04.7 | USN-4941-1 |
| Rocky Linux | 8 | exiv2aarch64 | Listed in advisory | Not stated | RLSA-2021:4173 |
| Alpine Linux | v3.13 | exiv2 | Fixed | 0.27.3-r1 | Package fix record |
Show 61 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 |
| 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 |
| Ubuntu | bionic | libexiv2-14 | Advisory build | 0.25-3.1ubuntu0.18.04.7 | USN-4941-1 |
| Ubuntu | focal | libexiv2-27 | Advisory build | 0.27.2-8ubuntu2.2 | USN-4941-1 |
| Ubuntu | xenial | libexiv2-14 | Advisory build | 0.25-2.1ubuntu16.04.7+esm1 | USN-4941-1 |
| 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
A flaw was found in Exiv2 in versions before and including 0.27.4-RC1. Improper input validation of the rawData.size property in Jp2Image::readMetadata() in jp2image.cpp can lead to a heap-based buffer overflow via a crafted JPG image containing malicious EXIF data.
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 |
|---|---|---|---|
| n/a | exiv2 | exiv2 0.27.4RC2 (affected) | redhat · cna |
Weaknesses
1- CWE-20 CWE-20->CWE-119
References
5- https://bugzilla.redhat.com/show_bug.cgi?id=1946314
- [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/
- DSA-4958 https://www.debian.org/security/2021/dsa-4958
Provider assertions
2redhat · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f917e5a75ddcef6913f630434d5a7b0b3e34cc3844fc54a419ffde65bbd21b41
- Ingested
- 23 Sep 2026, 07:55:51 UTC
- Source record
- Official CVE record