10.0critical
Pre-Auth Arbitrary File Upload
- Severity
- 10.0critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.21% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| theonedev onedev | < 4.0.3 | CVE List |
| onedev_project onedev | before 4.0.3 | NVD |
All scores
| GitHub_M | 10.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
OneDev es una plataforma devops todo en uno. En OneDev versiones anteriores a 4.0.3, AttachmentUploadServlet también guarda unos datos controlados por el usuario ("request.getInputStream()") en una ubicación especificada del usuario ("request.getHeader ("File-Name")"). Este problema puede conllevar a una carga de archivos arbitrarios que pueden ser usados para cargar un WebShell en el servidor de OneDev. Este problema es abordado en la versión 4.0.3, al permitir solo que el archivo cargado esté en la carpeta de archivos adjuntos. El problema del webshell no es posible ya que OneDev nunca ejecuta archivos en la carpeta de archivos adjuntos
References
| https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9 | third-party-advisory | |
| https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb | patch, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21245 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-21245 changed 2026-06-17 | Public domain |