CVE-2026-90970: Authenticated command execution via prompt-template sandbox escape in GitLab AI Gateway
- Vendor
- GitLab
CVE-2026-90970 is a template-engine vulnerability in GitLab AI Gateway's processing of Duo Agent Platform custom-flow prompt templates. Improper neutralization of template special elements allows an authenticated user with Duo Agent Platform access, under certain conditions, to escape the prompt-template sandbox through a specially crafted flow configuration and execute arbitrary commands on the gateway. Affected versions are 18.1.6 up to but excluding 19.2.4, 19.3 up to but excluding 19.3.2, and 19.4 up to but excluding 19.4.1. The precise vulnerable code path, template engine, and additional exploitation conditions have not been publicly disclosed. The vulnerability has a CVSS v3.1 score of 9.9.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation bypasses the prompt-template security boundary and permits arbitrary command execution in the AI Gateway service context, with potentially high confidentiality, integrity, and availability impacts. Depending on runtime permissions, mounted resources, and network access, compromise could expose AI request data, source code, JWT signing material, model-provider credentials, and other gateway-accessible secrets. It could also enable modification or disruption of gateway operations and access to connected internal services. Host-wide or downstream compromise depends on deployment privileges and accessible resources.
Mitigation
If you can’t patch tonight, do this now.
No vendor-provided workaround is identified. Until patching is complete, restrict Duo Agent Platform and custom-flow access to necessary trusted users, limit gateway network access to required GitLab services, approved model providers, and trusted administrative networks, and restrict unnecessary outbound traffic. These measures reduce exposure but do not eliminate the vulnerability. Review flow-configuration changes, unexpected gateway child processes, suspicious access to mounted files or configuration data, and unusual outbound connections. If command execution is suspected, investigate accessible secrets and rotate potentially exposed credentials. Monitoring and hardening do not replace upgrading.
Remediation
Patch, then assume compromise.
Immediately upgrade affected self-hosted GitLab AI Gateway deployments to 19.2.4, 19.3.2, 19.4.1, or a later applicable fixed release. No fixed releases below 19.2.4 are identified; affected older branches must move to an applicable supported fixed release, with GitLab compatibility requirements checked before migration. Update the AI Gateway independently of the main GitLab application by replacing its Docker image or updating its Helm deployment image. Verify the running image version and digest, and ensure image caching has not retained a vulnerable build. GitLab-hosted AI Gateways have already been patched; customers using those gateways require no action for this vulnerability.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2026-90970 exploited in the wild?
- As of Nov 3, 2026, Mallory has no reports of CVE-2026-90970 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-90970?
- As of Nov 3, 2026, Mallory has found no public exploit for CVE-2026-90970.
- Is there a patch for CVE-2026-90970?
- Immediately upgrade affected self-hosted GitLab AI Gateway deployments to 19.2.4, 19.3.2, 19.4.1, or a later applicable fixed release. No fixed releases below 19.2.4 are identified; affected older branches must move to an applicable supported fixed release, with GitLab compatibility requirements checked before migration.
- What products are affected by CVE-2026-90970?
- GitLab Ai-Gateway.
- How severe is CVE-2026-90970?
- CVE-2026-90970 has a CVSS v3.1 score of 9.9 (Critical) and an EPSS score of 17.5% (97th percentile) as of Nov 3, 2026.
Recent activity
81 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.