CVE-2023-5512

published 15 Dec 2023 · updated 28 Apr 2026

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

5.8MediumCVSS 4.8EPSS 0%2 public exploits

2 public exploits exists; no exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in GitLab 16.4.4, GitLab 16.5.4 and GitLab 16.6.2.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitLabGitLab>=16.3 <16.4.4, >=16.5 <16.5.4, >=16.6 <16.6.216.4.4, 16.5.4, 16.6.2

Exploit evidence

2 public sources

Vendor advisories

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in GitLab, strongest first

10.0CriticalPublic exploit

Embed

A live severity badge for an advisory, README or ticket

CVE-2023-5512 severity on Zeptric[![CVE-2023-5512](https://zeptric.io/badge/cve/CVE-2023-5512.svg)](https://zeptric.io/cve/CVE-2023-5512)