Read the docs
TI-2025-04573 Aliases CVE-2025-5101GHSA-3c57-hg33-rhrp

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

Priority LOW 22CWE-94Published · Updated

Key facts

Attack vector
Local
Privileges required
High
User interaction
Required
Attack complexity
High
Impact type
Code execution
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00128 2nd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by the CNA
Fix Fixed GitLab (GitLab): 18.1.5, 18.2.5, 18.3.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
GitLabGitLabbefore 18.1.5; 18.2 to before 18.2.5; 18.3 to before 18.3.118.1.5, 18.2.5, 18.3.1Patch availableCNA
  • GitLab VendorGitLab Affected before 18.1.5; 18.2 to before 18.2.5; 18.3 to before 18.3.1 Fixed in 18.1.5, 18.2.5, 18.3.1 Patch available CNA

CPE configurations NVD · 6

CPEVersionsRoleVendor
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*before 18.1.5VulnerableGitLab
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*before 18.1.5VulnerableGitLab
cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*18.2.0 to before 18.2.5VulnerableGitLab
cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*18.2.0 to before 18.2.5VulnerableGitLab
cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:community:*:*:*18.3.0VulnerableGitLab
cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:enterprise:*:*:*18.3.0VulnerableGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* Versions before 18.1.5 Vulnerable ·GitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* Versions before 18.1.5 Vulnerable ·GitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:* Versions 18.2.0 to before 18.2.5 Vulnerable ·GitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:* Versions 18.2.0 to before 18.2.5 Vulnerable ·GitLab
  • cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:community:*:*:* Versions 18.3.0 Vulnerable ·GitLab
  • cpe:2.3:a:gitlab:gitlab:18.3.0:*:*:*:enterprise:*:*:* Versions 18.3.0 Vulnerable ·GitLab

Remediation

  • Fix · CNA GitLab (GitLab) Fixed in 18.1.5, 18.2.5, 18.3.1

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    GitLab 18.1.5, 18.2.5, 18.3.1

    4 records Highest priority Priority LOW 4 LOW

    Other records, highest priority first

    • TI-2025-03758 Allocation of Resources Without Limits or Throttling in GitLabPriority LOW 39
    • TI-2025-01971 Missing Authorization in GitLabPriority LOW 32
    • TI-2025-03168 Allocation of Resources Without Limits or Throttling in GitLabPriority LOW 29

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-5101
  2. 2026-10-03 Alias added: GHSA-3c57-hg33-rhrp

References

  • TI-2026-71508 Integer overflow in GitLab allows code execution on the server KEVCVSS 3.1CRITICAL 10.0
  • TI-2026-58817 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab KEVCVSS 3.1CRITICAL 10.0
  • TI-2023-06425 Weak Password Recovery Mechanism for Forgotten Password in GitLab KEVCVSS 3.1CRITICAL 10.0
  • TI-2021-05191 Code injection in GitLab KEVCVSS 3.1CRITICAL 10.0
  • TI-2021-05161 Server-side request forgery in GitLab KEVCVSS 3.1CRITICAL 9.8
  • TI-2022-02763 Injection in GitLab CVSS 3.1CRITICAL 9.9
See all 1506 →

Sources