{"id":"CVE-2024-3958","summary":"Improper Control of Generation of Code ('Code Injection') in GitLab","details":"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.","aliases":["BIT-gitlab-2024-3958"],"modified":"2026-04-10T05:14:34.275337Z","published":"2024-08-08T10:31:17.868Z","database_specific":{"cwe_ids":["CWE-94"],"cna_assigner":"GitLab","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3958.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/3xxx/CVE-2024-3958.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988"},{"type":"REPORT","url":"https://hackerone.com/reports/2437784"},{"type":"PACKAGE","url":"git://git@gitlab.com:gitlab-org/gitlab.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"0"},{"fixed":"0769166123e68c6e8fcf99c499c399b8812e9a82"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"17.0.6"}]}},{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"b7514f9c21c09a9ed2b258f5cfdd56c88f43864a"},{"fixed":"c11684311cb582565711ac4c83ba4764aa73c8f7"}],"database_specific":{"versions":[{"introduced":"17.1"},{"fixed":"17.1.4"}]}},{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"f1ebbe522423b514610449d0f6dc7a262f855314"},{"fixed":"49db6c4d6ac633e3d64f9c72a89c1af9f7c5d575"}],"database_specific":{"versions":[{"introduced":"17.2"},{"fixed":"17.2.2"}]}}],"versions":["11-10-0cfa69752d8-0d9531c80-ee","11-10-0cfa69752d8-74ffd66ae-ee","11-10-119f9509d50-6d7537235-ee","v1.2.0","v1.2.0pre","v1.2.1","v1.2.2","v17.0.0-ee","v17.0.0-rc42-ee","v17.0.1-rc42-ee","v17.1.0-ee","v17.2.0-ee","v2.3.0","v2.3.0pre","v2.3.1","v2.4.0","v2.4.0pre","v2.4.1","v2.5.0","v2.6.0","v2.6.0pre","v2.6.1","v2.6.2","v2.6.3","v2.7.0","v2.7.0pre","v2.8.0","v2.8.0pre","v2.8.1","v2.8.2","v2.9.0","v2.9.1","v3.0.0","v3.0.1","v3.0.2","v3.0.3","v3.1.0","v4.0.0","v4.0.0rc1","v4.0.0rc2","v5.0.0","v5.1.0","v5.2.0","v6.0.0-ee","v6.0.0-ee.beta","v6.0.0-ee.rc1","v6.1.0-ee","v6.3.0-ee","v6.3.1-ee","v6.4.0-ee","v6.5.0-ee","v6.6.0-ee","v6.7.0-ee","v6.7.0.rc1-ee","v6.8.0-ee","v7.0.0-ee","v7.1.0-ee","v7.1.0.rc1-ee","v7.2.0.rc1-ee","v7.2.0.rc2-ee","v7.2.0.rc3-ee","v7.2.0.rc4-ee","v7.2.0.rc5-ee","v7.3.0-ee","v7.3.0.rc1-ee"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-3958.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"}]}