CVE-2021-29458
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-29458 affects Exiv2, a command-line utility and C++ library for reading, writing, deleting, and modifying the metadata of image files. The vulnerability was discovered in versions v0.27.3 and earlier, with a fix released in version v0.27.4 (GitHub Advisory).

Technical details

The vulnerability is an out-of-bounds read in Exiv2::Internal::CrwMap::encode function. The issue occurs when Exiv2 is used to write metadata into a crafted image file. The problem stems from a negative integer overflow in cc->size() - 8, where cc->size() could be less than 28 bytes (GitHub Issue). The vulnerability has been assigned a CVSS v3.1 base score of 5.5 MEDIUM with vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H (NVD).

Impact

An attacker could potentially exploit the vulnerability to cause a denial of service by crashing Exiv2, if they can trick the victim into running Exiv2 on a crafted image file. The impact is limited as this bug is only triggered when writing metadata, which is a less frequently used Exiv2 operation than reading metadata. For example, to trigger the bug in the Exiv2 command-line application, an extra command-line argument such as 'insert' is required (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Exiv2 version v0.27.4. Users are recommended to upgrade to this version or later. The fix includes additional validation to prevent the integer overflow condition (GitHub Pull).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management