LiveActive security incident?Get immediate response
CVE Record

CVE-2021-37623: Denial of service due to infinite loop in JpegBase::printStructure (#2)

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 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 deleting the IPTC data, which is a less frequently used Exiv2 operation that requires an extra command line option (`-d I rm`). The bug is fixed in version v0.27.5.

MediumCVSS 5.5Not KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

A crafted image can make Exiv2 hang when a user or automated process modifies metadata and deletes IPTC data. The result is denial of service, not data theft or code execution. Exposure is mainly image-processing workflows that run vulnerable Exiv2 versions on untrusted files.

Executive priority

Treat as a moderate operational reliability risk. Prioritize patching internet-facing or user-upload image workflows, but this is not sourced as remote code execution or known exploited activity.

Technical view

CVE-2021-37623 is a CWE-835 infinite loop in Exiv2 v0.27.4 and earlier. Sources state it is triggered while modifying crafted image metadata, specifically when deleting IPTC data with an extra option. The issue is fixed in v0.27.5.

Likely exposure

Organizations are exposed if they use Exiv2 command-line tooling or the C++ library at version 0.27.4 or earlier, especially in user-submitted image handling or metadata-cleaning pipelines.

Exploitation context

The source bundle does not show active exploitation or KEV listing. Exploitation requires a victim or workflow to process a crafted image with the vulnerable IPTC deletion operation, causing availability impact.

Researcher notes

Key constraints matter: the advisory narrows triggering to crafted images during metadata modification, specifically IPTC deletion. Validate real exposure by mapping Exiv2 invocation paths rather than assuming all image reads are exploitable.

Mitigation direction

  • Upgrade Exiv2 to v0.27.5 or a vendor-patched package.
  • Identify automated image metadata workflows that accept untrusted files.
  • Avoid vulnerable IPTC deletion operations until patched.
  • Run image processing in isolated workers with resource limits.
  • Check Fedora, Gentoo, or relevant distro advisories for fixed packages.

Validation and detection

  • Confirm installed Exiv2 versions are later than 0.27.4.
  • Review applications linking against the Exiv2 C++ library.
  • Search jobs and scripts for Exiv2 metadata deletion usage.
  • Verify vendor security updates were applied on managed systems.
  • Monitor image-processing services for hangs or worker exhaustion.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-835: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-37623 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Medium
CVSS
5.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
6Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
5.5CVSS 3.1MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H1.83.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

5.5Medium
CVSS 3.1 vector shape for CVE-2021-37623Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
Exiv2exiv2<= 0.27.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-835 · source CWE mapping

Loop with Unreachable Exit Condition ('Infinite Loop')

Loop with Unreachable Exit Condition ('Infinite Loop') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.