PoC Monitor
← All CVEs
CVE-2021-22204published 23 Apr 2021 17:22 UTCData: JSON · API

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

First public PoC 17 daysafter publication · 11 May 2021 · Metasploit
Public PoCs2017 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS6.8medium · scored by CNA · CWE-94
CISA KEV 17 Nov 2021208 days after publication

Timeline

Days relative to CVE publication
t=0+30+60+90+120+150+180CVE published23 Apr 2021 · t = 0First public PoC11 May 2021 · t+17dAdded to CISA KEV17 Nov 2021 · t+208d

First 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
RepositoryCreatedFound by usStarsAssessment
convisolabs/CVE-2021-22204-exiftool 11 May 2021 +18 d backfilled 96 PoC
Flags · score 30
  • owner account created less than 7 days before the repo

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
RepositoryCreatedStarsAssessment
sameep0/CVE-2021-22204 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 4
RepositoryCreatedFound by usStarsAssessment
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
RepositoryCreatedStarsAssessment
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
RepositoryCreatedStarsAssessment
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
  • owner account created less than 30 days before the repo

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.

PoC characteristics

What to hunt for in your logs · from 17 PoC repos

POST /uploads/user

Key headers
Accept: application/json Accept-Language: en-US,en;q=0.5 Referer: {var}/projects Upgrade-Insecure-Requests: 1 X-Csrf-Token: {var} X-Requested-With: XMLHttpRequest
Body markers
name="file" in multipart/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]=0 in application/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.

GET /users/sign_in
(?i)^/users/sign_in(?:[?#].*)?$
POST /uploads/user
(?i)^/uploads/user(?:[?#].*)?$
POST /users/sign_in
(?i)^/users/sign_in(?:[?#].*)?$

Suricata

Template generated from PoC characteristics. Review before deploying.

GET /users/sign_in
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;)
POST /uploads/user
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;)
POST /users/sign_in
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.

GET /users/sign_in
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
POST /uploads/user
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
POST /users/sign_in
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