CVE-2022-39205

Public Exploit
Access Control Bypass in Onedev

Description

Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. In versions of Onedev prior to 7.3.0 unauthenticated users can take over a OneDev instance if there is no properly configured reverse proxy. The /git-prereceive-callback endpoint is used by the pre-receive git hook on the server to check for branch protections during a push event. It is only intended to be accessed from localhost, but the check relies on the X-Forwarded-For header. Invoking this endpoint leads to the execution of one of various git commands. The environment variables of this command execution can be controlled via query parameters. This allows attackers to write to arbitrary files, which can in turn lead to the execution of arbitrary code. Such an attack would be very hard to detect, which increases the potential impact even more. Users are advised to upgrade. There are no known workarounds for this issue.

Category

9.0
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 0.87% Top 30%
Third-Party Advisory sonarsource.com Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: theonedev onedev
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-39205?
CVE-2022-39205 has been scored as a critical severity vulnerability.
How to fix CVE-2022-39205?
To fix CVE-2022-39205, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-39205 being actively exploited in the wild?
It is possible that CVE-2022-39205 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~1% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-39205?
CVE-2022-39205 affects theonedev onedev.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.