CVE-2021-22205

● Known-exploited CRITICAL ⚠ Exploit

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 c...

Affects 1 product across 1 vendor.

CVSS 3.110.0
EPSS99.7%
Percentile100th
PatchUnknown
Known-exploited since2021-11-03
CVSS Vector — Plain English Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
CWE Weakness Definitions
CWE-94: Code Injection

Attacker injects arbitrary code that is executed by the application process.

Related Attack Patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files
via CWE-94
CAPEC-77 Manipulating User-Controlled Variables
via CWE-94
CAPEC-242 Code Injection
via CWE-94

Mapping is CWE-to-CAPEC per MITRE CAPEC 3.9.

◆ AI Analysis — automated analysis, not human-reviewed

A critical vulnerability in GitLab CE/EE (CVE-2021-22205) allows remote attackers to execute arbitrary commands due to improper validation of image files. This affects all versions starting from 11.9 and has a CVSS score of 10.0, indicating severe impact on confidentiality, integrity, and availability. The vulnerability is actively exploited and has a public proof-of-concept, making it highly likely to be used in attacks against affected systems.

BSID: BS-2021-GLOBAL-249720-C • Model: Qwen/Qwen2.5-72B-Instruct-AWQ • Confidence: HIGH

Is this CVE in your environment?

BreachSpider monitors your ICS/OT environment for vulnerabilities like this one. No agents or network access required. Free to start.

Check My Environment →
Frequently Asked Questions
What is CVE-2021-22205?
A critical vulnerability in GitLab CE/EE (CVE-2021-22205) allows remote attackers to execute arbitrary commands due to improper validation of image files. This affects all versions starting from 11.9 and has a CVSS score of 10.0, indicating severe impact on confidentiality, integrity, and availability. The vulnerability is actively exploited and has a public proof-of-concept, making it highly likely to be used in attacks against affected systems.
What is the CVSS score for CVE-2021-22205?
CVE-2021-22205 has CVSS 10.0 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H. EPSS: 99.7%.
Is CVE-2021-22205 actively exploited?
Yes. CVE-2021-22205 is in the CISA known-exploited catalog (added 2021-11-03). Active exploitation confirmed. Immediate patching required.
How do I remediate CVE-2021-22205?
Priority: IMMEDIATE. Advisory: https://gitlab.com/gitlab-org/gitlab/-/issues/327121 PSIRT: [email protected]
What systems are affected by CVE-2021-22205?
CVE-2021-22205 affects Gitlab Gitlab.
What NERC-CIP standard applies to CVE-2021-22205?
NERC CIP CIP-007 CIP-007-R2: This vulnerability violates CIP-007-R2 by failing to protect the cyber assets from unauthorized access and manipulation, which could compromise the reliability of the bulk electric system.
What IEC 62443 requirement maps to CVE-2021-22205?
IEC 62443 SR 7.6: This vulnerability maps to SR 7.6 as it involves the protection of software from unauthorized modification, which is crucial for maintaining the security and integrity of industrial control systems.
Vulnerability Details
CVE IDCVE-2021-22205
BSIDBS-2021-GLOBAL-249720-C BreachSpider Global ID
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Published2021-04-23
Last Modified2026-08-06
ICS Relevance15%
Weakness (CWE)
Domains
CLOUD
SourceNVD
Official 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.

Source: NIST NVD / MITRE CVE Database

Attack Vector Analysis — CITED Relevance

The vulnerability arises from GitLab's failure to properly validate image files before passing them to a file parser. This can lead to remote command execution, allowing an attacker to gain full control over the affected system. The attack can be performed remotely without authentication, making it particularly dangerous in environments where GitLab is exposed to untrusted networks.

Exploitation Likelihood: CRITICAL

Affected Products
VendorProductAffected Versions
Gitlab Gitlab ≥ 11.9.0, < 13.8.8 ≥ 13.9.0, < 13.9.6 ≥ 13.10.0, < 13.10.3
Remediation
View Vendor Advisory →

Remediation Priority: IMMEDIATE

Vendor PSIRT: [email protected]
Threat Intelligence
● Threat Intelligence Validated: October 2026 | Threat Age: 2001 Days
CISA known-exploited● Active Exploitation Confirmed (added 2021-11-03)
Public Exploit⚠ Available — Reference
PoC CodeNot confirmed
● Compensating Controls — AI-drafted, review before deploying MEDIUM CONFIDENCE

Implement strict input validation and sanitization for all file uploads, especially images, to prevent malicious content from being processed. Additionally, ensure that the application runs with the least privilege necessary to minimize the impact of potential exploitation.

No reliable network detection signature exists for this vulnerability class — apply the compensating controls above and the vendor patch. A network rule is only drafted when a concrete on-the-wire signature can be grounded in the advisory.

NERC CIP: CIP-007 CIP-007-R2
This vulnerability violates CIP-007-R2 by failing to protect the cyber assets from unauthorized access and manipulation, which could compromise the reliability of the bulk electric system.
IEC 62443: SR 7.6
This vulnerability maps to SR 7.6 as it involves the protection of software from unauthorized modification, which is crucial for maintaining the security and integrity of industrial control systems.

Drafted by AI and not validated for your network. Test in an isolated environment before any production deployment. Compensating control only - does not replace vendor patch.

AI Enrichment Record — provenance & audit hash
ModelQwen/Qwen2.5-72B-Instruct-AWQ
ConfidenceHIGH
Enriched At2026-05-24
SHA-512 Audit Hash106f18df8e6f80acdd7b2f2eacad9203be54d02abf92ad983650dcce1ecebc293a0d607e0bbc2e180b1aada839fa2697c4d2eb4059a53246b45cd0aded1a7af9
Related CVEs affecting Gitlab
CVE-2026-85706 10.0 GitLab has remediated an issue in GitLab CE/EE affecting all versions from 18... CVE-2019-9174 10.0 An issue was discovered in GitLab Community and Enterprise Edition before 11.... CVE-2020-13300 10.0 GitLab CE/EE version 13.3 prior to 13.3.4 was vulnerable to an OAuth authoriz... CVE-2018-18843 10.0 The Kubernetes integration in GitLab Enterprise Edition 11.x before 11.2.8, 1... CVE-2022-2884 9.9 A vulnerability in GitLab CE/EE affecting all versions from 11.3.4 prior to 1...
View all Gitlab CVEs →

This Vulnerability Is Being Actively Exploited

CVE-2021-22205 is on the CISA known-exploited list - confirmed active exploitation in the wild. BreachSpider flags known-exploited CVEs on the ICS assets they affect, with known-exploited status synced daily from CISA.

Create a free account →