← Vulnerability feed

Vulnerability record · CVE-2022-39205 · published 13 September 2022

CVE-2022-39205: Onedev project onedev improper authentication vulnerability

Onedev Project · Onedev

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.

9.8 CVSS 3.1 Critical EPSS 2.4% · top 17.0% CWE-287 · Improper authentication
9.8CVSS 3.1 base score
2.4%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-39205 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2022-39206Onedev project onedev vulnerabilityOnedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the Docker socket (e.g. /var/run/docke…EPSS 2.1%9.8CVE-2021-21242OneDev AttachmentUploadServlet deserialization allows pre-auth RCEOneDev before 4.0.3 exposes AttachmentUploadServlet, which deserializes untrusted data from the Attachment-Support header without any authentication …EPSS 74%analysed9.8CVE-2021-21245Onedev project onedev unrestricted file upload vulnerabilityOneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user controlled data (`request.getInputSt…EPSS 1.2%9.8CVE-2021-21243OneDev Kubernetes endpoint deserializes untrusted data pre-auth, enabling RCEOneDev before 4.0.3 exposes a Kubernetes REST endpoint with two methods that deserialize untrusted data from the request body. Those endpoints enforc…EPSS 54%analysed9.8CVE-2021-21244Onedev project onedev injection vulnerabilityOneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth server side template injectio…EPSS 1.5%8.8CVE-2023-24828Onedev project onedev vulnerabilityOnedev is a self-hosted Git Server with CI/CD and Kanban. In versions prior to 7.9.12 the algorithm used to generate access token and password reset …EPSS 0.71%8.8CVE-2022-38301Onedev project onedev path traversal vulnerabilityOnedev v7.4.14 contains a path traversal vulnerability which allows attackers to access restricted files and directories via uploading a crafted JAR …EPSS 1.4%8.8CVE-2021-21247Onedev project onedev injection vulnerabilityOneDev is an all-in-one devops platform. In OneDev before version 4.0.3, the application's BasePage registers an AJAX event listener (`AbstractPostAj…EPSS 1.5%

Source: NIST National Vulnerability Database (record CVE-2022-39205), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.