CVE-2021-21245
JSON

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 packageVersionsReported by
theonedev onedev< 4.0.3CVE List
onedev_project onedevbefore 4.0.3NVD

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV: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.&#xa0;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")").&#xa0;Este problema puede conllevar a una carga de archivos arbitrarios que pueden ser usados para cargar un WebShell en el servidor de OneDev.&#xa0;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.&#xa0;El problema del webshell no es posible ya que OneDev nunca ejecuta archivos en la carpeta de archivos adjuntos

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21245 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-21245 changed 2026-06-17Public domain