Skip to content
OpenAdvisories
Medium · 5.0 CVE-2025-5101 EUVD-2025-25949GHSA-3c57-hg33-rhrp

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

Published Aug 27, 2025 · Updated Aug 27, 2025 · Assigned by GitLab

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

VendorProductAffectedFixed
GitLab GitLab < 18.1.5, 18.2 – < 18.2.5, 18.3 – < 18.3.1 18.1.5

Advisories 1

References