# CVE-2025-2867: Improper Control of Generation of Code ('Code Injection') in GitLab

- Severity: Medium 4.4 (CVSS:3.1, scored by GitLab) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/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.22%, higher than 13% of CVEs (2026-12-02)
- Published: 2025-03-27T14:02:18.359Z
- Modified: 2026-09-10T16:01:38.691Z
- Also known as: BIT-GITLAB-2025-2867
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitLab

## Description

An issue has been discovered in the GitLab Duo with Amazon Q affecting all versions from 17.8 before 17.8.6, 17.9 before 17.9.3, and 17.10 before 17.10.1. A specifically crafted issue could manipulate AI-assisted development features to potentially expose sensitive project data to unauthorized users.

(As written by CVE List.)

## Affected

- GitLab GitLab: from 17.8 before 17.8.6; from 17.9 before 17.9.3; from 17.10 before 17.10.1; from 17.8.0 before 17.8.6; from 17.9.0 before 17.9.3; 17.10.0
- gitlab (Bitnami): from 17.8.0 before 17.8.6; from 17.9.0 before 17.9.3; from 17.10.0 before 18.2.2

## Every score

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

## References

- <https://gitlab.com/gitlab-org/gitlab/-/issues/512509> (broken-link, issue-tracking, permissions-required, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-2867> (web)

## Sources

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

---

Page: https://cve.day/CVE-2025-2867 · Whole record: https://cve.day/CVE-2025-2867.json · Rebuilt by cve.day 2026-11-25T22:58:55.604Z
