SB2022091391 - Multiple vulnerabilities in OneDev
Published: September 13, 2022 Updated: May 5, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 4 vulnerabilities.
1) Improper access control (CVE-ID: CVE-2022-39208)
CWE-ID: CWE-284 - Improper Access Control
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to improper access control in the /opt/onedev/sites/ directory when handling requests for site files. A remote attacker can read exposed project files and repository data to disclose sensitive information.
Project IDs are incremental, which can facilitate enumeration of project data.
2) Cross-site scripting (CVE-ID: CVE-2022-39207)
CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to cross-site scripting in build artifact handling in the web UI when serving attacker-controlled HTML artifact files. A remote user can upload or modify a crafted artifact and trick the victim into opening a link to execute arbitrary code.
Exploitation requires the ability to modify artifact content, typically by modifying a project's build spec, and user interaction is required to open the crafted link.
3) Improper access control (CVE-ID: CVE-2022-39206)
CWE-ID: CWE-284 - Improper Access Control
CVSSv4: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
The vulnerability allows a remote user to gain root privileges on the host system.
The vulnerability exists due to improper access control in Docker-based job executors when mounting the Docker socket into Docker steps. A remote user can define and trigger a CI/CD job that controls the host Docker daemon to gain root privileges on the host system.
Exploitation requires permission to create a project and the ability to define and trigger CI/CD jobs.
4) Improper access control (CVE-ID: CVE-2022-39205)
CWE-ID: CWE-284 - Improper Access Control
CVSSv4: 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
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 update from vendor's website.
References
- https://github.com/theonedev/onedev/security/advisories/GHSA-h427-rv56-c9h2
- https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg
- https://github.com/theonedev/onedev/security/advisories/GHSA-gjq9-4xx9-cr3q
- https://github.com/theonedev/onedev/security/advisories/GHSA-4f9h-h82c-4xm2