CVE-2023-5512 json
Improper Control of Generation of Code ('Code Injection') in GitLab
published 2023-12-15 2 y ago modified 2026-09-10 59 d ago also BIT-gitlab-2023-5512 , EUVD-2023-57825
- cvss
- 4.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 42%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- bitnami gitlab 16.4.4, 16.5.4, 16.6.2
- GitLab GitLab 16.4.4, 16.5.4, 16.6.2
Exploit prediction
0.49% chance of exploitation in the next 30 days, higher than 42% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- hackerone.com https://hackerone.com/reports/2194607 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
| NVD | 3.1 | 5.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N |
| OSV | 3.1 | 4.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| bitnami | gitlab | >=16.3.0, <16.4.4 >=16.5.0, <16.5.4 >=16.6.0, <16.6.2 |
16.4.4 16.5.4 16.6.2 |
Affected products
- GitLab GitLab
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
- Technology feeds
References
-
hackerone.com
/reports/2194607
technical-description, exploit, permissions-required, web
-
gitlab.com
/gitlab-org/gitlab/-/issues/427827
issue-tracking, permissions-required, broken-link, web
-
nvd.nist.gov
/vuln/detail/CVE-2023-5512
web
Sources
- CVE List CVE-2023-5512
- NVD CVE-2023-5512
- OSV BIT-gitlab-2023-5512
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Enhance with deb and rpm package type records.