Critical
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-21243
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:45 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-21243
Complete source record
{
"id": "5f2fdb64ebd2c82df73ac43fb2cf3699e72ad12579962f8af6a4a957594a9a7e",
"url": "https://osv.dev/vulnerability/CVE-2021-21243",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-21243",
"summary": "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.",
"evidence": "osv:CVE-2021-21243",
"products": [],
"severity": "critical",
"structured": {
"id": "CVE-2021-21243",
"aliases": [
"CVE-2021-21243",
"GHSA-9mmq-fm8c-q4fv"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/theonedev/onedev",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "4bd71941974a1b077e955616d7ba3da6fd21670c"
},
{
"fixed": "9637fc8fa461c5777282a0021c3deb1e7a48f137"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "4.0.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "9637fc8fa461c5777282a0021c3deb1e7a48f137"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"v4.0.0",
"v3.2.4",
"v3.2.3",
"v3.2.2",
"v3.2.1",
"v3.2.0",
"v3.1.2",
"v3.1.1",
"v3.1.0",
"v3.0.10",
"v3.0.9",
"v3.0.8",
"v3.0.7",
"v3.0.6",
"v3.0.5",
"v3.0.4",
"2.0.5",
"2.0.4",
"2.0.0",
"2.0-beta-build120",
"2.0-beta-build119"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21243.json",
"vanir_signatures": [
{
"id": "CVE-2021-21243-16df3157",
"digest": {
"threshold": 0.9,
"line_hashes": [
"241454116038766963430399161680906626431",
"314078502555222656048002491499314065447",
"40205319995427603190709270624024070574",
"103269922319081159541126851300724336221",
"308746997139273429644895203850654001320",
"82980383454921326312502973375320860148",
"279812629151204785480795232544870453316",
"48064842004355720352478089605854366322",
"311483091014706123822284141616608622932",
"173348912717021511060871154422690468953",
"275493352357561029974325797243848537326",
"302470007147461142398940759074613931230",
"192238907635528387881542363259005011425",
"288952928836919555511179897369512123767",
"53959606744092215736799662230628302923",
"38678850932765106276765647546665725062",
"79175348790058419220576292605559825385",
"253355559665806764515667701437984541918",
"182184692367158962550903202911949520832"
]
},
"source": "https://github.com/theonedev/onedev/commit/9637fc8fa461c5777282a0021c3deb1e7a48f137",
"target": {
"file": "server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesResource.java"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2021-21243-b59f44a9",
"digest": {
"length": 232,
"function_hash": "22853115447328283823120854265367485492"
},
"source": "https://github.com/theonedev/onedev/commit/9637fc8fa461c5777282a0021c3deb1e7a48f137",
"target": {
"file": "server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesResource.java",
"function": "allocateJobCaches"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2021-21243-b8081a36",
"digest": {
"length": 180,
"function_hash": "153306830354783593288757321419261073604"
},
"source": "https://github.com/theonedev/onedev/commit/9637fc8fa461c5777282a0021c3deb1e7a48f137",
"target": {
"file": "server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesResource.java",
"function": "reportJobCaches"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T14:28:04Z"
}
}
],
"modified": "2026-10-20T14:28:04.306866737Z",
"provider": "osv",
"references": [
"https://github.com/theonedev/onedev/security/advisories/GHSA-9mmq-fm8c-q4fv",
"https://github.com/theonedev/onedev/commit/9637fc8fa461c5777282a0021c3deb1e7a48f137"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-21243",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 389004,
"published_at": "2021-01-15T20:15:12.037+00:00"
}