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

Published Aug 27, 2025
·
Updated

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.

Other sources

GitLab has remediated an issue 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.

GitLab

Affected Software

8 affected componentsFixes available
GitLab GitLab CE/EE<18.1.5, <undefined, <undefined
GitLab GitLab<18.1.5
GitLab GitLab<18.1.5
GitLab GitLab>=18.2.0<18.2.5
GitLab GitLab>=18.2.0<18.2.5
GitLab GitLab=18.3.0
GitLab GitLab=18.3.0
GitLab GitLab>=18.2<18.2.5, >=18.3<18.3.1
18.2.518.3.1

Remediation

Information

Upgrade to versions 18.1.5, 18.2.5, 18.3.1 or above.

Event History

Aug 27, 2025
CVE Published
via MITRE·07:33 PM
Data Sourced
via MITRE·07:33 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·08:15 PM
DescriptionSeverityWeaknessAffected Software
Apr 22, 2026
Data Sourced
via GitLab·08:55 AM
DescriptionSeverityAffected Software

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-5101?

CVE-2025-5101 has been rated as a moderate severity vulnerability due to its potential to allow authenticated attackers to execute harmful code.

2

How do I fix CVE-2025-5101?

To fix CVE-2025-5101, upgrade your GitLab installation to version 18.1.5 or later, 18.2.5 or later, or 18.3.1 or later.

3

Who is affected by CVE-2025-5101?

CVE-2025-5101 affects all versions of GitLab CE/EE before 18.1.5, 18.2 before 18.2.5, and 18.3 before 18.3.1.

4

What types of attacks are possible with CVE-2025-5101?

CVE-2025-5101 could allow authenticated attackers to distribute malicious code that may appear harmless through the web interface.

5

How can I determine if I am running a vulnerable version related to CVE-2025-5101?

Check your GitLab version against the versions listed for CVE-2025-5101 to determine if you are vulnerable.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203