9.8
CRITICAL
CVE-2022-39205
Onedev Unauthenticated Remote Code Execution Vulnerability
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.

INFO

Published Date :

Sept. 13, 2022, 7:15 p.m.

Last Modified :

Nov. 21, 2024, 7:17 a.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2022-39205 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Onedev_project onedev
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-39205.

URL Resource
https://blog.sonarsource.com/onedev-remote-code-execution/ Exploit Third Party Advisory
https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e Patch Third Party Advisory
https://github.com/theonedev/onedev/releases/tag/v7.3.0 Release Notes Third Party Advisory
https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2 Third Party Advisory
https://blog.sonarsource.com/onedev-remote-code-execution/ Exploit Third Party Advisory
https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e Patch Third Party Advisory
https://github.com/theonedev/onedev/releases/tag/v7.3.0 Release Notes Third Party Advisory
https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2 Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-39205 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-39205 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://blog.sonarsource.com/onedev-remote-code-execution/
    Added Reference https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e
    Added Reference https://github.com/theonedev/onedev/releases/tag/v7.3.0
    Added Reference https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • Modified Analysis by [email protected]

    Oct. 01, 2022

    Action Type Old Value New Value
    Changed Reference Type https://blog.sonarsource.com/onedev-remote-code-execution/ No Types Assigned https://blog.sonarsource.com/onedev-remote-code-execution/ Exploit, Third Party Advisory
  • CVE Modified by [email protected]

    Sep. 22, 2022

    Action Type Old Value New Value
    Added Reference https://blog.sonarsource.com/onedev-remote-code-execution/ [No Types Assigned]
  • Initial Analysis by [email protected]

    Sep. 16, 2022

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Changed Reference Type https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e No Types Assigned https://github.com/theonedev/onedev/commit/f1e97688e4e19d6de1dfa1d00e04655209d39f8e Patch, Third Party Advisory
    Changed Reference Type https://github.com/theonedev/onedev/releases/tag/v7.3.0 No Types Assigned https://github.com/theonedev/onedev/releases/tag/v7.3.0 Release Notes, Third Party Advisory
    Changed Reference Type https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2 No Types Assigned https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2 Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:* versions up to (excluding) 7.3.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-39205 is associated with the following CWEs:

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.35 }} -0.00%

score

0.71494

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability