CVE-2021-22205
GitLab Community and Enterprise Editions Remote Code Execution Vulnerability
- Actively exploited
- Used by ransomware
- Critical · 10.0 of 10
- Exploited since
- 3 Nov 2021 added to the CISA list
- Chance of attacks
- 100% in the next 30 days (FIRST EPSS)
- Fix deadline
- 17 Nov 2021 for US federal agencies
- Published
- 23 Apr 2021 in the NVD
What this means
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.
CISA
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.
NIST National Vulnerability Database
What to do
Apply updates per vendor instructions.
CISA's required action. If you use the product, install the vendor's update as soon as possible.
Affected
- GitLab GitLab
Official sources
- nvd.nist.gov/vuln/detail/CVE-2021-22205
- gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json vendor advisory
- gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json vendor advisory
- packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Inject...
- packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
- gitlab.com/gitlab-org/gitlab/-/issues/327121
- hackerone.com/reports/1154542
- packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Command-Inject...
- packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
Data from the NIST National Vulnerability Database, the CISA Known Exploited Vulnerabilities list, FIRST EPSS and ENISA, checked 18 Nov 2026. CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H.