Vulnerability · Published Aug 27, 2025 · Assigned by GitLab

CVE-2025-5101Improper Control of Generation of Code ('Code Injection') in GitLab

Medium 5.0

In plain English

A medium-severity code injection in GitLab from GitLab. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 2% of all known vulnerabilities).

Severity (CVSS 3.1)5.0Medium
Exploit odds (30 days)0.1%top 97.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 products (as reported)

VendorProductVersions
GitLab GitLab 0 – before 18.1.518.2 – before 18.2.518.3 – before 18.3.1

Weakness: CWE-94 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N

References