{"id":"CVE-2023-5226","aliases":["CVE-2023-5226","BIT-GITLAB-2023-5226"],"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.4.3, all versions starting from 16.5 before 16.5.3, all versions starting from 16.6 before 16.6.1. Under certain circumstances, a malicious actor bypass prohibited branch checks using a specially crafted branch name to manipulate repository content in the UI.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue has been discovered in GitLab affecting all versions before 16.4.3, all versions starting from 16.5 before 16.5.3, all versions starting from 16.6 before 16.6.1. Under certain circumstances, a malicious actor bypass prohibited branch checks using a specially crafted branch name to manipulate repository content in the UI.","source":"cvelist"},{"lang":"es","text":"Se ha descubierto un problema en GitLab que afecta a todas las versiones anteriores a 16.4.3, todas las versiones a partir de 16.5 anteriores a 16.5.3, todas las versiones a partir de 16.6 anteriores a 16.6.1. En determinadas circunstancias, un actor malintencionado elude las comprobaciones de sucursales prohibidas utilizando un nombre de sucursal especialmente manipulado para manipular el contenido del repositorio en la interfaz de usuario.","source":"nvd"}],"published":"2023-12-01T07:01:43.131Z","modified":"2026-09-08T08:47:43.535Z","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:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"16.4.3","status":"affected"},{"type":"semver","introduced":"16.5","fixed":"16.5.3","status":"affected"},{"type":"semver","introduced":"16.6","fixed":"16.6.1","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.4.3"},{"status":"affected","fixed":"16.4.3"},{"status":"affected","introduced":"16.5.0","fixed":"16.5.3"},{"status":"affected","introduced":"16.5.0","fixed":"16.5.3"},{"status":"affected","version":"16.6.0"},{"status":"affected","version":"16.6.0"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"16.4.3"},{"type":"semver","introduced":"16.5.0","status":"affected","fixed":"16.5.3"},{"type":"semver","introduced":"16.6.0","status":"affected","fixed":"16.6.1"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/426400","tags":["advisory","broken-link","issue-tracking","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://hackerone.com/reports/2173053","tags":["advisory","broken-link","exploit","permissions-required","technical-description","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5226","tags":["web"],"sources":["bitnami"]}],"credits":["Thanks [shells3c](https://hackerone.com/shells3c) for reporting this vulnerability through our HackerOne bug bounty program"],"assigner":"GitLab","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-5226","url":"https://www.cve.org/CVERecord?id=CVE-2023-5226","licence":"CVE Terms of Use","modified":"2026-08-14T04:13:26.916Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-5226","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-5226","licence":"Public domain","modified":"2026-06-17T06:48:07.420Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2023-5226","url":"https://osv.dev/vulnerability/BIT-GITLAB-2023-5226","licence":"Apache-2.0","modified":"2026-09-08T08:47:43.535Z"}],"updatedAt":"2026-11-25T22:58:30.858Z","epss":{"score":0.00647,"percentile":0.45697,"date":"2026-11-30T12:00:22.000Z"}}