Path traversal in Gitlab Community Edition and GitLab Enterprise Edition - CVE-2023-2825
Published: May 23, 2023 / Updated: July 26, 2024
Vulnerability identifier: #VU76454
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2023-2825
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability:
The vulnerability is being exploited in the wild
Vulnerability details
The vulnerability allows a remote attacker to perform directory traversal attacks.
The vulnerability exists due to input validation error when an attachment exists in a public project nested within at least five groups. A remote attacker can read arbitrary file on the server.
Affected software
Gitlab Community Edition
GitLab Enterprise Edition
GitLab Enterprise Edition
How to mitigate CVE-2023-2825
Install update from vendor's website.
Gitlab Community Edition - update to 16.0.1
GitLab Enterprise Edition - update to 16.0.1
GitLab Enterprise Edition - update to 16.0.1
Links to Public Exploits and PoC-codes
- Exploit #10247 - CVE-2023-2825 (GitLab CVE-2023-2825 PoC. This PoC leverages a path traversal vulnerability to retrieve the /etc/passwd file from a system running GitLab 16.0.0.) (July 26, 2024)
- Exploit #10098 - CVE-2023-2825 (CVE-2023-2825 exploit script) (June 21, 2024)
- Exploit #9093 - GitLab Authenticated File Read (June 7, 2023)