Improper Neutralization of Special Elements Used in a Template Engine in OneDev - CVE-2021-21244

 

Improper Neutralization of Special Elements Used in a Template Engine in OneDev - CVE-2021-21244

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


Vulnerability identifier: #VU129798
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21244
CWE-ID: CWE-1336
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to server-side template injection in ValidQueryParamsValidator when handling unexpected query parameters in REST requests. A remote attacker can send a specially crafted query parameter to execute arbitrary code.

The issue is triggered before authentication or authorization checks are enforced.


Affected software

OneDev

How to mitigate CVE-2021-21244

Install security update from vendor's website.

OneDev - update to 4.0.3

External References

Related Security Bulletins