CVE-2023-2825 Path traversal in GitLab

Critical 10.0 Published Updated

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.

PackageAffectedFixed in
gitlab BitnamiFrom 16.0.016.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.

All Gitlab Gitlab vulnerabilities

Sources

Also known as BIT-gitlab-2023-2825, GHSA-x4jh-5c6x-h92v, UBUNTU-CVE-2023-2825.

Is CVE-2023-2825 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free