CVE-2021-22205
GitLab Community and Enterprise Editions Remote Code Execution Vulnerability
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.
Description as published by the source, in English.
Key facts
- Published
- 2021-04-23
- Last modified
- 2026-08-06
- Assigned by
- cve@gitlab.com
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
99.7 %
among the highest of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Not registered in the sources
Actively exploited
CISA added this vulnerability to the Known Exploited Vulnerabilities catalogue on 2021-11-03, with a remediation deadline of 2021-11-17 for US federal agencies.
Required action: Apply updates per vendor instructions.
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Gitlab | Gitlab | ≥ 11.9.0, < 13.8.8 | Affected |
| Gitlab | Gitlab | ≥ 13.10.0, < 13.10.3 | Affected |
| Gitlab | Gitlab | ≥ 13.9.0, < 13.9.6 | Affected |
Weakness type
-
CWE-20: Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
-
CWE-94: Improper Control of Generation of Code
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or b…
-
CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1027: Obfuscated Files or Information
- T1027.006: HTML Smuggling
- T1027.009: Embedded Payloads
- T1036.001: Invalid Code Signature
- T1539: Steal Web Session Cookie
- T1553.002: Code Signing
- T1564.009: Resource Forking
- T1574.006: Dynamic Linker Hijacking
- T1574.007: Path Interception by PATH Environment Variable
References
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Comman…
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/327121
- https://hackerone.com/reports/1154542
- http://packetstormsecurity.com/files/164768/GitLab-Unauthenticated-Remote-ExifTool-Comman…
- http://packetstormsecurity.com/files/164994/GitLab-13.10.2-Remote-Code-Execution.html
- https://gitlab.com/gitlab-org/cves/-/blob/master/2021/CVE-2021-22205.json
- https://gitlab.com/gitlab-org/gitlab/-/issues/327121
- https://hackerone.com/reports/1154542
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-22205
Related at Berigo
Articles
-
An unauthenticated request could read files off a GitLab server
Same product
2026-09-26
On 10 September 2026 GitLab patched a CVSS 10.0 flaw that, under certain conditions, let an unauthenticated user read files from the server. A day la…
-
A critical GitLab flaw can allow project deletion without login
Same product
2026-08-18
On 17 August 2026 GitLab shipped an out of band patch release. It fixes two vulnerabilities in the GraphQL layer, the more serious one scoring CVSS 9…
-
CISA adds four exploited vulnerabilities to the KEV catalog
Same product
2026-02-03
The flaws affect Sangoma FreePBX, GitLab and SolarWinds Web Help Desk, spanning from 2019 to one published a week ago.
-
GitLab closes ten flaws and urges self-managed installs to upgrade
Same product
2025-12-11
GitLab has released fixes for ten vulnerabilities in CE and EE, including an authentication bypass and several high-severity XSS flaws.
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.