CVE-2025-5101

published 27 Aug 2025 · updated 27 Aug 2025

Improper Control of Generation of Code ('Code Injection') in GitLab

6.0MediumCVSS 5.0EPSS 0%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in GitLab 18.1.5, GitLab 18.2.5 and GitLab 18.3.1.

An issue has been 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 that under certain conditions could have allowed an authenticated attacker to distribute malicious code that appears harmless in the web interface by taking advantage of ambiguity between branches and tags during repository imports.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitLabGitLab<18.1.5, >=18.2 <18.2.5, >=18.3 <18.3.118.1.5, 18.2.5, 18.3.1

Exploit evidence

2 public sources

Vendor advisories

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in GitLab, strongest first

10.0CriticalPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-5101 severity on Zeptric[![CVE-2025-5101](https://zeptric.io/badge/cve/CVE-2025-5101.svg)](https://zeptric.io/cve/CVE-2025-5101)