CVE-2021-21245
CVE-2021-21245 is a critical-severity vulnerability in Onedev Project Onedev with a CVSS 3.x base score of 10.0. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-434.
Key facts
- Severity: Critical (CVSS 3.x base score 10.0)
- CVSS v2: 7.5
- EPSS exploit prediction: 1% (67th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-434
- Affected product: Onedev Project Onedev
- Published:
- Last modified:
Description
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user controlled data (`request.getInputStream()`) to a user specified location (`request.getHeader("File-Name")`). This issue may lead to arbitrary file upload which can be used to upload a WebShell to OneDev server. This issue is addressed in 4.0.3 by only allowing uploaded file to be in attachments folder. The webshell issue is not possible as OneDev never executes files in attachments folder.
Frequently asked questions
- What is CVE-2021-21245?
- OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, AttachmentUploadServlet also saves user controlled data (`request.getInputStream()`) to a user specified location (`request.getHeader("File-Name")`). This issue may lead to arbitrary file upload which can be used to upload a WebShell to OneDev server. This issue is addressed in 4.0.3 by only allowing uploaded file to be in attachments folder. The webshell issue is not possible as OneDev never executes files in attachments folder.
- How severe is CVE-2021-21245?
- CVE-2021-21245 has a CVSS 3.x base score of 10.0, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
- Is CVE-2021-21245 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (67th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2021-21245?
- CVE-2021-21245 affects Onedev Project Onedev. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2021-21245?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2021-21245 published?
- CVE-2021-21245 was published on 2021-01-15 and last updated on 2026-06-17.
References
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9
Affected products (1)
- cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*
More vulnerabilities in Onedev Project Onedev
- CVE-2021-21242 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which can…
- CVE-2021-21244 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth…
- CVE-2021-21243 — Critical (CVSS 10.0): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, a Kubernetes REST endpoint exposes two methods…
- CVE-2022-39206 — Critical (CVSS 9.9): Onedev is an open source, self-hosted Git Server with CI/CD and Kanban. When using Docker-based job executors, the…
- CVE-2021-21249 — Critical (CVSS 9.6): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is an issue involving YAML parsing which…
- CVE-2021-21248 — Critical (CVSS 9.6): OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability involving…
All CVEs affecting Onedev Project Onedev →
Other CWE-434 (Unrestricted Upload of File with Dangerous Type) vulnerabilities
- CVE-2026-39770 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Upload in Doctreat <= 1.7.0 versions.
- CVE-2026-32579 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Upload in Kognetiks Chatbot for WordPress <= 2.4.9 versions.
- CVE-2026-102427 — Critical (CVSS 10.0): Joomla Extension - ordasoft.com - Unauthenticated Remote Code Execution in OrdaSoft Joomla CCK < 8.3.16 -…
- CVE-2026-4357 — Critical (CVSS 10.0): The Embed HTML5 Game WordPress plugin through 1.3 does not properly restrict who can upload files via the plugin, as…
- CVE-2026-84147 — Critical (CVSS 10.0): This vulnerability exists in the ERP system due to improper authentication controls and inadequate file type validation…
- CVE-2026-81780 — Critical (CVSS 10.0): Unauthenticated Arbitrary File Upload in Hash Form <= 1.4.2 versions.
Browse all CWE-434 (Unrestricted Upload of File with Dangerous Type) vulnerabilities →