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

# CVE-2021-21245

> 10.0 CRITICAL · 🧪 PoC

## Beschreibung

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.

## 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)
- 0c060153fb97c0288a1917efdb17cc426934dacb (Commit)

## Referenzen

- <https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9>
- <https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb>

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