Code Injection in OneDev - CVE-2021-21248

 

Code Injection in OneDev - CVE-2021-21248

Published: January 12, 2021 / Updated: May 5, 2026


Vulnerability identifier: #VU129787
CSH Severity: Medium
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2021-21248
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
OneDev
Software vendor:
OneDev

Description

The vulnerability allows a remote user to execute arbitrary code.

The vulnerability exists due to code injection in InputSpec when processing user-controlled build parameters. A remote user can inject arbitrary Groovy code to execute arbitrary code.

Exploitation requires the ability to control job parameters in a build specification.


Remediation

Install security update from vendor's website.

External links