CVE-2026-18252 Inclusion of Functionality from Untrusted Control Sphere in GitLab
Authenticated developers can execute arbitrary commands in CI contexts via untrusted Claude agent configuration in GitLab EE.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-18252?
CVE-2026-18252 is a high-severity code injection vulnerability in Gitlab Gitlab, published on 26 Aug 2026. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
GitLab has remediated an issue in GitLab EE affecting all versions from 18.9 before 19.1.7, 19.2 before 19.2.5, and 19.3 before 19.3.1 that, under certain conditions, an authenticated user with developer-role permissions could have executed arbitrary commands in a CI context, due to the Claude agent processing configuration from a user-controlled source.
Weakness: CWE-829
Which versions are affected by CVE-2026-18252?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | From 18.9.0 | 19.1.7, 19.2.5, 19.3.1 |
Products include Gitlab Gitlab.
How do I fix CVE-2026-18252?
Upgrade gitlab to a fixed version for your release line: 19.1.7, 19.2.5 or 19.3.1.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2026-18252 being exploited?
There is no known exploitation of CVE-2026-18252 in the wild and no public exploit code.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as BIT-gitlab-2026-18252, GHSA-gjcp-3p8v-jvrw, MINI-6x8c-gj4q-j869, MINI-jcr8-c36m-xp25, MINI-jmrr-2q3c-xfxx.