Patchfirst
CVE-2021-21242 Critical · 10.0 EPSS 74.2%

Pre-Auth Unsafe Deserialization on AttachmentUploadServet

No fixed version listed yet.Check the vendor advisory. References ↓

theonedev · onedev

Summary

The flaw is an unsafe deserialization of untrusted data taken from the Attachment-Support header in AttachmentUploadServlet, a component of the OneDev devops platform (product: onedev, vendor: theonedev). An unauthenticated remote attacker with network access can send a crafted request to that servlet to achieve remote code execution, with no user interaction and no prior authentication needed.

Official description · CVE.org

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

Breakdown
26.9 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 15 Jan 2021. No public exploit code or confirmed exploitation is recorded.

See the family tree

6 related vulnerabilities in the same code over 4 years.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2021-21242Pre-Auth Unsafe Deserialization on AttachmentUploadServet15 Jan 2021
  2. relatedMedium

    Why these are linked:

    CVE-2021-21244Pre-Auth SSTI via Bean validation message tampering15 Jan 2021
  3. same family
    CVE-2021-21245Pre-Auth Arbitrary File Upload15 Jan 2021
  4. same family
    CVE-2022-39207Persistent XSS in OneDev13 Sep 2022
  5. same family
    CVE-2022-39208Git Repository Disclosure in Onedev13 Sep 2022
  6. same family
    CVE-2024-45309OneDev vulnerable to arbitrary file reading for unauthenticated…21 Oct 2024

Affected versions and fixes

as published in the CVE record

theonedev onedev

Affected: < 4.0.3

References

2 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close