{"id":"CVE-2021-21242","aliases":["CVE-2021-21242"],"related":[],"kind":"vulnerability","state":"published","title":"Pre-Auth Unsafe Deserialization on AttachmentUploadServet","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"OneDev es una plataforma devops todo en uno.&#xa0;En OneDev versiones anteriores a  4.0.3, Se presenta una vulnerabilidad crítica que puede conllevar a una ejecución de código remota previa a la autenticación.&#xa0;El componente AttachmentUploadServlet deserializa los datos no confiables desde el encabezado \"Attachment-Support\".&#xa0;Este Servlet no aplica ninguna comprobación de autenticación o autorización.&#xa0;Este problema puede causar una ejecución de código remota previa a la autenticación.&#xa0;Este problema es corregido en versión 4.0.3 al eliminar AttachmentUploadServlet y no usar la deserialización","source":"nvd"}],"published":"2021-01-15T20:05:27.000Z","modified":"2026-06-17T03:35:06.800Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-74","CWE-502"],"affected":[{"ranges":[{"version":"< 4.0.3","status":"affected"}],"vendor":"theonedev","product":"onedev","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"4.0.3"}],"vendor":"onedev_project","product":"onedev","cpe":"cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/theonedev/onedev/security/advisories/GHSA-5q3q-f373-2jv8","tags":["third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/theonedev/onedev/commit/f864053176c08f59ef2d97fea192ceca46a4d9be","tags":["patch","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21242","url":"https://www.cve.org/CVERecord?id=CVE-2021-21242","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:14.970Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21242","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21242","licence":"Public domain","modified":"2026-06-17T03:35:06.800Z"}],"updatedAt":"2026-11-25T22:57:59.490Z","epss":{"score":0.74191,"percentile":0.9949,"date":"2026-12-01T12:00:22.000Z"}}