CVE-2023-2825
GitLab vulnerability analysis and mitigation

Overview

CVE-2023-2825 is a critical path traversal vulnerability discovered in GitLab Community Edition (CE) and Enterprise Edition (EE) version 16.0.0. The vulnerability was discovered by a security researcher known as 'pwnie' through HackerOne's bug bounty program and was patched in version 16.0.1 released on May 23, 2023. This vulnerability allows an unauthenticated malicious user to read arbitrary files on the server when an attachment exists in a public project nested within at least five groups (GitLab Release, SentinelOne Blog).

Technical details

The vulnerability is classified with a CVSS score of 10.0 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N). The bug was introduced in version 16.0.0 when a new method named retrievefromstore() was added in the file /app/uploaders/object_storage.rb to handle the @filename variable. The vulnerability stems from improper sanitization of file paths, allowing path traversal sequences to be injected. The number of directories that can be traversed is directly related to the number of groups the project is nested within, following an N + 1 rule (WatchTowr Labs).

Impact

The vulnerability enables unauthorized access to arbitrary files on the server, potentially exposing sensitive data including proprietary source code, user data, and crucial configuration details. The impact is particularly severe as it requires no authentication and can be exploited remotely (SecurityOnline).

Mitigation and workarounds

The primary mitigation is to upgrade to GitLab version 16.0.1 or later, which includes the security patch. For organizations unable to upgrade immediately, alternative mitigations include disabling public projects to prevent unauthenticated users from exploiting the vulnerability, filtering attachments, and monitoring systems for signs of exploitation such as unauthorized file access or unusual network traffic (SentinelOne Blog).

Additional resources


SourceThis report was generated using AI

Related GitLab vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-7449MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2025-12653MEDIUM6.5
  • GitLabGitLab
  • gitlab
NoYesNov 26, 2025
CVE-2024-9183MEDIUM6.4
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesDec 05, 2025
CVE-2025-13611MEDIUM5.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab:*:*:*:*:enterprise:*:*:*
NoYesNov 26, 2025
CVE-2025-6195MEDIUM4.3
  • GitLabGitLab
  • cpe:2.3:a:gitlab:gitlab
NoYesNov 26, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management