cve.bz

CVE-2021-32815 Reachable Assertion

5.5 mediumEPSS 1.1%Fix available

Medium (5.5). EPSS 1.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS
1.1% (unchanged from 1.1% a week ago; 1.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 67th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-01-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-617 Reachable Assertion
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-32815 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-32815?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-32815?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-32815 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
exiv2:exiv2through 0.27.4
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10exiv20.25-4+deb10u4DLA-3265-1
Debian12, 13, 14exiv20.27.5-1DEBIAN-CVE-2021-32815
Ubuntu18.04:LTSexiv20.25-3.1ubuntu0.18.04.11UBUNTU-CVE-2021-32815 USN-5043-1
Ubuntu20.04:LTSexiv20.27.2-8ubuntu2.6UBUNTU-CVE-2021-32815 USN-5043-1
Ubuntu22.04:LTSexiv20.27.3-3ubuntu4UBUNTU-CVE-2021-32815
UbuntuPro:16.04:LTSexiv20.25-2.1ubuntu16.04.7+esm4UBUNTU-CVE-2021-32815 USN-5043-1
SUSEEnterprise Storage 6, Enterprise Storage 7, Linux Enterprise High Performance Computing 15 SP1-ESPOS and 17 moreexiv20.26-150000.6.26.1SUSE-SU-2022:4276-1
SUSELinux Enterprise Module for Desktop Applications 15 SP4exiv2-0_260.26-150400.9.21.1SUSE-SU-2022:4208-1
SUSELinux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL, Linux Enterprise Server 12 SP4-LTSS and 6 moreexiv20.23-12.18.1SUSE-SU-2022:4252-1
openSUSELeap 15.3exiv20.26-150000.6.26.1SUSE-SU-2022:4276-1
openSUSELeap 15.4exiv2-0_260.26-150400.9.21.1SUSE-SU-2022:4208-1
openSUSETumbleweedexiv20.27.5-7.1openSUSE-SU-2024:12507-1
Alpinev3.14, v3.15, v3.16 and 8 moreexiv20.27.5-r0ALPINE-CVE-2021-32815
Azure Linux2exiv20.27.5-1AZL-7214

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

Red Hat's statement

To exploit this issue, an attacker needs to convince a user to process a specially crafted image file, specifically to modify the metadata of an image, an uncommon operation that requires an extra command line option (`fi`). Additionally, this issue can lead to an assertion failure and cause a denial of service with no other security impact. Due to these reasons, this vulnerability has been rated with a low severity.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6exiv2Out of support scope
Red Hat Enterprise Linux 7compat-exiv2-023Out of support scope
Red Hat Enterprise Linux 7compat-exiv2-026Out of support scope
Red Hat Enterprise Linux 7exiv2Out of support scope
Red Hat Enterprise Linux 8compat-exiv2-026Fix deferred
Red Hat Enterprise Linux 8exiv2Fix deferred
Red Hat Enterprise Linux 9exiv2Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-32815.

References

Check your stackJSON