What’s Vulnerable › Vulnerabilities
CVE-2023-5512: Improper Control of Generation of Code ('Code Injection') in GitLab
- Severity: medium (CVSS 5.7 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-12-15 · updated 2026-06-17
- Weakness: CWE-94
Description
An issue has been discovered in GitLab CE/EE affecting all versions from 16.3 before 16.4.4, all versions starting from 16.5 before 16.5.4, all versions starting from 16.6 before 16.6.2. File integrity may be compromised when specific HTML encoding is used for file names leading for incorrect representation in the UI.
Affected products
- GitLab: from 16.3.0 before 16.4.4; from 16.5.0 before 16.5.4; from 16.6.0 before 16.6.2 — fixed in 16.4.4, 16.5.4, 16.6.2
How to fix
Upgrade to a fixed version: GitLab 16.4.4, 16.5.4, 16.6.2. Check the vendor advisory for mitigations.
References
- https://gitlab.com/gitlab-org/gitlab/-/issues/427827
- https://hackerone.com/reports/2194607
- https://gitlab.com/gitlab-org/gitlab/-/issues/427827
- https://hackerone.com/reports/2194607
Get alerted when CVE-2023-5512 or the next vulnerability affects your stack