CVE-2024-0402
published critical CVSS 3.1 · 9.9Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| GitLab | — | GitLab16.0 to < 16.5.8 · 16.6 to < 16.6.6 · 16.7 to < 16.7.4 · 16.8 to < 16.8.1 · Other versions: unaffected | Affected | Not stated | GitLab |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- GitLab · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| GitLab | GitLab | 16.0 to < 16.5.8 (affected · semver)16.6 to < 16.6.6 (affected · semver)16.7 to < 16.7.4 (affected · semver)16.8 to < 16.8.1 (affected · semver)Default: unaffected | GitLab · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
2- https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/
- GitLab Issue #437819 https://gitlab.com/gitlab-org/gitlab/-/issues/437819
Provider assertions
3GitLab · cna
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- adeefeea0268d4189e3fb642c2d01c16279f8a074bbf787d25e890669b9eeab0
- Ingested
- 23 Sep 2026, 08:16:19 UTC
- Source record
- Official CVE record