CVE-2025-5101
Improper Control of Generation of Code ('Code Injection') in 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.
INFO
Published Date :
Aug. 27, 2025, 8:15 p.m.
Last Modified :
Sept. 2, 2025, 5:47 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update GitLab to version 18.1.5 or later.
- Update GitLab to version 18.2.5 or later.
- Update GitLab to version 18.3.1 or later.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-5101
.
URL | Resource |
---|---|
https://gitlab.com/gitlab-org/gitlab/-/issues/545165 | Broken Link |
https://hackerone.com/reports/3124199 | Permissions Required |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-5101
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-5101
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-5101
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-5101
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Sep. 02, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* versions from (including) 18.2.0 up to (excluding) 18.2.5 *cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* versions up to (excluding) 18.1.5 *cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* versions from (including) 18.2.0 up to (excluding) 18.2.5 *cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:community:*:*:* *cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:enterprise:*:*:* *cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* versions up to (excluding) 18.1.5 Added Reference Type GitLab Inc.: https://gitlab.com/gitlab-org/gitlab/-/issues/545165 Types: Broken Link Added Reference Type GitLab Inc.: https://hackerone.com/reports/3124199 Types: Permissions Required -
New CVE Received by [email protected]
Aug. 27, 2025
Action Type Old Value New Value Added 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. Added CVSS V3.1 AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N Added CWE CWE-94 Added Reference https://gitlab.com/gitlab-org/gitlab/-/issues/545165 Added Reference https://hackerone.com/reports/3124199