cve.bz

CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution Vulnerability

10.0 criticalKEVExploitEPSS 99.7%

Critical (10.0) in GitLab Community and Enterprise Editions. In CISA KEV since 2021-11-03, with known ransomware use. EPSS 99.7% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

10.0 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
EPSS
99.7% (unchanged from 99.7% a week ago; 99.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA KEV
listed 2021-11-03, due 2021-11-17, known ransomware use
CISA's assessment (SSVC)
Exploitation: active · Automatable: yes · Technical impact: total, assessed 2021-10-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-94 Improper Control of Generation of Code (Code Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-22205 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-22205?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-22205?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-22205 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
gitlab:gitlabfrom 11.9.0 before 13.8.8
gitlab:gitlabfrom 13.9.0 before 13.9.6
gitlab:gitlabfrom 13.10.0 before 13.10.3

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu16.04:LTSgitlabno fix listedUBUNTU-CVE-2021-22205

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu.

Public exploits

GitHub PoC

Repositories on GitHub named after this CVE or listed for it by the PoC-in-GitHub index. For those marked Harbor Check: matches CVE, Flawharbor read the code and found it implements this CVE's exploitation technique: read, not run, and its dependencies only checked for warning signs, so a pointer and no guarantee. The rest are unverified: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it. How Harbor Check reads them, and what it found.

  • d4ytox/CVE-2021-22205 Harbor Check: matches CVE 1 star, Python, created
    Unauthenticated RCE in GitLab CE/EE from 11.9 (fixed in 13.8.8, 13.9.6, 13.10.3) via the bundled ExifTool (CVE-2021-22204). Pure-Python DjV…
  • CyberCTF/vulhub-gitlab-cve-2021-22205 Harbor Check: matches CVE 0 stars, Dockerfile, created
    Vulhub gitlab/CVE-2021-22205: GitLab CE 13.10.1 ExifTool unauthenticated RCE, run with Isoloom
  • ccordeiro/CVE-2021-22205 Harbor Check: matches CVE 0 stars, Python, created
    CVE-2021-22205& GitLab CE/EE RCE

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Nuclei template GitLab CE/EE - Remote Code Execution
  • Emerging Threats Open ET EXPLOIT GitLab Pre-Auth RCE Detected (CVE-2021-22205) sid 2044201
  • Emerging Threats Open ET EXPLOIT Possible Gitlab CE/EE Image Parser RCE Inbound (CVE-2021-22205) sid 2034455

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON