Home

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.

PUBLISHED Reserved 2025-05-22 | Published 2025-08-27 | Updated 2025-08-27 | Assigner GitLab




MEDIUM: 5.0CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N

Problem types

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

Product status

Default status
unaffected

Any version before 18.1.5
affected

18.2 before 18.2.5
affected

18.3 before 18.3.1
affected

Credits

Thanks [st4nly0n](https://hackerone.com/st4nly0n) for reporting this vulnerability through our HackerOne bug bounty program finder

References

gitlab.com/gitlab-org/gitlab/-/issues/545165 (GitLab Issue #545165) issue-tracking permissions-required

hackerone.com/reports/3124199 (HackerOne Bug Bounty Report #3124199) technical-description exploit permissions-required

cve.org (CVE-2025-5101)

nvd.nist.gov (CVE-2025-5101)

Download JSON