Improper access control in OneDev - CVE-2022-39205

 

Improper access control in OneDev - CVE-2022-39205

Published: September 13, 2022 / Updated: May 5, 2026


Vulnerability identifier: #VU129808
CSH Severity: High
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2022-39205
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
OneDev
Software vendor:
OneDev

Description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper access control in /git-prereceive-callback endpoint when handling crafted requests that spoof localhost access via the X-Forwarded-For header. A remote attacker can send a specially crafted request with query parameters controlling command environment variables to execute arbitrary code.

Exploitation requires that the instance is not protected by a properly configured reverse proxy.


Remediation

Install security update from vendor's website.

External links