CVE-2024-6678
High · 8.8CVSS
8.8
EPSS
2.0%
Published
Sep 12, 2024
CISA due date
—
Cloudanix analysis
A problem in GitLab lets attackers run automated build and test processes pretending to be other users, which could allow unauthorized changes or access to code and systems.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- Application
- Class
- Authorization Bypass
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw permits bypassing authorization checks to trigger CI/CD pipelines while impersonating any user account under specific conditions in GitLab.
Why it matters to the business
Attackers could force unauthorized builds, deployments, or secret exposures, leading to operational disruptions, intellectual property theft, or infrastructure compromise.
How an attack unfolds
An attacker identifies a vulnerable GitLab instance, crafts a pipeline trigger request exploiting the authorization bypass, and executes the pipeline as an arbitrary user to perform actions without proper permissions.
How to fix it
Upgrade GitLab CE/EE to 17.1.7 or later, 17.2.5 or later, or 17.3.2 or later as appropriate for the installed branch.
How to confirm the fix worked
Confirm the running GitLab version meets or exceeds the fixed releases listed above; review pipeline permission settings and test trigger authorization after upgrade.
Typical attack path
- Locate a GitLab instance running an affected version
- Identify a target user or project
- Craft and submit a pipeline trigger request that bypasses authorization
- Execute and monitor the pipeline running under the impersonated identity
How to detect it
Review GitLab audit and pipeline logs for unexpected trigger events or executions attributed to users who did not initiate them; monitor for anomalous pipeline activity in project histories.
- Audit log entries showing pipeline creation by mismatched or impersonated user IDs
- Pipeline execution records lacking corresponding user-initiated trigger events
What your security team should do
- Prioritize upgrade of all affected GitLab instances to the specified fixed versions
- Audit recent pipeline execution logs for suspicious triggers
- Restrict pipeline trigger permissions to the minimum necessary users
The record
An issue was discovered in GitLab CE/EE affecting all versions starting from 8.14 prior to 17.1.7, starting from 17.2 prior to 17.2.5, and starting from 17.3 prior to 17.3.2, which allows an attacker to trigger a pipeline as an arbitrary user under certain circumstances.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | gitlab | 8.14.0 | 17.1.7 |
| Ubuntu:16.04:LTS | gitlab | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | gitlab | 0 | No fix |
Related vulnerabilities
- CVE-2026-1751 A vulnerability has been discovered in GitLab CE/EE affecting all versions starting with… Also affects gitlab
- CVE-2025-3950 Exposure of Private Personal Information to an Unauthorized Actor in GitLab Also affects gitlab
- CVE-2025-9222 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in… Also affects gitlab
- CVE-2025-10569 Allocation of Resources Without Limits or Throttling in GitLab Also affects gitlab
- CVE-2025-11246 Insufficient Granularity of Access Control in GitLab Also affects gitlab
- CVE-2025-13772 Missing Authorization in GitLab Also affects gitlab
- CVE-2025-13761 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in… Also affects gitlab
- CVE-2025-13781 Missing Authorization in GitLab Also affects gitlab