CVE-2021-21248

Critical

Description

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.

SeverityCritical
CVSS9.6
Exploit probability—
ProductOnedev
PublishedJan 15, 2021
First seenJan 15, 2021
Weakness typeCWE-74Injection

How to fix

Update
  • onedev_project onedev4.0.3 or later

Affected products

ProductAffected versionsFixed in
onedev_project onedevv < 4.0.34.0.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.