# CVE-2024-3958: Improper Control of Generation of Code ('Code Injection') in GitLab

- Severity: Medium 5.3 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-08-08T10:31:17.868Z
- Modified: 2026-09-10T16:01:37.352Z
- Also known as: BIT-GITLAB-2024-3958
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitLab

## Description

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.

(As written by CVE List.)

## Affected

- GitLab GitLab: before 17.0.6; from 17.1 before 17.1.4; from 17.2 before 17.2.2; from 17.1.0 before 17.1.4; from 17.2.0 before 17.2.2
- gitlab (Bitnami): before 17.0.6; from 17.1.0 before 17.1.4; from 17.2.0 before 17.2.2

## Every score

- GitLab: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://hackerone.com/reports/2437784> (exploit, permissions-required, technical-description, web)
- <https://gitlab.com/gitlab-org/gitlab/-/issues/456988> (broken-link, issue-tracking, permissions-required, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-3958> (web)

## Sources

- CVE List: [CVE-2024-3958](https://www.cve.org/CVERecord?id=CVE-2024-3958), CVE Terms of Use, modified 2024-09-17
- NVD: [CVE-2024-3958](https://nvd.nist.gov/vuln/detail/CVE-2024-3958), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GITLAB-2024-3958](https://osv.dev/vulnerability/BIT-GITLAB-2024-3958), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2024-3958 · Whole record: https://cve.day/CVE-2024-3958.json · Rebuilt by cve.day 2026-11-25T22:58:44.142Z
