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
CVSSv4.0: 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/E:U/U:Green
CVE-ID: CVE-2021-21245
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
OneDev
Software vendor:
OneDev

Description

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.


Remediation

Install security update from vendor's website.

External links