CVE-2022-39207 Details
Description
Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. During CI/CD builds, it is possible to save build artifacts for later retrieval. They can be accessed through OneDev's web UI after the successful run of a build. These artifact files are served by the webserver in the same context as the UI without any further restrictions. This leads to Cross-Site Scripting (XSS) when a user creates a build artifact that contains HTML. When accessing the artifact, the content is rendered by the browser, including any JavaScript that it contains. Since all cookies (except for the rememberMe one) do not set the HttpOnly flag, an attacker could steal the session of a victim and use it to impersonate them. To exploit this issue, attackers need to be able to modify the content of artifacts, which usually means they need to be able to modify a project's build spec. The exploitation requires the victim to click on an attacker's link. It can be used to elevate privileges by targeting admins of a OneDev instance. In the worst case, this can lead to arbitrary code execution on the server, because admins can create Server Shell Executors and use them to run any command on the server. This issue has been patched in version 7.3.0. Users are advised to upgrade. There are no known workarounds for this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.sonarsource.com/onedev-remote-code-execution/ | CVE | ExploitThird Party Advisory |
| https://github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab | CVE | PatchThird Party Advisory |
| https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg | CVE | Third Party Advisory |
| https://blog.sonarsource.com/onedev-remote-code-execution/ | [email protected] | ExploitThird Party Advisory |
| https://github.com/theonedev/onedev/commit/adb6e31476621f824fc3227a695232df830d83ab | [email protected] | PatchThird Party Advisory |
| https://github.com/theonedev/onedev/security/advisories/GHSA-27fw-gv88-qrpg | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-732 | Incorrect Permission Assignment for Critical Resource | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| onedev project onedev | < 7.3.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Jul 13, 2023 | Reanalysis | [email protected] |
| Oct 1, 2022 | Modified Analysis | [email protected] |
| Sep 23, 2022 | CVE Modified | [email protected] |
| Sep 16, 2022 | Initial Analysis | [email protected] |