CVE-2021-22205An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files…
- 10.0CriticalCVSS base score
- 99.7%Exploitation in 30 daysEPSS · top 0.1% of all CVEs
- YesKnown exploitedin CISA's KEV since 3 Nov 2021
- 3Public exploitsMetasploit, Nuclei and Exploit-DB
Description
An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9. GitLab was not properly validating image files that were passed to a file parser which resulted in a remote command execution.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as GitLab Community and Enterprise Editions Remote Code Execution Vulnerability.
- Added
- 3 Nov 2021
- Fix due (US federal)
- 17 Nov 2021
- Used by ransomware
- Known
Apply updates per vendor instructions.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 3 Nov 2021.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module, a Nuclei template and an Exploit-DB entry for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits3
Metasploit modules1 module
- GitLab Unauthenticated Remote ExifTool Command Injection (Metasploit module) (opens in a new tab)
exploit/multi/http/gitlab_exif_rceRank excellentdisclosed 14 Apr 2021
Nuclei templates1 template
- GitLab CE/EE - Remote Code Execution (Nuclei template) (opens in a new tab)
http/cves/2021/CVE-2021-22205.yamlSeverity critical
Exploit-DB1 entry
- GitLab 13.10.2 - Remote Code Execution (RCE) (Unauthenticated) (Exploit-DB entry) (opens in a new tab)
EDB-ID 50532webapps, rubypublished 17 Nov 2021Not 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
- 6 months later
· 6 months later
Added to CISA KEV
Known exploited, also by ransomware
- 5 years later
· 5 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 | Critical10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | Critical10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 99.7% · top 0.1% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: yes · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 10.0.
Affected products
References
References6
- https://hackerone.com/reports/1154542 (opens in a new tab)x_refsource_MISCx_transferred
- https://gitlab.com/gitlab-org/gitlab/-/issues/327121 (opens in a new tab)x_refsource_MISCx_transferred
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json (opens in a new tab)x_refsource_CONFIRMx_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
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205 (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-9351 (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-22205)Record last updated .