{"id":"CVE-2021-21242","published":"2021-01-15T20:05:27Z","modified":"2024-08-03T18:09:14Z","title":"Pre-Auth Unsafe Deserialization on AttachmentUploadServet","vendor":"theonedev","product":"onedev","tier":"core","eol":null,"affectedVersions":[{"vendor":"theonedev","product":"onedev","versions":["< 4.0.3"]}],"description":{"text":"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","provenance":"source","from":"CVE.org"},"summary":{"text":"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.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T03:45:30Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.74191,"percentile":0.99496,"date":"2026-11-20","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/theonedev/onedev/security/advisories/GHSA-5q3q-f373-2jv8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2021-8625","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-8625","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":null,"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-01-15","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-21242","provenance":"source"}],"speed":{"daysToPublicExploit":null,"firstExploitFrom":null,"daysToKev":null},"priority":{"score":26.9,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.9,"detail":"percentile 0.9950"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":0.0,"detail":"none found"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"familyId":"fam-theonedev-onedev-cve-2021-21242","children":[{"from":"CVE-2021-21242","to":"CVE-2021-21244","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server-core/src/main/java/io/onedev/server/CoreModule.java"],"commits":["https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","https://github.com/theonedev/onedev/commit/4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65"],"basis":"rarely changed file"}]},{"from":"CVE-2021-21242","to":"CVE-2021-21245","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server-core/src/main/java/io/onedev/server/web/component/markdown/MarkdownEditor.java"],"commits":["https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","https://github.com/theonedev/onedev/commit/0c060153fb97c0288a1917efdb17cc426934dacb"],"basis":"rarely changed file"}]},{"from":"CVE-2021-21242","to":"CVE-2022-39208","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["server-product/src/main/java/io/onedev/server/product/ProductServletConfigurator.java"],"commits":["https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","https://github.com/theonedev/onedev/commit/8aa94e0daf8447cdf76d4f27bfda0a85a7ea5822"],"basis":"rarely changed file"}]}]}}