CVE-2023-2825 Path traversal in GitLab
An unauthenticated attacker can read arbitrary server files via path traversal in GitLab when specific nested group attachment conditions are met.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-2825?
CVE-2023-2825 is a critical path traversal vulnerability in Gitlab Gitlab, published on 26 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue has been discovered in GitLab CE/EE affecting only version 16.0.0. An unauthenticated malicious user can use a path traversal vulnerability to read arbitrary files on the server when an attachment exists in a public project nested within at least five groups.
Weakness: CWE-22
Which versions are affected by CVE-2023-2825?
1 open source package ship an affected version, including gitlab. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
gitlab Bitnami | From 16.0.0 | 16.0.1 |
Products include Gitlab Gitlab.
How do I fix CVE-2023-2825?
Upgrade gitlab to 16.0.1 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-2825 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-2825 exists.
Public exploit code: 1 Metasploit module, 1 Nuclei template and 7 proofs of concept on GitHub.
Other vulnerabilities in Gitlab Gitlab
- CVE-2026-97229 GitLab Community Edition and Enterprise Edition Integer Overflow or Wraparound
- CVE-2026-85706 GitLab Community Edition and Enterprise Edition Path Traversal
- CVE-2023-7028 GitLab Community and Enterprise Editions Improper Access Control
- CVE-2021-22205 GitLab Community and Enterprise Editions Remote Code Execution
- CVE-2021-39935 GitLab Community and Enterprise Editions Server-Side Request Forgery (SSRF)
Sources
Also known as BIT-gitlab-2023-2825, GHSA-x4jh-5c6x-h92v, UBUNTU-CVE-2023-2825.