CVE-2021-21242CWE-74

Pre-Auth Unsafe Deserialization on AttachmentUploadServet

Critical · published January 15, 2021

Patch now

High probability of exploitation

CVSS calls it critical at 10.0. It sits in the 99.5th percentile for exploit probability.

CVSS v3.1
10.0
EPSS
74%
Percentile
99.5
In the wild
Unconfirmed
What it is

🚨 A wild remote code execution vulnerability lurks in OneDev before version 4.0.3! An attacker can execute arbitrary code without any authentication — it’s like letting anyone into your command center, no questions asked! 🔥 Think of it as a security guard at a concert who doesn’t check tickets, allowing anyone to waltz in and mess with the sound system. In this case, the guard is the AttachmentUploadServlet, and it’s been catching untrusted requests instead of keeping them out! An attacker could potentially seize control of your server, executing any code they desire. This means they could alter, steal, or destroy critical data, leading to absolutely devastating consequences for your operations and security! You wouldn't want just anyone messing with your sound system, right?

Put simply

Think of it as a security guard at a concert who doesn’t check tickets, allowing anyone to waltz in and mess with the sound system. In this case, the guard is the AttachmentUploadServlet, and it’s been catching untrusted requests instead of keeping them out! This vulnerability arises from the AttachmentUploadServlet deserializing untrusted data from the `Attachment-Support` header without enforcing authentication or authorization, allowing for pre-auth remote code execution.

What to do

An attacker could potentially seize control of your server, executing any code they desire. This means they could alter, steal, or destroy critical data, leading to absolutely devastating consequences for your operations and security! You wouldn't want just anyone messing with your sound system, right? Upgrade to OneDev version 4.0.3 immediately to eliminate this risk. Ensure your applications do not rely on deserialization of untrusted data for security. It’s also wise to review your security protocols to prevent this kind of vulnerability in the future. You've got this! Secure your OneDev environment and keep those attackers at bay! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.74191 · 99.5th percentile
Weakness
CWE-74 · Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Published
2021-01-15T20:05Z
EPSS history
Timeline
  • 15 JAN 20:05Z
    Pre-Auth Unsafe Deserialization on AttachmentUploadServet
    cvelistv5