{"id":"CVE-2024-0402","aliases":["BIT-gitlab-2024-0402","UBUNTU-CVE-2024-0402"],"summary":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","published_at":"2024-01-26T01:02:39.052Z","modified_at":"2026-09-08T08:47:43.356798Z","products":[{"slug":"gitlab","name":"GitLab CE/EE","category":"gitops-cicd"}],"rating":{"severity":"critical","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"vendor_ratings":[{"source":"Ubuntu","rating":"medium"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.03782999888062477,"percentile":0.902180016040802,"date":"2026-11-20T00:00:00Z"},"priority":10.9,"record_count":5,"vendors":["Ubuntu","BSI","Bitnami"],"details":"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.","affected_stack":[{"ecosystem":"CVE","package":"GitLab/GitLab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7"},{"fixed":"16.7.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.8"},{"fixed":"16.8.1"}]}],"fixed":["16.5.8","16.6.6","16.7.4","16.8.1"],"provider":"cvelistv5","source":"CVE-2024-0402","relation":"self"},{"ecosystem":"NVD","package":"gitlab:gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6.0"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6.0"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7.0"},{"fixed":"16.7.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7.0"},{"fixed":"16.7.4"}]}],"versions":["16.8.0"],"fixed":["16.5.8","16.5.8","16.6.6","16.6.6","16.7.4","16.7.4"],"provider":"nvd","source":"CVE-2024-0402","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"},{"introduced":"16.6.0"},{"fixed":"16.6.6"},{"introduced":"16.7.0"},{"fixed":"16.7.4"},{"introduced":"16.8.0"},{"fixed":"16.8.1"}]}],"fixed":["16.5.8","16.6.6","16.7.4","16.8.1"],"provider":"osv","source":"BIT-gitlab-2024-0402","relation":"self"},{"ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","purl":"pkg:deb/ubuntu/gitlab@8.5.8+dfsg-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"],"provider":"osv","source":"UBUNTU-CVE-2024-0402","relation":"self"}],"product_status":[],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0216","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0216","license":"TLP:CLEAR, mirroring permitted","published_at":"2024-01-25T23:00:00Z","modified_at":"2025-03-18T23:00:00Z","summary":"GitLab: Mehrere Schwachstellen","details":"Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in GitLab ausnutzen, um beliebigen Programmcode auszuführen, unbekannte Auswirkungen zu verursachen, Dateien zu manipulieren, einen Denial of Service Zustand herbeizuführen oder Sicherheitsvorkehrungen zu umgehen.\n\nGitLab ist eine Webanwendung zur Versionsverwaltung für Softwareprojekte auf Basis von git.","severity":[{"type":"BSI","score":"kritisch","source":"WID-SEC-W-2024-0216"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2024/wid-sec-w-2024-0216.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0216"},{"type":"WEB","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/"},{"type":"WEB","url":"https://www.reddit.com/r/netsec/comments/1je4j6r/arbitrary_file_write_cve20240402_in_gitlab_exploit/?rdt=53095"}]},{"provider":"cvelistv5","source_id":"CVE-2024-0402","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2024-0402","license":"CC-BY-4.0","published_at":"2024-01-26T01:02:39.052Z","modified_at":"2026-06-03T04:08:40.742Z","summary":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"CVE-2024-0402"}],"affected":[{"ecosystem":"CVE","package":"GitLab/GitLab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7"},{"fixed":"16.7.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.8"},{"fixed":"16.8.1"}]}],"fixed":["16.5.8","16.6.6","16.7.4","16.8.1"],"provider":"cvelistv5","source":"CVE-2024-0402","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/"},{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/437819"}]},{"provider":"nvd","source_id":"CVE-2024-0402","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0402","severity":[],"affected":[{"ecosystem":"NVD","package":"gitlab:gitlab","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6.0"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.6.0"},{"fixed":"16.6.6"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7.0"},{"fixed":"16.7.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"16.7.0"},{"fixed":"16.7.4"}]}],"versions":["16.8.0"],"fixed":["16.5.8","16.5.8","16.6.6","16.6.6","16.7.4","16.7.4"],"provider":"nvd","source":"CVE-2024-0402","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-gitlab-2024-0402","relation":"self","url":"https://osv.dev/vulnerability/BIT-gitlab-2024-0402","license":"Apache-2.0","published_at":"2024-03-06T10:53:34.701Z","modified_at":"2026-09-08T08:47:43.356798Z","summary":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"BIT-gitlab-2024-0402"}],"affected":[{"ecosystem":"Bitnami","package":"gitlab","purl":"pkg:bitnami/gitlab","ranges":[{"type":"SEMVER","events":[{"introduced":"16.0.0"},{"fixed":"16.5.8"},{"introduced":"16.6.0"},{"fixed":"16.6.6"},{"introduced":"16.7.0"},{"fixed":"16.7.4"},{"introduced":"16.8.0"},{"fixed":"16.8.1"}]}],"fixed":["16.5.8","16.6.6","16.7.4","16.8.1"],"provider":"osv","source":"BIT-gitlab-2024-0402","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/"},{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/437819"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0402"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2024-0402","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-0402","license":"CC-BY-SA-4.0","published_at":"2024-01-26T01:15:00Z","modified_at":"2025-10-24T05:06:38Z","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"UBUNTU-CVE-2024-0402"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2024-0402"}],"affected":[{"ecosystem":"Ubuntu:16.04:LTS","package":"gitlab","purl":"pkg:deb/ubuntu/gitlab@8.5.8+dfsg-5?arch=source&distro=xenial","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.4.3+dfsg-9","8.4.3+dfsg-12","8.5.8+dfsg-5"],"provider":"osv","source":"UBUNTU-CVE-2024-0402","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-0402"},{"type":"REPORT","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released"},{"type":"REPORT","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/"},{"type":"REPORT","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/437819"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-0402"}]}],"references":[{"type":"WEB","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released/"},{"type":"WEB","url":"https://gitlab.com/gitlab-org/gitlab/-/issues/437819"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0402"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-0402"},{"type":"REPORT","url":"https://about.gitlab.com/releases/2024/01/25/critical-security-release-gitlab-16-8-1-released"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-0402"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2024-0216","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2024-0216","license":"TLP:CLEAR, mirroring permitted","modified_at":"2025-03-18T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2024-0402","url":"https://www.cve.org/CVERecord?id=CVE-2024-0402","license":"CC-BY-4.0","modified_at":"2026-06-03T04:08:40.742Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2024-0402","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-0402","relation":"self"},{"provider":"osv","source_id":"BIT-gitlab-2024-0402","url":"https://osv.dev/vulnerability/BIT-gitlab-2024-0402","license":"Apache-2.0","modified_at":"2026-09-08T08:47:43.356798Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2024-0402","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2024-0402","license":"CC-BY-SA-4.0","modified_at":"2025-10-24T05:06:38Z","relation":"self"}]}
