CVE-2021-22204Improper neutralization of user data in the DjVu file format in ExifTool versions 7.44 and up allows arbitrary code execution when parsing…
- 6.8MediumCVSS base score
- 100.0%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 17 Nov 2021
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
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
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as ExifTool Remote Code Execution Vulnerability.
- Added
- 17 Nov 2021
- Fix due (US federal)
- 1 Dec 2021
- Used by ransomware
- Not known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 17 Nov 2021.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list 2 Metasploit modules and an Exploit-DB entry for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits3
Metasploit modules2 modules
- ExifTool DjVu ANT Perl injection (Metasploit module) (opens in a new tab)
exploit/unix/fileformat/exiftool_djvu_ant_perl_injectionRank excellentdisclosed 24 May 2021
- GitLab Unauthenticated Remote ExifTool Command Injection (Metasploit module) (opens in a new tab)
exploit/multi/http/gitlab_exif_rceRank excellentdisclosed 14 Apr 2021
Exploit-DB1 entry
- ExifTool 12.23 - Arbitrary Code Execution (Exploit-DB entry) (opens in a new tab)
EDB-ID 50911local, linuxpublished 11 May 2022Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By GitLab
- 4 months later
· 4 months later
Published
- 7 months later
· 7 months later
Added to CISA KEV
Known exploited in the wild
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitLabCNA (assigner) | 3.1 | Medium6.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L |
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 100.0% · top 0.1% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.
Affected products
References
References15
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 (opens in a new tab)x_refsource_MISCx_transferred
- https://hackerone.com/reports/1154542 (opens in a new tab)x_refsource_MISCx_transferred
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-4910 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- FEDORA-2021-de850ed71e (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-e3d8833d36 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- FEDORA-2021-88d24aa32b (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- [oss-security] 20210509 [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20210510 Re: [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html (opens in a new tab)x_refsource_MISCx_transferred
- [debian-lts-announce] 20210516 [SECURITY] [DLA 2663-1] libimage-exiftool-perl security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html (opens in a new tab)x_refsource_MISCx_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22204 (opens in a new tab)government-resource
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-9350 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-22204)Record last updated .