CVEfocus › CVE database › CVE-2021-37621

CVE-2021-37621Denial of service due to infinite loop in Image::printIFDStructure

CVSS 5.5 MediumEPSS 1.1% (higher than 65% of CVEs)Published 2021-08-09Updated 2024-08-04Assigner: GitHub_M

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An infinite loop was found in Exiv2 versions v0.27.4 and earlier. The infinite loop 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 image ICC profile, which is a less frequently used Exiv2 operation that requires an extra command line option (`-p C`). The bug is fixed in version v0.27.5.

CWE-835

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

16Fixed
11Fix pending
9Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04exiv2Fixed0.27.3-3ubuntu4UBUNTU-CVE-2021-37621
Ubuntu 20.04exiv2Fixed0.27.2-8ubuntu2.6UBUNTU-CVE-2021-37621
Ubuntu 16.04exiv2Fix pending
Ubuntu 14.04exiv2Fix pending
Debian 14exiv2Fixed0.27.5-1DEBIAN-CVE-2021-37621
Debian 13exiv2Fixed0.27.5-1DEBIAN-CVE-2021-37621
Debian 12exiv2Fixed0.27.5-1DEBIAN-CVE-2021-37621
Red Hat Enterprise Linux 9exiv2Fix pending
Affected
Red Hat Enterprise Linux 9exiv2-develFix pending
Affected
Red Hat Enterprise Linux 9exiv2-docFix pending
Affected
Red Hat Enterprise Linux 9exiv2-libsFix pending
Affected
Red Hat Enterprise Linux 8compat-exiv2-026Fix pending
Fix deferred
Red Hat Enterprise Linux 8exiv2Fix pending
Fix deferred
Red Hat Enterprise Linux 8exiv2-develFix pending
Fix deferred
Red Hat Enterprise Linux 8exiv2-docFix pending
Fix deferred
Red Hat Enterprise Linux 8exiv2-libsFix pending
Fix deferred
Red Hat Enterprise Linux 7compat-exiv2-023Will not fix
Out of support scope
Red Hat Enterprise Linux 7compat-exiv2-026Will not fix
Out of support scope
Red Hat Enterprise Linux 7exiv2Will not fix
Out of support scope
Red Hat Enterprise Linux 7exiv2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7exiv2-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7exiv2-libsWill not fix
Out of support scope
Red Hat Enterprise Linux 6exiv2Will not fix
Out of support scope
Red Hat Enterprise Linux 6exiv2-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6exiv2-libsWill not fix
Out of support scope
Alpine Linux 3.24exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.23exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.22exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.21exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.20exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.19exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.18exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.17exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.16exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.15exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621
Alpine Linux 3.14exiv2Fixed0.27.5-r0ALPINE-CVE-2021-37621

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.

Vendor advisories:

References

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.