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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2021
- CVE-2021-2124Vulnerability in the Oracle VM VirtualBox product of Oracle …6
- CVE-2021-21240httplib2 is a comprehensive HTTP client library for Python. …7.5
- CVE-2021-21241The Python "Flask-Security-Too" package is used for adding s…7.4
- CVE-2021-21242OneDev is an all-in-one devops platform. In OneDev before ve…9.8
- CVE-2021-21243OneDev is an all-in-one devops platform. In OneDev before ve…9.8
- CVE-2021-21244OneDev is an all-in-one devops platform. In OneDev before ve…9.8
- CVE-2021-21246OneDev is an all-in-one devops platform. In OneDev before ve…7.5
- CVE-2021-21247OneDev is an all-in-one devops platform. In OneDev before ve…8.8
- CVE-2021-21248OneDev is an all-in-one devops platform. In OneDev before ve…8.8
- CVE-2021-21249OneDev is an all-in-one devops platform. In OneDev before ve…8.8
- CVE-2021-2125Vulnerability in the Oracle VM VirtualBox product of Oracle …4.6
- CVE-2021-21250OneDev is an all-in-one devops platform. In OneDev before ve…6.5
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
