Cyber Resilience

CVE-2025-5101

Gitlab ≤ 18.1.5

Published
27 August 2025
Modified
17 June 2026
CVSS Score v3.1 5.0
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:N/I:H/A:N
EPSS Score 0.0013 3th percentile
Risk Priority 35 floored blend · peak EPSS

Summary

CVE-2025-5101 is a medium-severity Code Injection (CWE-94) vulnerability in Gitlab Gitlab. Its CVSS base score is 5.0 (Medium).

Operationally, ranked at the 3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to SI-10 (Information Input Validation) and SI-7 (Software, Firmware, and Information Integrity) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

interface by taking advantage of ambiguity between branches and tags during repository imports.

CWE(s)

Related Threats

CVEs Like This One

CVE-2026-1606Same product: Gitlab Gitlab
CVE-2024-3958Same product: Gitlab Gitlab
CVE-2023-6051Same product: Gitlab Gitlab
CVE-2023-3401Same product: Gitlab Gitlab
CVE-2025-12669Same product: Gitlab Gitlab
CVE-2023-1178Same product: Gitlab Gitlab
CVE-2021-22205Same product: Gitlab Gitlab
CVE-2023-5226Same product: Gitlab Gitlab
CVE-2023-5512Same product: Gitlab Gitlab
CVE-2026-1516Same product: Gitlab Gitlab

Affected Assets

gitlab
gitlab
18.3.0 · ≤ 18.1.5 · ≤ 18.1.5 · 18.2.0 — 18.2.5

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)
  • SI-7 Software, Firmware, and Information Integrity
  • SI-10 Information Input Validation
  • SI-3 Malicious Code Protection
Detect
Catch it (NIST detect / respond)
  • SI-7 Software, Firmware, and Information Integrity
  • SI-3 Malicious Code Protection
Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V1.3.1

Mitigating Controls (NIST 800-53 r5) AI

preventdetect

Verifies integrity of imported repository content to detect branch/tag ambiguity that would otherwise allow malicious code to be presented as harmless.

prevent

Requires validation of all input data during repository imports, directly blocking exploitation of branch versus tag name ambiguity.

preventdetect

Scans or filters imported code for malicious payloads before it is accepted into the repository.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

PR.PS-06's SDLC practices directly target injection flaws via secure coding and testing (mostly), yet as a single broad outcome it leaves many code-generation specifics unaddressed (partial).

PR.DS-10 none match
prevents

PR.DS-10 protects runtime data confidentiality/integrity but has no bearing on neutralizing externally influenced input during code generation, so neither direction shows any preventive effect.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

prevents

Banning unapproved code samples and unauthenticated web services, combined with secure-coding standards and SAST, prevents the dynamic generation or inclusion of attacker-supplied code.

none

Controls that restrict unauthorized or malicious code from being introduced via external networks or removable media limit opportunities for an attacker to inject and execute arbitrary code.

References