{"id":"CVE-2023-3385","state":"PUBLISHED","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","description":"An issue has been discovered in GitLab affecting all versions starting from 8.10 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. Under specific circumstances, a user importing a project 'from export' could access and read unrelated files via uploading a specially crafted file. This was due to a bug in `tar`, fixed in [`tar-1.35`](https://lists.gnu.org/archive/html/info-gnu/2023-07/msg00005.html).","publishedAt":"2023-08-01T23:35:55.776Z","updatedAt":"2025-11-20T04:07:23.274Z","severity":{"score":6.3,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","source":"GitLab"},"assigner":"GitLab","products":["GitLab GitLab"],"affected":[{"vendor":"GitLab","product":"GitLab","defaultStatus":"unaffected","versions":[{"version":"8.10","status":"affected","lessThan":"16.0.8","versionType":"semver"},{"version":"16.1.0","status":"affected","lessThan":"16.1.3","versionType":"semver"},{"version":"16.2.0","status":"affected","lessThan":"16.2.2","versionType":"semver"}],"repo":"git://git@gitlab.com:gitlab-org/gitlab.git","cpes":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*"]}],"references":["https://gitlab.com/gitlab-org/gitlab/-/issues/416161","https://hackerone.com/reports/2032730"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:06:08.715Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/3xxx/CVE-2023-3385.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2023-3385","state":"PUBLISHED","datePublished":"2023-08-01T23:35:55.776Z","dateUpdated":"2025-11-20T04:07:23.274Z","assignerShortName":"GitLab","assignerOrgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateReserved":"2023-06-23T10:15:05.337Z"},"containers":{"cna":{"title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in GitLab","descriptions":[{"lang":"en","value":"An issue has been discovered in GitLab affecting all versions starting from 8.10 before 16.0.8, all versions starting from 16.1 before 16.1.3, all versions starting from 16.2 before 16.2.2. Under specific circumstances, a user importing a project 'from export' could access and read unrelated files via uploading a specially crafted file. This was due to a bug in `tar`, fixed in [`tar-1.35`](https://lists.gnu.org/archive/html/info-gnu/2023-07/msg00005.html)."}],"affected":[{"vendor":"GitLab","product":"GitLab","defaultStatus":"unaffected","versions":[{"version":"8.10","status":"affected","lessThan":"16.0.8","versionType":"semver"},{"version":"16.1.0","status":"affected","lessThan":"16.1.3","versionType":"semver"},{"version":"16.2.0","status":"affected","lessThan":"16.2.2","versionType":"semver"}],"repo":"git://git@gitlab.com:gitlab-org/gitlab.git","cpes":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*"]}],"references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/416161","name":"GitLab Issue #416161","tags":["issue-tracking"]},{"url":"https://hackerone.com/reports/2032730","name":"HackerOne Bug Bounty Report #2032730","tags":["technical-description","exploit","permissions-required"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitLab","orgId":"ceab7361-8a18-47b1-92ba-4d7d25f6715a","dateUpdated":"2025-11-20T04:07:23.274Z"},"solutions":[{"lang":"en","value":"Upgrade to versions 16.2.2, 16.1.3, 16.0.8 or above."}],"credits":[{"lang":"en","value":"Thanks [ubercomp](https://hackerone.com/ubercomp) for reporting this vulnerability through our HackerOne bug bounty program","type":"finder"}]},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"gitlab","product":"gitlab","defaultStatus":"unknown","versions":[{"version":"8.10","status":"affected","lessThan":"16.0.8","versionType":"custom"},{"version":"16.1.0","status":"affected","lessThan":"16.1.3","versionType":"custom"},{"version":"16.2.0","status":"affected","lessThan":"16.2.2","versionType":"custom"}],"cpes":["cpe:2.3:a:gitlab:gitlab:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-07-24T13:39:50.321710Z","id":"CVE-2023-3385","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-18T13:09:46.886Z"}},{"title":"CVE Program Container","references":[{"url":"https://gitlab.com/gitlab-org/gitlab/-/issues/416161","name":"GitLab Issue #416161","tags":["issue-tracking","x_transferred"]},{"url":"https://hackerone.com/reports/2032730","name":"HackerOne Bug Bounty Report #2032730","tags":["technical-description","exploit","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T06:55:03.047Z"}}]}}}