CVE-2021-21248
mediumpriority · track · 36EPSS 0.015 · 74 %ileEUUSEPSS · scored 2026-10-27
OneDev is an all-in-one devops platform. In OneDev before version 4.0.3, there is a critical vulnerability involving the build endpoint parameters. InputSpec is used to define parameters of a Build spec. It does so by using dynamically generated Groovy classes. A user able to control job parameters can run arbitrary code on OneDev's server by injecting arbitrary Groovy code. The ultimate result is in the injection of a static constructor that will run arbitrary code. For a full example refer to the referenced GHSA. This issue was addressed in 4.0.3 by escaping special characters such as quote from user input.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–critical · 6.5–9.6
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (2)
Products and version ranges known to be affected.
also known as (2)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/theonedev/onedev/commit/39d95ab8122c5d9ed18e69dc024870cae08d2d60cnnvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-gwp4-5498-hv5fcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-21248cnnvd
- https://github.com/theonedev/onedev/commit/39d95ab8122c5d9ed18e69dc024870cae08d2d60enisa_euvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-gwp4-5498-hv5fenisa_euvd
- https://github.com/theonedev/onedev/commit/39d95ab8122c5d9ed18e69dc024870cae08d2d60PatchThird Party Advisorynvd
- https://github.com/theonedev/onedev/security/advisories/GHSA-gwp4-5498-hv5fThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan