CVE-2021-37615Null pointer dereference in Exiv2::Internal::resolveLens0x319
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. A null pointer dereference was found in Exiv2 versions v0.27.4 and earlier. The null pointer dereference is triggered when Exiv2 is used to print 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. Note that this bug is only triggered when printing the interpreted (translated) data, which is a less frequently used Exiv2 operation that requires an extra command line option (`-p t` or `-P t`). 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-37615 |
| Ubuntu 20.04 | exiv2 | Fixed | 0.27.2-8ubuntu2.6 | UBUNTU-CVE-2021-37615 |
| Ubuntu 16.04 | exiv2 | Fix pending | ||
| Ubuntu 14.04 | exiv2 | Fix pending | ||
| Debian 14 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37615 |
| Debian 13 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37615 |
| Debian 12 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-37615 |
| 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-37615 |
| Alpine Linux 3.23 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.22 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.21 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.20 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.19 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.18 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.17 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.16 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.15 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
| Alpine Linux 3.14 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-37615 |
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/pull/1758
- https://github.com/Exiv2/exiv2/security/advisories/GHSA-h9x9-4f77-336w
- 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://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.