{"id":"CVE-2023-3401","aliases":["CVE-2023-3401","BIT-GITLAB-2023-3401"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","summary":"An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. The main branch of a repository with a specially designed name allows an attacker to create repositories with malicious code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. The main branch of a repository with a specially designed name allows an attacker to create repositories with malicious code.","source":"cvelist"}],"published":"2023-08-02T08:30:48.302Z","modified":"2026-09-10T16:01:21.280Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","score":4.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"16.0.8","status":"affected"},{"type":"semver","introduced":"16.1.0","fixed":"16.1.3","status":"affected"},{"type":"semver","introduced":"16.2.0","fixed":"16.2.2","status":"affected"}],"vendor":"GitLab","product":"GitLab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*","repo":"git://git@gitlab.com:gitlab-org/gitlab.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"16.0.8"},{"status":"affected","introduced":"16.1","fixed":"16.1.3"},{"status":"affected","introduced":"16.2","fixed":"16.2.2"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"16.0.8"},{"type":"semver","introduced":"16.1.0","status":"affected","fixed":"16.1.3"},{"type":"semver","introduced":"16.2.0","status":"affected","fixed":"16.2.2"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/416252","tags":["broken-link","issue-tracking","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://hackerone.com/reports/2031845","tags":["broken-link","exploit","permissions-required","technical-description","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-3401","tags":["web"],"sources":["bitnami"]}],"credits":["Thanks [st4nly0n](https://hackerone.com/st4nly0n) for reporting this vulnerability through our HackerOne bug bounty program"],"assigner":"GitLab","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-07-24T13:55:12.534Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-3401","url":"https://www.cve.org/CVERecord?id=CVE-2023-3401","licence":"CVE Terms of Use","modified":"2026-08-14T04:11:00.827Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-3401","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-3401","licence":"Public domain","modified":"2026-06-17T06:14:00.170Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2023-3401","url":"https://osv.dev/vulnerability/BIT-GITLAB-2023-3401","licence":"Apache-2.0","modified":"2026-09-10T16:01:21.280Z"}],"updatedAt":"2026-11-25T22:58:26.657Z","epss":{"score":0.00583,"percentile":0.4923,"date":"2026-12-01T12:00:22.000Z"}}