{"cve":"CVE-2021-21242","nvd":{"published":"2021-01-15T21:15:13.227","modified":"2026-06-17T03:35:06.800","status":"Modified","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","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-502","CWE-74"],"references":["https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","https://github.com/theonedev/onedev/security/advisories/GHSA-5q3q-f373-2jv8","https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","https://github.com/theonedev/onedev/security/advisories/GHSA-5q3q-f373-2jv8"],"products":["onedev_project:onedev"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-21242","score":0.74191,"percentile":0.99486,"date":"2026-11-01"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}