What’s Vulnerable › Vulnerabilities
CVE-2023-5825: Loop with Unreachable Exit Condition ('Infinite Loop') in GitLab
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-11-06 · updated 2026-06-17
- Weakness: CWE-835
Description
An issue has been discovered in GitLab CE/EE affecting all versions starting from 16.2 before 16.3.6, all versions starting from 16.4 before 16.4.2, all versions starting from 16.5 before 16.5.1. A low-privileged attacker can point a CI/CD Component to an incorrect path and cause the server to exhaust all available memory through an infinite loop and cause Denial of Service.
Affected products
- GitLab: from 16.2.0 before 16.3.6; from 16.4.0 before 16.4.2; 16.5.0 — fixed in 16.3.6, 16.4.2
How to fix
Upgrade to a fixed version: GitLab 16.3.6, 16.4.2. Check the vendor advisory for mitigations.
References
- https://gitlab.com/gitlab-org/gitlab/-/issues/428984
- https://hackerone.com/reports/2218566
- https://gitlab.com/gitlab-org/gitlab/-/issues/428984
- https://hackerone.com/reports/2218566
Get alerted when CVE-2023-5825 or the next vulnerability affects your stack