Improper access control in OneDev - CVE-2021-21245

 

Improper access control in OneDev - CVE-2021-21245

Published: January 12, 2021 / Updated: May 5, 2026


Vulnerability identifier: #VU129795
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21245
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to upload arbitrary files.

The vulnerability exists due to improper access control in AttachmentUploadServlet when handling file upload requests. A remote attacker can send a crafted upload request with a user-controlled File-Name header to upload arbitrary files.

This file system operation occurs before authentication or authorization checks are enforced.


Affected software

OneDev

How to mitigate CVE-2021-21245

Install security update from vendor's website.

OneDev - update to 4.0.3

External References

Related Security Bulletins