---
cve: "CVE-2021-21242"
severity: "CRITICAL"
cvss: 10.0
epss: "74.2%"
vendor: "theonedev"
kev: false
exploited: false
published: "2021-01-15 20:05:27"
tags: [cve, security, critical]
source: tsecurity.de CVE-Dossier
exported: "2026-09-08T01:02:23+02:00"
---

# CVE-2021-21242

> 10.0 CRITICAL · 🧪 PoC

## Beschreibung

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

## CVSS-Vektor

```
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Netzwerk | bad |
| AC Komplexität | Gering | bad |
| PR Privilegien | Keine | bad |
| UI Interaktion | Keine | bad |
| S Scope | Verändert | bad |
| C Vertraulichkeit | Hoch | bad |
| I Integrität | Hoch | bad |
| A Verfügbarkeit | Keine | good |

## Patch verfügbar (OSV)

- 4bd71941974a1b077e955616d7ba3da6fd21670c (Commit)
- f864053176c08f59ef2d97fea192ceca46a4d9be (Commit)

## Referenzen

- <https://github.com/theonedev/onedev/security/advisories/GHSA-5q3q-f373-2jv8>
- <https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2021-21242) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
