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

- Severity: Medium 5.7 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/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.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-15T16:02:50.265Z
- Modified: 2026-09-10T16:01:36.775Z
- Also known as: BIT-GITLAB-2023-6051
- Weaknesses: CWE-94
- Assigned by: GitLab

## Description

An issue has been discovered in GitLab CE/EE affecting all versions 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 source code or installation packages are pulled from a specific tag.

(As written by CVE List.)

## Affected

- GitLab GitLab: before 16.4.4; from 16.5 before 16.5.4; from 16.6 before 16.6.2; from 16.5.0 before 16.5.4; from 16.6.0 before 16.6.2
- gitlab (Bitnami): 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 5.7 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

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

## Sources

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

---

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