Skip to main content
CVE-2024-0402VulnerabilityPublished Updated

CVE-2024-0402: GitLab · Path Traversal

Affects GitLabSource CVE Database V5

0

Not known to be exploited · CVSS 9.9 Critical · fixed in 16.8.1 : patch GitLab as a priority.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 3.1 base score
9.9Critical
How severe the flaw is on the 0–10 CVSS scale.
EPSS
3.7% chance of exploitation in 30 days – higher than 89% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 16.8.1, 16.7.4, 16.6.6
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Jan 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Upgrade gitlab-org/gitlab to 16.8.1, 16.7.4 or 16.6.6.

Affected software

ProductAffectedFixed in
RubyGemsgitlab-org/gitlabpkg:gem/gitlab-org/gitlabOther threatsAffected
  • >=16.0 <16.6.6
  • >=16.7 <16.7.4
  • >=16.8 <16.8.1
Fixed in
  • 16.6.6
  • 16.7.4
  • 16.8.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

European organizations should immediately verify their GitLab versions and upgrade to the fixed versions 16.6.6, 16.7.4, or 16.8.1 or later as soon as official patches are available. If you cannot patch yet, organizations should restrict GitLab access to trusted users only and enforce strong authentication mechanisms such as multi-factor authentication (MFA) to reduce the risk of credential compromise. Monitoring and logging of workspace creation activities should be enhanced to detect anomalous file writes or path traversal attempts. Network segmentation and least privilege principles should be applied to limit the impact of a compromised GitLab server. Additionally, organizations should conduct thorough audits of GitLab server file systems for unauthorized files or modifications and review CI/CD pipeline configurations for suspicious changes. Incident response plans should be updated to include this vulnerability scenario. Finally, organizations should subscribe to GitLab security advisories and threat intelligence feeds to stay informed about exploit developments and patches.

Description

An issue has been discovered in GitLab CE/EE affecting all versions from 16.0 prior to 16.6.6, 16.7 prior to 16.7.4, and 16.8 prior to 16.8.1 which allows an authenticated user to write files to arbitrary locations on the GitLab server while creating a workspace.

References

Community reviews

Loading reviews…