CVE-2021-22205
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.
Severity
CRITICAL
CVSS v3
10.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
99.731%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2021-11-03 · known ransomware use
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 1
Nuclei templates: 1
Exploit-DB: 1
Weakness
- CWE-94: Improper Control of Generation of Code
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | GitLab Community and Enterprise Editions Remote Code Execution Vulnerability |
|---|---|
| Vendor / product | GitLab / Community and Enterprise Editions |
| Date added | 2021-11-03 |
| Federal remediation due date | 2021-11-17 |
| Required action | Apply updates per vendor instructions. |
| Known ransomware campaign use | Known |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2021-10-26 |
Timeline
- 2021-04-23Published by the CNA17:39 UTC
- 2021-10-26CISA SSVC decision recorded186 days after publication
- 2021-11-03Added to the CISA KEV catalog194 days after publication
- 2021-11-17First Exploit-DB entry (EDB-ID 50532)208 days after publication
Exploit and advisory records
| Exploit-DB | Type | Platform | Published | EDB-verified |
|---|---|---|---|---|
| EDB-ID 50532 | webapps | ruby | 2021-11-17 | no |
Nuclei templates:
- CVE-2021-22205: GitLab CE/EE - Remote Code Execution
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| gitlab gitlab | from 13.10.0 before 13.10.3fixed in 13.10.3from 11.9.0 before 13.8.8fixed in 13.8.8from 13.9.0 before 13.9.6fixed in 13.9.6 | 13.10.313.8.813.9.6 |
References
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json
- 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
- https://gitlab.com/gitlab-org/gitlab/-/issues/327121
- https://hackerone.com/reports/1154542
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2021-22205'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2021-22205'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2021-22205'curl 'https://api.contrastcyber.com/cve_products/CVE-2021-22205'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2021-22205'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).