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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| GitLab | GitLab | 16.0.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | gitlab | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 1 module
-
GitLab Authenticated File Read
auxiliary/gather/gitlab_authenticated_subgroups_file_read
GitHub 7 repositories
-
Occamsec/CVE-2023-2825 ★ 139 · May 25, 2023
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.
-
Groppoxx/CVE-2023-2825-PoC ★ 4 · May 17, 2026
PoC for CVE-2023-2825: automated GitLab 16.0.0 arbitrary file read via nested public groups, project upload traversal, reusable upload paths, and clean CLI output.
-
alej6/MassCyberCenter-Mentorship-Project- ★ 0 · Jan 2, 2025
Exploiting CVE-2023-2825 on a VM
-
cc3305/CVE-2023-2825 ★ 0 · Jun 20, 2024
CVE-2023-2825 exploit script
-
caopengyan/CVE-2023-2825 ★ 0 · Sep 10, 2023
-
Rubikcuv5/CVE-2023-2825 ★ 0 · Jun 5, 2023
On May 23, 2023 GitLab released version 16.0.1 which fixed a critical vulnerability, CVE-2023-2825, affecting the Community Edition (CE) and Enterprise Edition (EE) version 16.0.0. The vulnerability …
-
Tornad0007/CVE-2023-2825-Gitlab ★ 0 · May 30, 2023
the proof of concept written in Python for 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…
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- GitLab 16.0.0 - Path Traversal http/cves/2023/CVE-2023-2825.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 1
- WID-SEC-2023-1290 GitLab: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 28, 2023