CVE-2025-5101

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

State
Published
Severity
5.0 Medium
Published
Aug 27, 2025
Updated
Aug 27, 2025
Reserved
May 22, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.0 MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:NGitLab

Weaknesses

  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
GitLabGitLab
  • before 18.1.5Affected
  • 18.2 to before 18.2.5Affected
  • 18.3 to before 18.3.1Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.