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).
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
8.10 (semver) before 16.0.8
16.1.0 (semver) before 16.1.3
16.2.0 (semver) before 16.2.2
Credits
Thanks [ubercomp](https://hackerone.com/ubercomp) for reporting this vulnerability through our HackerOne bug bounty program
References
gitlab.com/gitlab-org/gitlab/-/issues/416161 (GitLab Issue #416161)
hackerone.com/reports/2032730 (HackerOne Bug Bounty Report #2032730)
gitlab.com/gitlab-org/gitlab/-/issues/416161 (GitLab Issue #416161)
hackerone.com/reports/2032730 (HackerOne Bug Bounty Report #2032730)