{"id":"CVE-2025-2867","summary":"Improper Control of Generation of Code ('Code Injection') in GitLab","details":"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.","aliases":["BIT-gitlab-2025-2867"],"modified":"2026-10-30T10:47:13.368904201Z","published":"2025-03-27T14:02:18.359Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2867.json","cna_assigner":"GitLab","cwe_ids":["CWE-94"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/2xxx/CVE-2025-2867.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-2867"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/512509"},{"type":"PACKAGE","url":"git://git@gitlab.com:gitlab-org/gitlab.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://gitlab.com/gitlab-org/gitlab","events":[{"introduced":"f03594b9e09b648c839e9c008286a24c93c82373"},{"fixed":"27e19f1747ade9da7af660001a20e2dd47219a69"},{"introduced":"f5041566b342c2f30a8d63b8117272c454e18410"},{"fixed":"3f8a07baae6b8ce6bcc5b35075d00164df3b3b60"},{"introduced":"ef8041bebeac4b902db1666c582a3de1d495ae39"},{"last_affected":"ef8041bebeac4b902db1666c582a3de1d495ae39"}],"database_specific":{"extracted_events":[{"source":"CPE_RANGE","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","range":[{"introduced":"17.8.0"},{"fixed":"17.8.6"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*","range":[{"introduced":"17.8.0"},{"fixed":"17.8.6"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:community:*:*:*","range":[{"introduced":"17.9.0"},{"fixed":"17.9.3"}]},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*","range":[{"introduced":"17.9.0"},{"fixed":"17.9.3"}]},{"cpe":"cpe:2.3:a:gitlab:gitlab:17.10.0:*:*:*:community:*:*:*","range":[{"introduced":"17.10.0"},{"last_affected":"17.10.0"}],"source":"CPE_STRING"},{"cpe":"cpe:2.3:a:gitlab:gitlab:17.10.0:*:*:*:enterprise:*:*:*","range":[{"introduced":"17.10.0"},{"last_affected":"17.10.0"}],"source":"CPE_STRING"}]}}],"versions":["17.10.0","v17.10.0-ee","v17.9.0-ee","v17.8.0-ee","v17.8.3-ee"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-2867.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}