CVE-2024-0402CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab

Critical · published January 26, 2024

CVSS v3.1
9.9
EPSS
4%
Percentile
89.9
In the wild
Unconfirmed
What it is

🚨 An authenticated user can write files to any location on your GitLab server - that’s like handing someone the keys to your workroom without a second thought! 🔥 Think of it as giving a contractor the ability to add new rooms to your house without checking their plans. They could create something fantastic or… something that wrecks the whole structure! This incredible oversight could allow an attacker to plant malicious files, modify configurations, or launch additional attacks, potentially exposing sensitive data or crippling your operations. The consequences are not just a headache; they could lead to significant data breaches and operational disruptions.

Put simply

Think of it as giving a contractor the ability to add new rooms to your house without checking their plans. They could create something fantastic or… something that wrecks the whole structure! The vulnerability allows authenticated users to write files to arbitrary locations on the GitLab server while creating a workspace, affecting versions from 16.0 before 16.6.6, 16.7 before 16.7.4, and 16.8 before 16.8.1.

What to do

This incredible oversight could allow an attacker to plant malicious files, modify configurations, or launch additional attacks, potentially exposing sensitive data or crippling your operations. The consequences are not just a headache; they could lead to significant data breaches and operational disruptions. To protect your instance, immediately upgrade to GitLab version 16.6.6, 16.7.4, or 16.8.1. Additionally, review user permissions to ensure only trusted users have access to sensitive functions. Regular audits of user actions can also help catch any suspicious activity early on. You've got this! Follow these steps, and you'll have your GitLab instance secured in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.03783 · 89.9th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2024-01-26T01:02Z
EPSS history
Timeline
  • 26 JAN 01:02Z
    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
    cvelistv5