{"id":"CVE-2024-3958","aliases":["CVE-2024-3958","BIT-GITLAB-2024-3958"],"related":[],"kind":"vulnerability","state":"published","title":"Improper Control of Generation of Code ('Code Injection') in GitLab","summary":"An issue has been discovered in GitLab CE/EE affecting all versions before 17.0.6, 17.1 prior to 17.1.4, and 17.2 prior to 17.2.2. An issue was found that allows someone  to abuse a discrepancy between the Web application display and the git command line interface to social engineer victims into cloning non-trusted code.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue has been discovered in GitLab CE/EE affecting all versions before 17.0.6, 17.1 prior to 17.1.4, and 17.2 prior to 17.2.2. An issue was found that allows someone  to abuse a discrepancy between the Web application display and the git command line interface to social engineer victims into cloning non-trusted code.","source":"cvelist"},{"lang":"es","text":"Se descubrió un problema en GitLab CE/EE que afecta a todas las versiones anteriores a 17.0.6, 17.1 anterior a 17.1.4 y 17.2 anterior a 17.2.2. Se encontró un problema que permite a alguien abusar de una discrepancia entre la visualización de la aplicación web y la interfaz de línea de comando de git para realizar ingeniería social a las víctimas para clonar código no confiable.","source":"nvd"}],"published":"2024-08-08T10:31:17.868Z","modified":"2026-09-10T16:01:37.352Z","severity":{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitLab","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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":"17.0.6","status":"affected"},{"type":"semver","introduced":"17.1","fixed":"17.1.4","status":"affected"},{"type":"semver","introduced":"17.2","fixed":"17.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":"17.0.6"},{"status":"affected","fixed":"17.0.6"},{"status":"affected","introduced":"17.1.0","fixed":"17.1.4"},{"status":"affected","introduced":"17.1.0","fixed":"17.1.4"},{"status":"affected","introduced":"17.2.0","fixed":"17.2.2"},{"status":"affected","introduced":"17.2.0","fixed":"17.2.2"}],"vendor":"gitlab","product":"gitlab","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"17.0.6"},{"type":"semver","introduced":"17.1.0","status":"affected","fixed":"17.1.4"},{"type":"semver","introduced":"17.2.0","status":"affected","fixed":"17.2.2"}],"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","source":"bitnami"}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988","tags":["broken-link","issue-tracking","permissions-required","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://hackerone.com/reports/2437784","tags":["exploit","permissions-required","technical-description","web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958","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":"none","automatable":"no","technicalImpact":"total","date":"2024-08-08T14:16:46.296Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-3958","url":"https://www.cve.org/CVERecord?id=CVE-2024-3958","licence":"CVE Terms of Use","modified":"2024-09-17T15:31:43.886Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-3958","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958","licence":"Public domain","modified":"2026-06-17T07:45:33.113Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-GITLAB-2024-3958","url":"https://osv.dev/vulnerability/BIT-GITLAB-2024-3958","licence":"Apache-2.0","modified":"2026-09-10T16:01:37.352Z"}],"updatedAt":"2026-11-25T22:58:44.142Z","epss":{"score":0.00322,"percentile":0.27249,"date":"2026-12-01T12:00:22.000Z"}}