# CVE-2023-5512: Improper Control of Generation of Code ('Code Injection') in GitLab

- Severity: Medium 4.8 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-15T16:03:00.260Z
- Modified: 2026-09-10T16:01:36.801Z
- Also known as: BIT-GITLAB-2023-5512
- Weaknesses: CWE-94
- Assigned by: GitLab

## 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.

(As written by CVE List.)

## Affected

- GitLab GitLab: from 16.3 before 16.4.4; from 16.5 before 16.5.4; from 16.6 before 16.6.2; from 16.3.0 before 16.4.4; from 16.5.0 before 16.5.4; from 16.6.0 before 16.6.2
- gitlab (Bitnami): from 16.3.0 before 16.4.4; from 16.5.0 before 16.5.4; from 16.6.0 before 16.6.2

## Every score

- GitLab: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://hackerone.com/reports/2194607> (exploit, permissions-required, technical-description, web)
- <https://gitlab.com/gitlab-org/gitlab/-/issues/427827> (broken-link, issue-tracking, permissions-required, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-5512> (web)

## Sources

- CVE List: [CVE-2023-5512](https://www.cve.org/CVERecord?id=CVE-2023-5512), CVE Terms of Use, modified 2026-04-28
- NVD: [CVE-2023-5512](https://nvd.nist.gov/vuln/detail/CVE-2023-5512), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2023-5512](https://osv.dev/vulnerability/BIT-GITLAB-2023-5512), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2023-5512 · Whole record: https://cve.day/CVE-2023-5512.json · Rebuilt by cve.day 2026-11-25T22:58:31.446Z
