CVE-2021-37620Out-of-bounds read in XmpTextValue::read()
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An out-of-bounds read was found in Exiv2 versions v0.27.4 and earlier. The out-of-bounds read is triggered when Exiv2 is used to read the metadata of a crafted image file. An attacker could potentially exploit the vulnerability to cause a denial of service, if they can trick the victim into running Exiv2 on a crafted image file. The bug is fixed in version v0.27.5.
What to do
Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.
Red Hat, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | exiv2 | Fixed | 0.27.3-3ubuntu4 | UBUNTU-CVE-2021-37620 |
| Ubuntu 20.04 | exiv2 | Fixed | 0.27.2-8ubuntu2.7 | UBUNTU-CVE-2021-37620 |
| Ubuntu 18.04 | exiv2 | Fixed | 0.25-3.1ubuntu0.18.04.11 | UBUNTU-CVE-2021-37620 |
| Ubuntu 16.04 | exiv2 | Fix pending | 0.25-2.1ubuntu16.04.7+esm4 (Ubuntu Pro) | UBUNTU-CVE-2021-37620 |
| Ubuntu 14.04 | exiv2 | Fix pending | ||
| Debian 14 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37620 |
| Debian 13 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37620 |
| Debian 12 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37620 |
| Red Hat Enterprise Linux 9 | exiv2 | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | exiv2-devel | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | exiv2-doc | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | exiv2-libs | Fix pending Affected | ||
| Red Hat Enterprise Linux 8 | compat-exiv2-026 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2 | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-devel | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-doc | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 8 | exiv2-libs | Fix pending Fix deferred | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-023 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | compat-exiv2-026 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | exiv2-libs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | exiv2-libs | Will not fix Out of support scope | ||
| Alpine Linux 3.24 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.23 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.22 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.21 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.20 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.19 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.18 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.17 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.16 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.15 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
| Alpine Linux 3.14 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37620 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- exiv2: affected: <= 0.27.4
Vendor advisories:
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/… (vendor-advisory)
- https://security.gentoo.org/glsa/202312-06 (vendor-advisory)
References
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-v5g7-46xf-h728
- https://github.com/Exiv2/exiv2/pull/1769
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FMDT4PJB7P43WSOM3TRQIY3J33BAFVVE/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/UYGDELIFFJWKUU7SO3QATCIXCZJERGAC/
- https://lists.debian.org/debian-lts-announce/2023/01/msg00004.html
- https://security.gentoo.org/glsa/202312-06
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.