CVE-2021-22204
NixOS vulnerability analysis and mitigation

Overview

CVE-2021-22204 is a vulnerability discovered in ExifTool versions 7.44 and up through 12.23, affecting the DjVu file format module. The vulnerability was disclosed in April 2021 and involves improper neutralization of user data when parsing malicious images, which could lead to arbitrary code execution (NVD, OSS Security).

Technical details

The vulnerability stems from a bug in the DjVu module's string parsing mechanism. The issue specifically relates to how the code determines string endings using regex patterns, where '$' matches both the end of string and before trailing newlines, instead of using '\z' to match only the end of string. This implementation flaw allows for code injection through maliciously crafted DjVu files (OSS Security). The vulnerability has been assigned a CVSS 3.1 base score of 7.8 (High), with attack vector being local, low attack complexity, no privileges required, and user interaction required (Ubuntu).

Impact

The vulnerability allows attackers to execute arbitrary code when a malicious image is processed by ExifTool. The impact is rated as high for confidentiality, integrity, and availability. The vulnerability can be triggered through various valid file formats that utilize the DjVu module (OSS Security, Ubuntu).

Mitigation and workarounds

The vulnerability was fixed in ExifTool version 12.24. The fix involved removing the problematic eval() implementation rather than fine-tuning the regex pattern. Major Linux distributions have released security updates, including Debian (versions 10.40-1+deb9u1 for Stretch and 11.16-1+deb10u1 for Buster), Ubuntu, and Fedora (Debian Security, Fedora Update).

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-62186HIGH7.8
  • NixOSNixOS
  • anki
NoYesOct 07, 2025
CVE-2025-62185HIGH7.8
  • NixOSNixOS
  • anki
NoYesOct 07, 2025
CVE-2025-40889HIGH7.2
  • NixOSNixOS
  • guardian
NoYesOct 07, 2025
CVE-2025-40888MEDIUM6
  • NixOSNixOS
  • guardian
NoYesOct 07, 2025
CVE-2025-62187LOW3.3
  • NixOSNixOS
  • anki
NoYesOct 07, 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