Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-81839 Overview
GitLab has patched an authorization flaw in GitLab Enterprise Edition (EE) that allowed authenticated users to execute arbitrary CI/CD pipelines in transferred projects with the new group's privileges. The issue stems from improper cleanup of scheduled pipeline execution policy records when a project is transferred between groups. The vulnerability is tracked under [CWE-863: Incorrect Authorization] and affects GitLab EE versions from 18.1 through 19.4.1. GitLab resolved the issue in versions 19.2.8, 19.3.5, and 19.4.2.
Critical Impact
An authenticated attacker can run CI/CD pipelines inheriting a target group's privileges, enabling privilege escalation and tampering with protected resources in that group.
Affected Products
- GitLab EE versions 18.1 through 19.2.7
- GitLab EE versions 19.3 through 19.3.4
- GitLab EE versions 19.4 through 19.4.1
Discovery Timeline
- 2026-10-13 - CVE-2026-81839 published to NVD
- 2026-10-14 - Last updated in NVD database
Technical Details for CVE-2026-81839
Vulnerability Analysis
The flaw resides in GitLab EE's pipeline execution policy subsystem. When a project with scheduled pipeline execution policy records is transferred to a new group, GitLab fails to clean up the stale policy records tied to the original configuration. Those records continue to execute under the new group's context, giving the authenticated user who triggers them access to the destination group's privileges and secrets.
This is an incorrect authorization condition [CWE-863] rather than a code injection flaw. The CI/CD runner enforces policy records at execution time, trusting them as authoritative. Because the records survive the transfer boundary, the privilege boundary between the source and destination groups collapses for scheduled policies.
Successful exploitation requires an authenticated account with permission to influence project transfers or scheduled pipelines, plus user interaction to approve or trigger the transfer workflow. The scope-changed nature of the issue means the impact crosses the security boundary of the originating project.
Root Cause
The root cause is incomplete lifecycle handling of pipeline execution policy records during project transfer. GitLab did not invalidate or re-evaluate scheduled policy entries against the destination group's authorization model, leaving stale records executing with inherited privileges.
Attack Vector
An authenticated user leverages a transferred project that retains orphaned scheduled pipeline execution policy records. When the schedule fires, the pipeline runs in the new group's context, allowing the attacker to read protected variables, modify artifacts, or tamper with repositories owned by that group. No code example is published; refer to the GitLab Work Item #624150 and the HackerOne Report #3925062 for coordinated disclosure details.
Detection Methods for CVE-2026-81839
Indicators of Compromise
- Scheduled pipeline executions in recently transferred projects that run under a different group namespace than expected.
- Pipeline execution policy records referencing projects whose namespace_id has changed without a corresponding policy update.
- CI/CD jobs accessing group-level secrets or protected variables from a project that was transferred into the group.
Detection Strategies
- Audit the pipeline_execution_policies and security_policies tables for records whose owning project was transferred after the policy was scheduled.
- Correlate GitLab audit events for project_transferred with subsequent pipeline_created events sharing the same project_id.
- Review runner job logs for scheduled pipelines executing with group tokens or runners that were not previously authorized for the project.
Monitoring Recommendations
- Enable GitLab audit streaming to a SIEM and alert on project transfers followed by scheduled pipeline activity within 24 hours.
- Monitor use of group-scoped CI/CD variables accessed by pipelines whose project was recently moved.
- Track execution policy modifications and ownership changes using GitLab's compliance dashboard.
How to Mitigate CVE-2026-81839
Immediate Actions Required
- Upgrade GitLab EE to 19.2.8, 19.3.5, or 19.4.2 as applicable to your release train.
- Audit all projects transferred between groups since GitLab 18.1 and review their scheduled pipeline execution policies.
- Rotate group-level CI/CD variables, deploy tokens, and runner registration tokens for any group that received transferred projects.
Patch Information
GitLab released fixes in Patch Release 19.4.2 along with backports to 19.3.5 and 19.2.8. See the GitLab Patch Release 19.4.2 advisory for full version matrices and upgrade guidance.
Workarounds
- Disable or delete scheduled pipeline execution policies on any project before transferring it between groups.
- Restrict the Maintainer and Owner roles that can perform project transfers to a small, audited set of accounts.
- Require manual approval and policy re-evaluation after any project transfer until upgrades are complete.
# Verify installed GitLab version and upgrade path
sudo gitlab-rake gitlab:env:info | grep -i "GitLab information" -A 5
# Debian/Ubuntu upgrade to patched release
sudo apt-get update && sudo apt-get install gitlab-ee=19.4.2-ee.0
# RHEL/CentOS upgrade to patched release
sudo yum install gitlab-ee-19.4.2-ee.0
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

