CVE-2021-21245

CRITICAL EPSS 64.3%
Published Jan 15, 20215y ago · Modified Jun 17, 20262w ago
9.8 CVSS 3.1
Critical
Find Similar
Published Jan 15, 2021 5y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
9.8
Exploitability
3.9
Impact
5.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Threat Intelligence

EPSS Exploit Probability
64.3% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-434 Unrestricted Upload of File with Dangerous Type Resource Mgmt

Affected Products 1

VendorProductVersionRange
onedev_projectonedev* <4.0.3

References 2

  • github.com https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb
    PatchThird Party Advisory
  • github.com https://github.com/theonedev/onedev/security/advisories/GHSA-62m2-38q5-96w9
    Third Party Advisory

Remediation

  • github.com https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb
    PatchThird Party Advisory