What’s Vulnerable › Vulnerabilities
CVE-2022-39208: Git Repository Disclosure in Onedev
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.9% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2022-09-13 · updated 2026-06-17
- Weakness: CWE-552
Description
Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. All files in the /opt/onedev/sites/ directory are exposed and can be read by unauthenticated users. This directory contains all projects, including their bare git repos and build artifacts. This file disclosure vulnerability can be used by unauthenticated attackers to leak all project files of any project. Since project IDs are incremental, an attacker could iterate through them and leak all project data. This issue has been resolved in version 7.3.0 and users are advised to upgrade. There are no known workarounds for this issue.
Affected products
- theonedev onedev: before 7.3.0 — fixed in 7.3.0
How to fix
Upgrade to a fixed version: theonedev onedev 7.3.0. Check the vendor advisory for mitigations.
References
- https://blog.sonarsource.com/onedev-remote-code-execution/
- https://github.com/theonedev/onedev/commit/8aa94e0daf8447cdf76d4f27bfda0a85a7ea5822
- https://github.com/theonedev/onedev/security/advisories/GHSA-h427-rv56-c9h2
- https://blog.sonarsource.com/onedev-remote-code-execution/
- https://github.com/theonedev/onedev/commit/8aa94e0daf8447cdf76d4f27bfda0a85a7ea5822
- https://github.com/theonedev/onedev/security/advisories/GHSA-h427-rv56-c9h2
Get alerted when CVE-2022-39208 or the next vulnerability affects your stack