Deserialization of Untrusted Data in OneDev - CVE-2021-21242

 

Deserialization of Untrusted Data in OneDev - CVE-2021-21242

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


Vulnerability identifier: #VU129813
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2021-21242
CWE-ID: CWE-502
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: OneDev
Affected software:
OneDev

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to unsafe deserialization in AttachmentUploadServlet when handling a POST request with a crafted Attachment-Support header. A remote attacker can send a specially crafted request to execute arbitrary code.

The servlet does not enforce authentication or authorization checks.


How to mitigate CVE-2021-21242

Install security update from vendor's website.

Sources