Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-21244

OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth server side template injection via Bean validation message tampering. Full details in the reference GHSA. This issue was fixed in 4.0.3 by disabling validation interpolation completely.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-21244
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 12:45 UTC · Revision 1

Source evidence

CVE-2021-21244

core-osv · Original source

Published 15 Jan 2021, 20:15 UTC

OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth server side template injection via Bean validation message tampering. Full details in the reference GHSA. This issue was fixed in 4.0.3 by disabling validation interpolation completely.

osv:CVE-2021-21244
Complete source record
{
  "id": "df37ad40d855c81af7b5b815d45bafd22bfd14b7c57ebc17667a1fcb9ab105a9",
  "url": "https://osv.dev/vulnerability/CVE-2021-21244",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-21244",
    "summary": "OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, There is a vulnerability that enabled pre-auth server side template injection via Bean validation message tampering. Full details in the reference GHSA. This issue was fixed in 4.0.3 by disabling validation interpolation completely.",
    "evidence": "osv:CVE-2021-21244",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2021-21244",
      "aliases": [
        "CVE-2021-21244",
        "GHSA-vm26-xg39-cfj4"
      ],
      "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": "4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:onedev_project:onedev:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "4.0.3"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v4.0.2",
            "v4.0.1",
            "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-21244.json",
            "vanir_signatures": [
              {
                "id": "CVE-2021-21244-00f1dfb7",
                "digest": {
                  "length": 105,
                  "function_hash": "314345820516131289704848469007129524610"
                },
                "source": "https://github.com/theonedev/onedev/commit/4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65",
                "target": {
                  "file": "server-core/src/main/java/io/onedev/server/CoreModule.java",
                  "function": "get"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-21244-9bf28ea7",
                "digest": {
                  "length": 7472,
                  "function_hash": "273615317538706682405484608998595562832"
                },
                "source": "https://github.com/theonedev/onedev/commit/4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65",
                "target": {
                  "file": "server-core/src/main/java/io/onedev/server/CoreModule.java",
                  "function": "configure"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2021-21244-b046c707",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "145208361911632134107315593457353159029",
                    "283939253622884751924792024688269929394",
                    "47811403021720389437033609848088136124",
                    "64441979548177091500874682461307828276",
                    "194885136040210411584264671351583632863",
                    "217384460011324300131371455490280892268",
                    "304249122755757553178080581108472414753",
                    "223913018099819470493469984824242314602"
                  ]
                },
                "source": "https://github.com/theonedev/onedev/commit/4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65",
                "target": {
                  "file": "server-core/src/main/java/io/onedev/server/CoreModule.java"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-20T14:28:02Z"
          }
        }
      ],
      "modified": "2026-10-20T14:28:02.679887950Z",
      "provider": "osv",
      "references": [
        "https://github.com/theonedev/onedev/security/advisories/GHSA-vm26-xg39-cfj4",
        "https://github.com/theonedev/onedev/commit/4f5dc6fb9e50f2c41c4929b0d8c5824b2cca3d65"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2021-21244",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 389001,
  "published_at": "2021-01-15T20:15:12.097+00:00"
}