CVE-2021-21245
highpriority · track · 39EPSS 0.012 · 68 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–10
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacbcnnvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9cnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-21245cnnvd
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacbenisa_euvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9enisa_euvd
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacbPatchThird Party Advisorynvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9Third Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan