Skip to content
Submit incident
AII-1002-44897
ConfirmedA court, a regulator or the organization itself has stated the core facts, or the record cites a court or regulator source.

GitLab Pipeline Execution Policy variables not overwritten when template included

GitLab reported a vulnerability (CVE-2024-8311) where CI/CD variables set in project settings were not properly overwritten by pipeline execution policy variables when the policy included a template, potentially allowing security controls to be bypassed.

12 September 2024 Β· GitLab Β· Security and cyberattacks
12 September 2024
AII-1002-448972 sources ↓
Quick facts
Organization
GitLab (subject)
Category
Security and cyberattacks
Source
gitlab.com
Date
12 September 2024
Drafted by
Raidu Incident Detection

What happened

CI/CD variables from group or project settings were not properly overwritten by pipeline execution policies when a template was included in the policy configuration.

A project variable set in Settings β†’ CI/CD β†’ Variables would remain active even when a pipeline execution policy was configured to override it with a different value, if the policy included a GitLab template file.

Reported impact

Security controls intended to be enforced through pipeline execution policies could be bypassed by setting conflicting variables in project settings, potentially allowing unauthorized execution of security analysis tools such as SAST analyzers.

Index analysis

The vulnerability stemmed from improper handling of variable precedence when templates were included in pipeline execution policies, allowing lower-level project variables to take precedence over policy-level overrides.

Classification

Organization
GitLab (subject)
Category
Security and cyberattacks
Industry
IT infrastructure and hosting
Harm status
Potential harm
Intent
Unintentional
Timing
Post-deployment
Harmed
Business

Sources and evidence

This record was researched and written by the Index, based on the following original reporting.

gitlab.com
https://gitlab.com/gitlab-org/gitlab/-/issues/479315
cve.org
NVD entry