ExifTool
ExifTool Remote Code Execution Vulnerability
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
Timeline
Days relative to CVE publicationFirst public PoC 17 days after publication; added to CISA KEV 208 days after publication. First PoC: Metasploit exploit: ExifTool DjVu ANT Perl injection (exploit/unix/fileformat/exiftool_djvu_ant_perl_injection) (Metasploit, 11 May 2021).
PoC repositories
Found on GitHub.17 PoCs · 1 pending · 4 informational · 2 not a PoC · 4 suspicious or fake
PoCs 17
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| convisolabs/CVE-2021-22204-exiftool | 11 May 2021 +18 d | backfilled | 96 | PoC
Flags · score 30
Below the suspicion threshold (50); does not change the assessment. |
| se162xg/CVE-2021-22204 | 12 May 2021 +19 d | backfilled | 12 | PoC |
| CsEnox/Gitlab-Exiftool-RCE | 4 Jun 2021 +41 d | backfilled | 61 | PoC |
| PenTestical/CVE-2021-22204 | 2 Aug 2021 +101 d | backfilled | 3 | PoC via PoC Index |
| AssassinUKG/CVE-2021-22204 | 2 Aug 2021 +101 d | backfilled | 28 | PoC |
| ph-arm/CVE-2021-22204-Gitlab | 4 Nov 2021 +195 d | backfilled | 2 | PoC |
| oneoy/Gitlab-Exiftool-RCE | 5 Nov 2021 +196 d | backfilled | 0 | PoC |
| LazyTitan33/ExifTool-DjVu-exploit | 23 Jan 2022 +275 d | backfilled | 1 | PoC via PoC Index |
| 0xBruno/CVE-2021-22204 | 30 Jan 2022 +281 d | backfilled | 2 | PoC |
| mr-tuhin/CVE-2021-22204-exiftool | 21 Feb 2022 +304 d | backfilled | 9 | PoC |
| Akash7350/CVE-2021-22204 | 14 May 2023 +2.1 y | backfilled | 5 | PoC |
| battleofthebots/dejavu | 25 Jul 2023 +2.3 y | backfilled | 0 | PoC |
| cc3305/CVE-2021-22204 | 7 Jun 2024 +3.1 y | backfilled | 0 | PoC |
| EternalDreamer01/RCE-exploit-Gitlab-13.9.1 | 22 Jun 2024 +3.2 y | backfilled | 0 | PoC |
| MikeCod/RCE-exploit-Gitlab-13.9.1 | 22 Jun 2024 +3.2 y | backfilled | 0 | PoC |
| Roronoawjd/CVE-2021-22204 | 27 Oct 2025 +4.5 y | backfilled | 0 | PoC |
| cyfrowesny/exiftool-7.44-12.23-exploit-CVE-2021-22204 | 16 Oct 2026 +5.5 y | 14 Nov 2026 | 0 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| sameep0/CVE-2021-22204 | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 4
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| Asaad27/CVE-2021-22204-RSE | 6 Dec 2021 +227 d | backfilled | 0 | Informational · write-up |
| trganda/CVE-2021-22204 | 29 Dec 2021 +250 d | backfilled | 3 | Informational · write-up |
| PolGs/htb-meta | 1 Jun 2022 +1.1 y | backfilled | 0 | Informational · write-up |
| d4ytox/CVE-2021-22205 | 10 Nov 2026 +5.5 y | 15 Nov 2026 | 1 | Informational · detection |
Not a PoC 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| mr-r3bot/Gitlab-CVE-2021-22205 | 5 Jun 2021 +43 d | 180 | Not a PoC · unrelated |
| pizza-power/Golang-CVE-2021-22205-POC | 25 Nov 2021 +216 d | 3 | Not a PoC · unrelated |
Suspicious or fake 4
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| szTheory/exifcleaner | 5 Dec 2019 −1.4 y | 2,895 | Fake |
| bilkoh/POC-CVE-2021-22204 | 21 May 2021 +27 d | 8 | Fake |
| UNICORDev/exploit-CVE-2021-22204 | 16 Apr 2022 +358 d | 55 | Fake
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| d4ytox/CVE-2021-22204 | 13 Jun 2026 +5.1 y | 1 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Exploit-DB | ExifTool 12.23 - Arbitrary Code Execution | 11 May 2022 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: GitLab Unauthenticated Remote ExifTool Command Injection (exploit/multi/http/gitlab_exif_rce) | 2 Nov 2021 | 14 Nov 2026 |
| Metasploit | Metasploit exploit: ExifTool DjVu ANT Perl injection (exploit/unix/fileformat/exiftool_djvu_ant_perl_injection) | 11 May 2021 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 17 PoC reposGET /users/sign_in
- Seen in
- 3 repos: CsEnox/Gitlab-Exiftool-RCE, oneoy/Gitlab-Exiftool-RCE, ph-arm/CVE-2021-22204-Gitlab
- Evidence
- CsEnox/Gitlab-Exiftool-RCE/exploit.py:23 CsEnox/Gitlab-Exiftool-RCE/exploit.py:65 oneoy/Gitlab-Exiftool-RCE/exploit.py:23 oneoy/Gitlab-Exiftool-RCE/exploit.py:65 ph-arm/CVE-2021-22204-Gitlab/exploit.py:23 ph-arm/CVE-2021-22204-Gitlab/exploit.py:67
POST /uploads/user
- Key headers
Accept: application/jsonAccept-Language: en-US,en;q=0.5Referer: {var}/projectsUpgrade-Insecure-Requests: 1X-Csrf-Token: {var}X-Requested-With: XMLHttpRequest- Body markers
name="file"inmultipart/form-data- PoC User-Agent
Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US);- Seen in
- 3 repos: CsEnox/Gitlab-Exiftool-RCE, oneoy/Gitlab-Exiftool-RCE, ph-arm/CVE-2021-22204-Gitlab
- Evidence
- CsEnox/Gitlab-Exiftool-RCE/exploit.py:84 oneoy/Gitlab-Exiftool-RCE/exploit.py:84 ph-arm/CVE-2021-22204-Gitlab/exploit.py:93
POST /users/sign_in
- Body markers
authenticity_token=user[login]=user[password]=user[remember_me]=0inapplication/x-www-form-urlencoded- Seen in
- 3 repos: CsEnox/Gitlab-Exiftool-RCE, oneoy/Gitlab-Exiftool-RCE, ph-arm/CVE-2021-22204-Gitlab
- Evidence
- CsEnox/Gitlab-Exiftool-RCE/exploit.py:33 oneoy/Gitlab-Exiftool-RCE/exploit.py:33 ph-arm/CVE-2021-22204-Gitlab/exploit.py:33
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/users/sign_in(?:[?#].*)?$
(?i)^/uploads/user(?:[?#].*)?$
(?i)^/users/sign_in(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-22204 ExifTool ExifTool exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/users/sign_in"; reference:url,poc.griffinguard.io/cve/CVE-2021-22204; classtype:web-application-attack; sid:9376123; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-22204 ExifTool ExifTool exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/uploads/user"; http.header; content:"Accept: application/json"; nocase; http.header; content:"Accept-Language: en-US,en|3b|q=0.5"; nocase; http.header_names; content:"Referer"; nocase; http.header; content:"Upgrade-Insecure-Requests: 1"; nocase; http.header_names; content:"X-Csrf-Token"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"name=|22|file|22|"; reference:url,poc.griffinguard.io/cve/CVE-2021-22204; classtype:web-application-attack; sid:9818549; rev:1;)
alert http any any -> $HOME_NET any (msg:"GG PoC-Monitor CVE-2021-22204 ExifTool ExifTool exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/users/sign_in"; http.request_body; content:"authenticity_token="; http.request_body; content:"user[login]="; http.request_body; content:"user[password]="; http.request_body; content:"user[remember_me]=0"; reference:url,poc.griffinguard.io/cve/CVE-2021-22204; classtype:web-application-attack; sid:9379093; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: ExifTool ExifTool exploit attempt (CVE-2021-22204)
id: gg-pocmon-cve-2021-22204-9376123
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22204. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22204
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/users/sign_in'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22204
title: ExifTool ExifTool exploit attempt (CVE-2021-22204)
id: gg-pocmon-cve-2021-22204-9818549
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22204. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22204
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/uploads/user'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22204
title: ExifTool ExifTool exploit attempt (CVE-2021-22204)
id: gg-pocmon-cve-2021-22204-9379093
status: experimental
description: Request pattern taken from public PoCs for CVE-2021-22204. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2021-22204
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/users/sign_in'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2021.22204