CVE-2022-2185
GitLab vulnerability analysis and mitigation

Overview

A critical vulnerability (CVE-2022-2185) was discovered in GitLab affecting all versions from 14.0 prior to 14.10.5, 15.0 prior to 15.0.4, and 15.1 prior to 15.1.1. The vulnerability was discovered on June 23, 2022, and publicly disclosed on June 30, 2022. This vulnerability allowed an authenticated user with project import permissions to execute remote code on the GitLab server through maliciously crafted project imports (GitLab Release).

Technical details

The vulnerability exists in the DecompressedArchiveSizeValidator component of GitLab, which is used to check the size of an archive before extraction. The validator passes a string directly to Open3.popen3 that can contain attacker-controlled data, allowing for command injection. The vulnerability received a CVSS v3.1 score of 9.9 (Critical) with the following vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H (GitLab Release, Censys Report).

Impact

If successfully exploited, the vulnerability allows an attacker to execute arbitrary commands on the GitLab server with the permissions of the GitLab service account. This could lead to complete system compromise, data theft, or service disruption. The vulnerability requires authentication but could be particularly dangerous in environments where new account creation is enabled (Censys Report).

Mitigation and workarounds

GitLab has released patches for the affected versions: users should upgrade to GitLab 14.10.5, 15.0.4, or 15.1.1. As a temporary workaround, administrators can disable the new account creation feature under the administration UI -> Settings -> General -> 'Sign-up restrictions' and unselect the 'Sign-up enabled' option. GitLab.com was immediately patched when the vulnerability was discovered (GitLab Release, Censys Report).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2024-9183MEDIUM6.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management