{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "4.0.3"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4bd71941974a1b077e955616d7ba3da6fd21670c"
            },
            {
              "fixed": "9637fc8fa461c5777282a0021c3deb1e7a48f137"
            }
          ],
          "repo": "https://github.com/theonedev/onedev",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, a Kubernetes REST endpoint exposes two methods that deserialize untrusted data from the request body. These endpoints do not enforce any authentication or authorization checks. This issue may lead to pre-auth RCE. This issue was fixed in 4.0.3 by not using deserialization at KubernetesResource side.",
  "id": "CVE-2021-21243",
  "modified": "2026-03-13T21:52:43.072147492Z",
  "published": "2021-01-15T20:15:12.037Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/theonedev/onedev/security/advisories/GHSA-9mmq-fm8c-q4fv"
    },
    {
      "type": "FIX",
      "url": "https://github.com/theonedev/onedev/commit/9637fc8fa461c5777282a0021c3deb1e7a48f137"
    }
  ],
  "related": [
    "GHSA-9mmq-fm8c-q4fv"
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}