CVE-2021-21245
Last modified
CVE-2021-21245 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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")`). EPSS estimates a 1.20% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Onedev Project | Onedev | < 4.0.3 |
References
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacbPatch, Third Party Advisory
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9Third Party Advisory
- https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacbPatch, Third Party Advisory
- https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2021-21245?
How severe is CVE-2021-21245?
How do I fix CVE-2021-21245?
Are you affected by CVE-2021-21245?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
