Home / ExifTool / ExifTool / CVE-2021-22204
CVE-2021-22204: is it exploited, and which versions of ExifTool are affected and fixed?
CVE-2021-22204 is a code injection (remote code execution) vulnerability in ExifTool, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on November 17, 2021, with a federal due date of December 1, 2021. Affected: ExifTool >=7.44, <12.24 (CVE record by GitLab). Fixed in 12.24 (NVD). Severity: Medium (6.8, CVSS 3.1, from GitLab).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 16:39 UTC, CVE record November 19, 2026, 07:15 UTC and NVD November 19, 2026, 07:58 UTC.
What is 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 the malicious image
From the CVE record by GitLab, last updated October 21, 2025, 23:25 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| ExifTool | ExifTool | >=7.44, <12.24 |
As the CVE record by GitLab states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| exiftool project | exiftool | from 7.44 before 12.24 | application |
| debian | debian linux | 9.0 | operating system |
| debian | debian linux | 10.0 | operating system |
| fedoraproject | fedora | 32 | operating system |
| fedoraproject | fedora | 33 | operating system |
| fedoraproject | fedora | 34 | operating system |
NVD analysis (status Analyzed), last modified June 17, 2026, 03:36 UTC.
How severe is CVE-2021-22204?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L | GitLab |
| High 7.8 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2021-22204 exploited in the wild?
- CISA KEV
- Listed as ExifTool Remote Code Execution Vulnerability, added November 17, 2021; federal agencies must act by December 1, 2021
- Required action
- Apply updates per vendor instructions.
- Ransomware use
- Unknown
- CISA's summary
- 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
- CISA SSVC
- Exploitation: active; automatable: no; technical impact: partial (CISA ADP, February 6, 2025)
- EPSS
- 100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
Where are the vendor advisories and references?
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 x_refsource_MISC
- https://hackerone.com/reports/1154542 x_refsource_MISC
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json x_refsource_CONFIRM
- DSA-4910 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2021-de850ed71e vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-e3d8833d36 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-88d24aa32b vendor-advisory, x_refsource_FEDORA
- [oss-security] 20210509 [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image mailing-list, x_refsource_MLIST
- [oss-security] 20210510 Re: [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html x_refsource_MISC
- [debian-lts-announce] 20210516 [SECURITY] [DLA 2663-1] libimage-exiftool-perl security update mailing-list, x_refsource_MLIST
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html x_refsource_MISC
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html x_refsource_MISC
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html x_refsource_MISC
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22204 government-resource
Who found and reported it?
- Thanks vakzz for reporting this vulnerability through the GitLab HackerOne bug bounty program who then reported it to the ExifTool maintainer (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 5, 2021
- Published
- April 23, 2021, 17:22 UTC
- CVE record updated
- October 21, 2025, 23:25 UTC by GitLab
- NVD
- Analyzed, last modified June 17, 2026, 03:36 UTC
- Last checked
- CVE list November 19, 2026, 07:15 UTC; NVD November 19, 2026, 07:58 UTC; KEV December 3, 2026, 16:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD · CISA KEV
What other CVEs affect ExifTool?
- May 1, 2026CVE-2026-7580 Exiftool: code injection (remote code execution)
- Feb 24, 2026CVE-2026-3102 exiftool: OS command injection
Questions about CVE-2021-22204
Is CVE-2021-22204 exploited in the wild?
Yes. CISA added CVE-2021-22204 to its Known Exploited Vulnerabilities catalog on November 17, 2021 and set federal agencies a due date of December 1, 2021. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of ExifTool are affected by CVE-2021-22204?
ExifTool >=7.44, <12.24, per the CVE record by GitLab. The tables above give every range the sources list.
Which version fixes CVE-2021-22204?
12.24, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2021-22204?
Medium (6.8, CVSS 3.1, from GitLab). The severity table above shows each score with its source.
Where is the official record of CVE-2021-22204?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.