Vulnerabilities · 2021 · Onedev Project
CVE-2021-21248
Onedev Project Onedev vulnerability
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.
Affected products
Onedev. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Onedev Project Onedev runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
More vulnerabilities in Onedev Project products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.