CVE-2021-21242 Pre-Auth Unsafe Deserialization on AttachmentUploadServet
Unauthenticated attackers can achieve remote code execution by sending malicious serialized data to the attachment upload endpoint.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-21242?
CVE-2021-21242 is a critical unsafe deserialization vulnerability in theonedev onedev, published on 15 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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
Which versions are affected by CVE-2021-21242?
It affects 1 product.
Products include Onedev Project Onedev.
How do I fix CVE-2021-21242?
No fix has been published for CVE-2021-21242 yet. Limit exposure of the affected software until one is available.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-21242 being exploited?
There is no known exploitation of CVE-2021-21242 in the wild and no public exploit code.
Other vulnerabilities in theonedev onedev
Sources
Also known as GHSA-5q3q-f373-2jv8.