CVE-2021-22205GitLab Community and Enterprise Editions
Unauthenticated Remote Code Execution in GitLab CE/EE via Improper Image Valida…
Critical 10.0 KEVRansomware No auth neededHigh EPSS
Follow: this CVE · GitLab · GitLab Community and Enterprise Editions We alert you by email or Slack (account required).
- Priority
- 100
- CVSS 3.1
- 10.0
- EPSS
- 99.7% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Nov 3, 2021
- CISA deadline
- Nov 17, 2021
- Ransomware use
- Confirmed
- Published
- Apr 23, 2021
- Updated
- Aug 6, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
What happens
GitLab Community and Enterprise Editions (versions 11.9 to 13.10.2) fail to properly validate image files processed by ExifTool, allowing unauthenticated remote code execution. An attacker can upload a malformed image to execute arbitrary commands on the server. CISA confirmed this vulnerability as actively exploited.
Show the original NVD text
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.
Exploitation confirmed by CISA
GitHub Community and Enterprise Editions that utilize the ability to upload images through GitLab Workhorse are vulnerable to remote code execution. Workhorse passes image file extensions through ExifTool, which improperly validates the image files.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available · fixed versions: 13.8.8, 13.9.6, 13.10.3
Update GitLab to version 13.8.8, 13.9.6, 13.10.3 or later depending on your version branch.
- Apply the vendor's security update for Community and Enterprise Editions.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was November 17, 2021.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gitlab | gitlab | ≥ 11.9.0 < 13.8.8 |
| gitlab | gitlab | ≥ 11.9.0 < 13.8.8 |
| gitlab | gitlab | ≥ 13.9.0 < 13.9.6 |
| gitlab | gitlab | ≥ 13.9.0 < 13.9.6 |
| gitlab | gitlab | ≥ 13.10.0 < 13.10.3 |
| gitlab | gitlab | ≥ 13.10.0 < 13.10.3 |
Official sources
References
Links published by the sources. Open them with care.
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- gitlab.com Vendor Advisory
- gitlab.com Broken Link
- hackerone.com Permissions Required Third Party Advisory
- www.cisa.gov US Government Resource