LiveActive security incident?Get immediate response
CVE Record

CVE-2021-34334: Denial of service due to integer overflow in loop counter

Exiv2 is a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. An infinite loop is triggered when Exiv2 is used to read 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. 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

CVE-2021-34334 can make Exiv2 hang when it reads metadata from a specially crafted image. The main business impact is denial of service: affected image-processing workflows may stall or consume resources until interrupted. It requires user interaction or a workflow that processes an attacker-supplied file.

Executive priority

Treat this as a moderate availability risk. Prioritize upgrades where Exiv2 handles customer, partner, or internet-sourced images, especially in automated processing paths where a hang could disrupt services or queues.

Technical view

Exiv2 versions through 0.27.4 contain an infinite-loop flaw tied to an integer-overflow loop counter when parsing crafted image metadata. The CVSS 3.1 score is 5.5, with local attack vector, required user interaction, no confidentiality or integrity impact, and high availability impact. The issue is fixed in v0.27.5.

Likely exposure

Exposure is most likely on systems running Exiv2 CLI or library versions <= 0.27.4 that process untrusted or externally supplied image files, including automated metadata extraction pipelines and desktop workflows.

Exploitation context

The source bundle does not show known active exploitation, and KEV is false. Exploitation requires getting a victim or processing workflow to run Exiv2 against a crafted image file, causing a denial-of-service condition rather than data theft or code execution.

Researcher notes

Focus validation on versioning, package backports, and data-flow exposure to untrusted images. The public description supports denial of service via infinite loop only; it does not support claims of remote code execution, data compromise, or active exploitation.

Mitigation direction

  • Upgrade Exiv2 to v0.27.5 or a vendor-fixed distribution package.
  • Apply relevant Fedora, Debian LTS, Gentoo, or other OS security updates.
  • Restrict Exiv2 processing of untrusted images until upgraded.
  • Use operational timeouts for image metadata jobs where practical.

Validation and detection

  • Inventory Exiv2 CLI and linked library versions across endpoints and servers.
  • Confirm affected systems are not running Exiv2 <= 0.27.4.
  • Identify workflows that parse user-supplied image metadata with Exiv2.
  • Verify vendor package changelogs reference CVE-2021-34334 or the Exiv2 fix.
  • Confirm denial-of-service monitoring covers stalled image-processing jobs.
Prepared
Confidence
high
Sources
8

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-34334 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
7Source 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-34334Attack 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.