Skip to content
Emerging threatsCritical

CVE-2021-21242Onedev Insecure Deserialization

In OneDev before version 4.0.3, there is a critical vulnerability which can lead to pre-auth remote code execution.

Published Jan 15, 2021 · Updated Oct 20, 2026 · Also known as GHSA-5q3q-f373-2jv8

Key Facts

Patch immediately
  • CVE-2021-21242 is a critical-severity vulnerability (CVSS 9.8 v3.1) affecting Onedev (Onedev Project).
  • It is not listed in any known-exploited vulnerabilities catalog. No public exploit code is known.
  • EPSS estimates a 74% probability of exploitation in the next 30 days.
  • Fixed versions are available, including Onedev 4.0.3.
  • Brandefense priority: patch immediately, because it is very likely to be exploited soon.

Scores

CVSS v3.1

9.8

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS (30-day exploit likelihood)

74%

Higher than 99.4% of all scored CVEs

Exploit maturity

None known

ATLAS score

30/100

Publication score, see How it works

Exploitation Verdict

KEV listed

Not listed

Federal due date

None

No federal due date

Ransomware use

Not reported

Attributed actors

None named

Exploit & Defence Guidance

Exploit maturity

None known

Public exploit code

0

Proof-of-concept links

In-the-wild evidence

0

Reports of active use

Description

OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability which can lead to pre-auth remote code execution. AttachmentUploadServlet deserializes untrusted data from the Attachment-Support header. This Servlet does not enforce any authentication or authorization checks. This issue may lead to pre-auth remote code execution. This issue was fixed in 4.0.3 by removing AttachmentUploadServlet and not using deserialization

Affected Products

2 affected entries in total
ProductAffected versionsFixed in
OnedevOnedev Project< 4.0.34.0.3

Patched Releases

Onedev

4.0.3

Timeline

  1. Publicly disclosed

    Jan 15, 2021

  2. Last updated

    Oct 20, 2026

Weakness Type

  • CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
  • CWE-502 Deserialization of Untrusted Data

FAQ

Common Questions.

Is CVE-2021-21242 On Your Attack Surface?

Brandefense matches it against the products discovered on your perimeter and opens a finding the day a CVE like this is listed.

Request A Demo

Figures as of Dec 4, 2026. Compiled by Brandefense technologies from public vulnerability catalogs; scoring as described in How it works.

To report an error, contact Brandefense.