CVE-2025-5101
GitLab vulnerability analysis and mitigation

Overview

A code injection vulnerability (CVE-2025-5101) was discovered in GitLab CE/EE affecting all versions before 18.1.5, 18.2 before 18.2.5, and 18.3 before 18.3.1. The vulnerability was disclosed on August 27, 2025, and affects both Community Edition (CE) and Enterprise Edition (EE) versions of GitLab (GitLab Release, NVD).

Technical details

The vulnerability allows authenticated attackers to exploit ambiguity between branches and tags during repository imports, potentially enabling the distribution of malicious code that appears harmless in the web interface. The vulnerability has been assigned a CVSS v3.1 base score of 5.0 (Medium) with the vector string CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N. The weakness has been categorized as CWE-94 (Improper Control of Generation of Code) (NVD).

Impact

The vulnerability could allow authenticated attackers to inject and distribute malicious code through GitLab repositories. The code could appear benign in the web interface while containing harmful content, potentially leading to code execution or other security implications for users interacting with the affected repositories (GitLab Release).

Mitigation and workarounds

GitLab has released patches in versions 18.1.5, 18.2.5, and 18.3.1 to address this vulnerability. Organizations running affected versions are strongly recommended to upgrade to the latest patched version immediately. GitLab.com is already running the patched version, and GitLab Dedicated customers do not need to take any action (GitLab Release).

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-4225HIGH7.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 27, 2025
CVE-2025-3601MEDIUM6.5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 27, 2025
CVE-2025-8770MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesAug 13, 2025
CVE-2025-2246MEDIUM5.3
  • GitLabGitLab
  • gitlab
NoYesAug 27, 2025
CVE-2025-5101MEDIUM5
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesAug 27, 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