CVE-2021-22204: ExifTool Remote Code Execution Vulnerability
Reference page built from the source records below, each shown as its source publishes it. Dataset version ref-9ee726a822ec, updated 2026-11-02T23:39:54.475Z.
CISA Known Exploited Vulnerabilities
- Name
- ExifTool Remote Code Execution Vulnerability
- Vendor
- Perl
- Product
- Exiftool
- Added to the catalog
- 2021-11-17
- Due date for US federal agencies
- 2021-12-01
- Weaknesses
- CWE-95
- Catalog version
- 2026.10.30
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
Required action (CISA)
Apply updates per vendor instructions.
Ransomware use: CISA does not mark known use of this vulnerability in ransomware campaigns.
Links in CISA's notes
Read on 2026-11-02T23:39:54.475Z under licence cisa-kev-cc0@b0067899 from https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
NVD analysis
- Status
- Analyzed
- Published
- 2021-04-23T18:15:08.127
- Last modified
- 2026-06-17T03:36:47.890
- Weaknesses
- CWE-94
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
| Metric | Score | Severity | Vector | Scored by |
|---|---|---|---|---|
| CVSS 3.1 | 6.8 | MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L | [email protected] (Secondary) |
| CVSS 3.1 | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | [email protected] (Primary) |
| CVSS 2.0 | 6.8 | MEDIUM | AV:N/AC:M/Au:N/C:P/I:P/A:P | [email protected] (Primary) |
References
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://www.openwall.com/lists/oss-security/2021/05/09/1 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/05/10/5 (Mailing List, Third Party Advisory)
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 (Patch)
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json (Third Party Advisory)
- https://hackerone.com/reports/1154542 (Exploit, Issue Tracking, Third Party Advisory)
- https://lists.debian.org/debian-lts-announce/2021/05/msg00018.html (Mailing List, Third Party Advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDKDLJLBTBBR66OOPXSXCG2PQRM5KCZL/ (Release Notes)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F6UOBPU3LSHAPRRJNISNVXZ5DSUIALLV/ (Release Notes)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U4RF6PJCJ6NQOVJJJF6HN6BORUQVIXY6/ (Release Notes)
- https://www.debian.org/security/2021/dsa-4910 (Mailing List, Third Party Advisory)
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Injection.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://packetstormsecurity.com/files/167038/ExifTool-12.23-Arbitrary-Code-Execution.html (Exploit, Third Party Advisory, VDB Entry)
- http://www.openwall.com/lists/oss-security/2021/05/09/1 (Mailing List, Third Party Advisory)
- http://www.openwall.com/lists/oss-security/2021/05/10/5 (Mailing List, Third Party Advisory)
- https://github.com/exiftool/exiftool/commit/cf0f4e7dcd024ca99615bfd1102a841a25dde031#diff-fa0d652d10dbcd246e6b1df16c1e992931d3bb717a7e36157596b76bdadb3800 (Patch)
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22204.json (Third Party Advisory)
- https://hackerone.com/reports/1154542 (Exploit, Issue Tracking, Third Party Advisory)
- https://lists.debian.org/debian-lts-announce/2021/05/msg00018.html (Mailing List, Third Party Advisory)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DDKDLJLBTBBR66OOPXSXCG2PQRM5KCZL/ (Release Notes)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F6UOBPU3LSHAPRRJNISNVXZ5DSUIALLV/ (Release Notes)
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/U4RF6PJCJ6NQOVJJJF6HN6BORUQVIXY6/ (Release Notes)
- https://www.debian.org/security/2021/dsa-4910 (Mailing List, Third Party Advisory)
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22204 (US Government Resource)
This product uses the NVD API but is not endorsed or certified by the NVD.
Read on 2026-11-02T23:41:51.476Z under licence nvd-api-terms-of-use@ff2a5288 from https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2021-22204
CVE record
- Assigner
- GitLab
- State
- PUBLISHED
- Published
- 2021-04-23T17:22:15.000Z
- Updated
- 2025-10-21T23:25:48.455Z
- Problem types
- Improper neutralization of directives in dynamically evaluated code ('eval injection') in ExifTool
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
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
- DSA-4910
- FEDORA-2021-de850ed71e
- FEDORA-2021-e3d8833d36
- FEDORA-2021-88d24aa32b
- [oss-security] 20210509 [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image
- [oss-security] 20210510 Re: [CVE-2021-22204] ExifTool - Arbitrary code execution in the DjVu module when parsing a malicious image
- http://packetstormsecurity.com/files/162558/ExifTool-DjVu-ANT-Perl-Injection.html
- [debian-lts-announce] 20210516 [SECURITY] [DLA 2663-1] libimage-exiftool-perl security update
- 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
Read on 2026-11-03T01:06:16.179Z under licence cve-terms-of-use@81bfa2f3 from https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2021/22xxx/CVE-2021-22204.json
Defensive techniques (MITRE D3FEND)
D3FEND maps these defensive techniques to the weakness (CWE) that NVD lists for this CVE, through the digital artifacts the weakness affects. D3FEND does not say they stop this vulnerability.
CWE-94: Improper Control of Generation of Code ('Code Injection')
- Harden: Credential Scrubbing (acts on Subroutine)
- Restore: Restore Software (acts on Software)
- Harden: Domain Logic Validation (acts on Subroutine)
- Model: Software Inventory (acts on Software)
- Harden: Software Update (acts on Software)
- Harden: Trusted Library (acts on Subroutine)
- Harden: Variable Initialization (acts on Subroutine)
- Model: Asset Vulnerability Enumeration (acts on Software)
- Isolate: Application-based Process Isolation (acts on Subroutine)
D3FEND ontology version 1.6.0.
Read on 2026-11-02T23:54:29.667Z under licence d3fend-terms-of-use@f98cbc7e from https://d3fend.mitre.org/api/weakness/cwe/CWE-94.json
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/
Sources and licences
CISA
Source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30, CC0 1.0. Use of this data does not imply endorsement by CISA or DHS.
National Vulnerability Database (NIST)
This product uses the NVD API but is not endorsed or certified by the NVD.
NVD API Terms of Use (NIST publications in the public domain, 17 U.S.C. 105)
CVE Program, The MITRE Corporation
Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy.
MITRE D3FEND
MITRE D3FEND™ knowledge graph. © 2025 The MITRE Corporation.
"The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use D3FEND for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." Terms: https://d3fend.mitre.org/tou/MITRE D3FEND Terms of Use (site + knowledge graph); source repo MIT
Cite this page
Dragons Eye Ransomware Tracker, "CVE-2021-22204: ExifTool Remote Code Execution Vulnerability",
entity page, dataset version ref-9ee726a822ec, updated 2026-11-02T23:39:54.475Z,
https://ransomware-tracker.com/cve/CVE-2021-22204 (accessed 2026-11-03).
Underlying source: CISA Catalog of Known Exploited Vulnerabilities, version 2026.10.30.
Underlying source: National Vulnerability Database (NIST), CVE API 2.0, record last modified 2026-06-17T03:36:47.890.
Underlying source: CVE List (CVE Program, The MITRE Corporation), record updated 2025-10-21T23:25:48.455Z.
Underlying source: MITRE D3FEND, ontology version 1.6.0.
Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.