{"id":"CVE-2024-0402","published":"2024-01-26T01:02:39Z","modified":"2026-06-03T04:08:40Z","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","vendor":"GitLab","product":"GitLab","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.03783,"percentile":0.90218,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/","tags":[]},{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/437819","tags":["issue-tracking"]}],"priority":{"score":30.0,"factors":[{"name":"EPSS percentile","points":18.04},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":6.93}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-03-10","earliestUrl":"https://github.com/doyensec/malicious-devfile-registry","repos":[{"name":"doyensec/malicious-devfile-registry","url":"https://github.com/doyensec/malicious-devfile-registry","stars":15,"created":"2025-03-10"}]},"first":{"date":"2025-03-10","source":"PoC-in-GitHub","url":"https://github.com/doyensec/malicious-devfile-registry"},"provenance":"source"},"vendorSlug":"gitlab","affectedVersions":[{"vendor":"GitLab","product":"GitLab","versions":[">= 16.0, < 16.5.8",">= 16.6, < 16.6.6",">= 16.7, < 16.7.4",">= 16.8, < 16.8.1"]}],"solutions":{"items":["Upgrade to versions 16.8.1, 16.7.4, 16.6.6, 16.5.8 or above."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-06-03T18:01:24.319017Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"GitLab CE/EE contains a path traversal flaw (CWE: Improper Limitation of a Pathname to a Restricted Directory) in its workspace creation functionality, affecting versions from 16.0 before 16.6.6, 16.7 before 16.7.4, and 16.8 before 16.8.1. An authenticated user who can create a workspace over the network can exploit it to write files to arbitrary locations on the GitLab server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:19:00Z"},"euvd":{"id":"EUVD-2024-16198","exploited":false,"provenance":"source"}}