CVE-2021-32815Denial of service due to assertion failure in crwimage_int.cpp
Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The assertion failure is triggered when Exiv2 is used to modify 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 modifying 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 `fi`. ### Patches The bug is fixed in version v0.27.5. ### References Regression test and bug fix: #1739 ### For more information Please see our [security policy](https://github.com/Exiv2/exiv2/security/policy) for information about Exiv2 security.
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-32815 |
| Ubuntu 20.04 | exiv2 | Fixed | 0.27.2-8ubuntu2.6 | UBUNTU-CVE-2021-32815 |
| Ubuntu 18.04 | exiv2 | Fixed | 0.25-3.1ubuntu0.18.04.11 | UBUNTU-CVE-2021-32815 |
| Ubuntu 16.04 | exiv2 | Fix pending | 0.25-2.1ubuntu16.04.7+esm4 (Ubuntu Pro) | UBUNTU-CVE-2021-32815 |
| Ubuntu 14.04 | exiv2 | Fix pending | ||
| Debian 14 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-32815 |
| Debian 13 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-32815 |
| Debian 12 | exiv2 | Fixed | 0.27.5-1 | DEBIAN-CVE-2021-32815 |
| 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-32815 |
| Alpine Linux 3.23 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.22 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.21 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.20 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.19 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.18 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.17 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.16 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.15 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
| Alpine Linux 3.14 | exiv2 | Fixed | 0.27.5-r0 | ALPINE-CVE-2021-32815 |
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.5
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-mv9g-fxh2-m49m
- https://github.com/Exiv2/exiv2/pull/1739
- 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.