{"id":"CVE-2023-3401","aliases":["BIT-gitlab-2023-3401","EUVD-2023-44068","GHSA-722v-49rj-hh57","UBUNTU-CVE-2023-3401"],"status":"published","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","description":"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.","severity":{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00583,"percentile":0.48198,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-94"],"published":"2023-08-02T08:30:48Z","modified":"2026-10-30T10:46:34Z","fixes":[{"ecosystem":"Bitnami","package":"gitlab","fixed_in":["16.0.8","16.1.3","16.2.2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Bitnami","package":"gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"16.0.8"},{"introduced":"16.1.0"},{"fixed":"16.1.3"},{"introduced":"16.2.0"},{"fixed":"16.2.2"}]}]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"]}],"products":[{"vendor":"gitlab","product":"gitlab"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/416252","tags":["issue-tracking","x_transferred","Broken Link","web","report"]},{"url":"https://hackerone.com/reports/2031845","tags":["technical-description","exploit","permissions-required","broken-link","x_transferred","Permissions Required","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-3401","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-722v-49rj-hh57"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/3xxx/CVE-2023-3401.json","tags":["advisory"]},{"url":"git://git@gitlab.com:gitlab-org/gitlab.git","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2023-3401","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-3401","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2023-3401","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","description":"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.","status":"published","published":"2023-08-02T08:30:48.302Z","modified":"2026-08-14T04:11:00.827Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"cna"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:35:24.707957Z"}],"euvd":[{"id":"EUVD-2023-44068","description":"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.","status":"published","published":"2023-08-02T08:30:48Z","modified":"2026-08-14T04:11:00Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T18:01:55.248337Z"}],"ghsa":[{"id":"GHSA-722v-49rj-hh57","title":"An issue has been discovered in GitLab affecting all versions before 16.0.8, all versions...","description":"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.","status":"published","published":"2023-08-02T09:32:23Z","modified":"2024-04-04T06:29:34Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:56:42.669106Z"}],"nvd":[{"id":"CVE-2023-3401","description":"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.","status":"published","published":"2023-08-02T09:15:14.023Z","modified":"2026-06-17T06:14:00.17Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T14:08:20.798312Z"}],"osv":[{"id":"CVE-2023-3401","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","description":"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.","status":"published","published":"2023-08-02T08:30:48.302Z","modified":"2026-10-30T10:46:34.578913913Z","cvss":[{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"cwes":["CWE-94"],"updated_at":"2026-11-02T15:44:32.116263Z"},{"id":"UBUNTU-CVE-2023-3401","description":"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.","status":"published","published":"2023-08-02T09:15:00Z","modified":"2025-10-24T05:01:24Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","level":"medium"},{"version":"3.1","score":4.8,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N","level":"medium"}],"updated_at":"2026-11-02T16:54:21.882004Z"},{"id":"BIT-gitlab-2023-3401","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","description":"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.","status":"published","published":"2024-03-06T11:05:16.794Z","modified":"2026-09-10T16:01:21.280604863Z","updated_at":"2026-11-02T15:28:30.405543Z"}]}}
