CVE-2021-21245
published critical CVSS 3.1 · 10.0Pre-Auth Arbitrary File Upload
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| theonedev | — | onedev< 4.0.3 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 10.0 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| theonedev | onedev | < 4.0.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-434 CWE-434 Unrestricted Upload of File with Dangerous Type
References
2Provider assertions
2GitHub_M · cna
Pre-Auth Arbitrary File Upload
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 533910c6c83db464c52f4e957c734c2dfa7fa90873912ae035713ab730e5ca8b
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record