Improper access control in OneDev - CVE-2022-39205
Published: September 13, 2022 / Updated: May 5, 2026
OneDev
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.