CVE-2024-2434
High · 8.5CVSS
8.5
EPSS
23.2%
Published
Apr 25, 2024
CISA due date
—
Cloudanix analysis
A flaw in GitLab lets certain logged-in users reach files they should not see and can also make the service stop working for everyone.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Application
- Class
- Path Traversal
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Path traversal flaw permits authenticated users to supply crafted paths that escape intended directories, enabling read access to restricted files and triggering resource exhaustion leading to denial of service.
Why it matters to the business
Organizations running affected GitLab instances risk exposure of sensitive configuration or source code files and unplanned service outages that disrupt development workflows and collaboration.
How an attack unfolds
An attacker with a low-privilege account on a vulnerable GitLab instance crafts HTTP requests containing directory traversal sequences targeting specific endpoints; successful traversal grants access to files outside the expected repository scope or consumes excessive resources causing service degradation.
How to fix it
Upgrade GitLab CE/EE to 16.9.6, 16.10.4, or 16.11.1 or later; the fixes are included in commit 37be6ae4d071c237cf140e2b206ad4062adefcd1. Apply patches immediately given the high CVSS and moderate EPSS.
How to confirm the fix worked
Confirm instance version meets or exceeds 16.9.6/16.10.4/16.11.1; retest affected endpoints with previously successful traversal payloads to verify requests are now rejected or sanitized.
Typical attack path
- Obtain low-privileged authenticated session on GitLab instance
- Identify endpoints accepting user-controlled path parameters
- Inject traversal sequences such as ../ to escape directory boundaries
- Request restricted file paths or trigger resource-intensive operations
- Observe successful file disclosure or service unavailability
How to detect it
Inspect GitLab access and application logs for repeated requests containing sequences such as ../ or ..\ targeting file-serving or repository endpoints; correlate with authentication events from low-privilege accounts and look for spikes in 5xx responses or file-read operations outside normal repository paths.
- ../
- ..\
- GET.*repository.*file.*\..*\..*
- path traversal pattern in rails or workhorse logs
What your security team should do
- Prioritize upgrade of all GitLab instances to the fixed releases within the next maintenance window
- Review and restrict low-privilege user access to sensitive project and file endpoints until patched
- Enable enhanced logging of path parameters in GitLab access logs for ongoing monitoring
- Scan internal repositories for any custom integrations that might bypass standard path handling
The record
An issue has been discovered in GitLab affecting all versions of GitLab CE/EE 16.9 prior to 16.9.6, 16.10 prior to 16.10.4, and 16.11 prior to 16.11.1 where path traversal could lead to DoS and restricted file read.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Bitnami | gitlab | 16.9.0 | 16.9.6 |
| Ubuntu:16.04:LTS | gitlab | 0 | No fix |
| Ubuntu:24.04:LTS | gitlab-agent | 0 | No fix |
| Ubuntu:24.10 | gitlab-agent | 0 | No fix |
| Ubuntu:25.04 | gitlab-agent | 0 | No fix |
| Ubuntu:25.10 | gitlab-agent | 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