CVE-2021-22205
GitLab Community and Enterprise Editions Remote Code Execution Vulnerability
- Published
- Apr 23, 2021
- Updated
- Aug 6, 2026
- Assigning CNA
- GitLab
- Evidence observed
- Nov 3, 2021
Primary CVSS
nvd · CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:HHigh · next 30 days
- Percentile
- 100.0%
- Model date
- Oct 19, 2026
EPSS is a statistical estimate, not a certainty or a measure of impact. Combine it with CVSS, KEV status, exposure and your environment.
CISA Known Exploited
This CVE appears in the CISA Known Exploited Vulnerabilities catalog.
Summary
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.
Sources
gitlab/CVE-2021-22205
GitLab Pre-Auth Remote Command Execution (CVE-2021-22205)
Vulhub vulnerability labsDeclared conditions
- lab image version: redis:5.0.9-alpine(gitlab/CVE-2021-22205/docker-compose.yml:services.redis.image)
- lab image version: postgres:12-alpine(gitlab/CVE-2021-22205/docker-compose.yml:services.postgresql.image)
- lab image version: vulhub/gitlab:13.10.1(gitlab/CVE-2021-22205/docker-compose.yml:services.gitlab.image)
modules/exploits/multi/http/gitlab_exif_rce.rb
Metasploit Framework modulesDeclared conditions
- platform: Linux,Unix($.exploit_multi/http/gitlab_exif_rce.platform)
- verification: check_declared($.exploit_multi/http/gitlab_exif_rce.check)
http/cves/2021/CVE-2021-22205.yaml
Nuclei TemplatesDeclared conditions
- network: http($.protocol_keys)
- verification: word($.matchers[*].type)
Responsible use
Use vulnerability information only on systems you own or are authorized to test. Kitploit links to public research metadata and does not store exploit code or malicious payloads.