{"id":"CVE-2024-3958","aliases":["BIT-gitlab-2024-3958","UBUNTU-CVE-2024-3958"],"summary":"Improper Control of Generation of Code ('Code Injection') in GitLab","published_at":"2024-08-08T10:31:17.868Z","modified_at":"2026-09-10T16:01:37.352753Z","products":[{"slug":"gitlab","name":"GitLab CE/EE","category":"gitops-cicd"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","attack_path":"internet_unauthenticated","user_interaction":true,"malicious":false,"vendor_ratings":[{"source":"Ubuntu","rating":"medium"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.003220000071451068,"percentile":0.25905001163482666,"date":"2026-11-20T00:00:00Z"},"priority":8,"record_count":5,"vendors":["Ubuntu","BSI","Bitnami"],"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.","affected_stack":[{"ecosystem":"CVE","package":"GitLab/GitLab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.1.4","17.2.2"],"provider":"cvelistv5","source":"CVE-2024-3958","relation":"self"},{"ecosystem":"NVD","package":"gitlab:gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1.0"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1.0"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0"},{"fixed":"17.2.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.0.6","17.1.4","17.1.4","17.2.2","17.2.2"],"provider":"nvd","source":"CVE-2024-3958","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"17.0.6"},{"introduced":"17.1.0"},{"fixed":"17.1.4"},{"introduced":"17.2.0"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.1.4","17.2.2"],"provider":"osv","source":"BIT-gitlab-2024-3958","relation":"self"},{"ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","purl":"pkg:deb/ubuntu/gitlab@8.5.8+dfsg-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"],"provider":"osv","source":"UBUNTU-CVE-2024-3958","relation":"self"}],"product_status":[],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1787","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1787","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-08-07T22:00:00Z","modified_at":"2024-08-08T22:00:00Z","summary":"GitLab: Mehrere Schwachstellen","details":"Ein entfernter Angreifer kann mehrere Schwachstellen in GitLab ausnutzen, um seine Privilegien zu erweitern, einen Denial-of-Service-Zustand zu verursachen, Sicherheitsmaßnahmen zu umgehen, Daten zu manipulieren, vertrauliche Informationen offenzulegen oder einen Cross-Site-Scripting-Angriff durchzuführen.\n\nGitLab ist eine Webanwendung zur Versionsverwaltung für Softwareprojekte auf Basis von git.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2024-1787"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-1787.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1787"},{"type":"WEB","url":"https://about.gitlab.com/releases/2024/08/07/patch-release-gitlab-17-2-2-released/"}]},{"provider":"cvelistv5","source_id":"CVE-2024-3958","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-3958","license":"CC-BY-4.0","published_at":"2024-08-08T10:31:17.868Z","modified_at":"2024-09-17T15:31:43.886Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"CVE-2024-3958"}],"affected":[{"ecosystem":"CVE","package":"GitLab/GitLab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.1.4","17.2.2"],"provider":"cvelistv5","source":"CVE-2024-3958","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988"},{"type":"EXPLOIT","url":"https://hackerone.com/reports/2437784"}]},{"provider":"nvd","source_id":"CVE-2024-3958","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958","severity":[],"affected":[{"ecosystem":"NVD","package":"gitlab:gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"17.0.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1.0"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.1.0"},{"fixed":"17.1.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0"},{"fixed":"17.2.2"}]},{"type":"ECOSYSTEM","events":[{"introduced":"17.2.0"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.0.6","17.1.4","17.1.4","17.2.2","17.2.2"],"provider":"nvd","source":"CVE-2024-3958","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-gitlab-2024-3958","relation":"self","url":"https://osv.dev/vulnerability/BIT-gitlab-2024-3958","license":"Apache-2.0","published_at":"2024-08-10T07:26:42.995Z","modified_at":"2026-09-10T16:01:37.352753Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"BIT-gitlab-2024-3958"}],"affected":[{"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"17.0.6"},{"introduced":"17.1.0"},{"fixed":"17.1.4"},{"introduced":"17.2.0"},{"fixed":"17.2.2"}]}],"fixed":["17.0.6","17.1.4","17.2.2"],"provider":"osv","source":"BIT-gitlab-2024-3958","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988"},{"type":"WEB","url":"https://hackerone.com/reports/2437784"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2024-3958","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-3958","license":"CC-BY-SA-4.0","published_at":"2024-08-08T11:15:00Z","modified_at":"2025-10-24T05:06:44Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","source":"UBUNTU-CVE-2024-3958"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","source":"UBUNTU-CVE-2024-3958"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2024-3958"}],"affected":[{"ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","purl":"pkg:deb/ubuntu/gitlab@8.5.8+dfsg-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"],"provider":"osv","source":"UBUNTU-CVE-2024-3958","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-3958"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-3958"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988"},{"type":"REPORT","url":"https://hackerone.com/reports/2437784"}]}],"references":[{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/456988"},{"type":"EXPLOIT","url":"https://hackerone.com/reports/2437784"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-3958"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-3958"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-1787","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-1787","license":"TLP:CLEAR, mirroring permitted","modified_at":"2024-08-08T22:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-3958","url":"https://www.cve.org/CVERecord?id=CVE-2024-3958","license":"CC-BY-4.0","modified_at":"2024-09-17T15:31:43.886Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-3958","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-3958","relation":"self"},{"provider":"osv","source_id":"BIT-gitlab-2024-3958","url":"https://osv.dev/vulnerability/BIT-gitlab-2024-3958","license":"Apache-2.0","modified_at":"2026-09-10T16:01:37.352753Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2024-3958","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-3958","license":"CC-BY-SA-4.0","modified_at":"2025-10-24T05:06:44Z","relation":"self"}]}
