CVE-2021-21242
published critical CVSS 3.1 · 10.0Pre-Auth Unsafe Deserialization on AttachmentUploadServet
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, there is a critical vulnerability which can lead to pre-auth remote code execution. AttachmentUploadServlet deserializes untrusted data from the `Attachment-Support` header. This Servlet does not enforce any authentication or authorization checks. This issue may lead to pre-auth remote code execution. This issue was fixed in 4.0.3 by removing AttachmentUploadServlet and not using deserialization
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-74 CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
2Provider assertions
2GitHub_M · cna
Pre-Auth Unsafe Deserialization on AttachmentUploadServet
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 3d5ebdf3b036ed1cb47d5142bef3d00d4f1c337ddefdc7cb9e509a38c12fa584
- Ingested
- 23 Sep 2026, 07:52:31 UTC
- Source record
- Official CVE record