CVE-2021-22205KEV · OVERDUECWE-94code-injection

GitLab Community and Enterprise Editions Remote Code Execution Vulnerability

Critical · published April 23, 2021

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 10.0. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

1802
days past CISA
deadline
CVSS v3.1
10.0
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🚨 A crafty attacker can execute commands remotely just by uploading a malicious image! This vulnerability in GitLab CE/EE affects all versions from 11.9 onwards and it’s a serious one! 🔥 Think of it like a restaurant that doesn’t check the ingredients of a dish before serving it. If someone sneaks in a dangerous ingredient, it could ruin the entire meal for everyone! An attacker could take full control of your GitLab instance, altering data, exfiltrating sensitive information, or launching further attacks on your network — all thanks to a seemingly innocent image file. This is absolutely devastating for any organization relying on GitLab for their projects!

Put simply

Think of it like a restaurant that doesn’t check the ingredients of a dish before serving it. If someone sneaks in a dangerous ingredient, it could ruin the entire meal for everyone! This vulnerability arises because GitLab fails to properly validate image files sent to its file parser, allowing attackers to execute arbitrary commands on the server.

What to do

An attacker could take full control of your GitLab instance, altering data, exfiltrating sensitive information, or launching further attacks on your network — all thanks to a seemingly innocent image file. This is absolutely devastating for any organization relying on GitLab for their projects! Patch GitLab immediately to version 13.12.4, 14.0.2, or later. Additionally, audit your file upload functionality to ensure proper validation of image files to prevent similar exploits. Don't forget to check user permissions as well! You’ve got this! By taking action now, you can secure your GitLab instance and put on your security hero cape! 🦸

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.99731 · 100.0th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2021-04-23T22:15Z
KEV added
2021-11-03 · due 2021-11-17
Affected products (6)
ProductVersionsFixed in
gitlab/gitlab≥ 11.9.0, < 13.8.813.8.8
gitlab/gitlab≥ 11.9.0, < 13.8.813.8.8
gitlab/gitlab≥ 13.9.0, < 13.9.613.9.6
gitlab/gitlab≥ 13.9.0, < 13.9.613.9.6
gitlab/gitlab≥ 13.10.0, < 13.10.313.10.3
gitlab/gitlab≥ 13.10.0, < 13.10.313.10.3
References (11)
EPSS history
Timeline
  • 03 NOV 00:00Z
    Added to CISA KEV — remediate by Nov 17
    kev
  • 23 APR 17:39Z
    An issue has been discovered in GitLab CE/EE affecting all versions starting from 11.9
    cvelistv5