CVE-2026-136920 in OneDevinfo

Summary

by MITRE • 11/25/2026

OneDev before 17.2.4 contains an argument injection vulnerability in commit query handling that allows authenticated attackers to inject git options through branch or tag names. Attackers can push a branch named like --output=<path> and query it via the commits page or REST API to overwrite server-writable files, causing denial of service.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

Analysis

by VulDB Data Team • 11/25/2026

OneDev versions prior to 17.2.4 are susceptible to an argument injection vulnerability within the commit query handling mechanism. This flaw arises from insufficient sanitization of user-supplied input when processing branch or tag names during git operations initiated through the web interface or REST API. The core technical issue lies in how the application constructs shell commands for underlying git processes, specifically failing to properly escape or validate special characters that are interpreted as command-line flags by the operating system's command interpreter rather than as literal parts of a filename. This allows an authenticated attacker to manipulate the execution context of privileged system utilities.

The exploitation vector involves creating a branch or tag with a name designed to mimic git command options, such as --output=<path>. When this maliciously named reference is queried via the commits page or through the REST API, OneDev passes the name directly into a shell command without adequate protection against argument injection. Consequently, the git process interprets parts of the branch name not as data but as executable flags. This misinterpretation enables an attacker to redirect output streams or manipulate file operations controlled by the underlying system utilities used by the application.

The operational impact of this vulnerability is significant for systems where OneDev runs with write permissions to directories outside its intended scope. By leveraging argument injection, authenticated attackers can overwrite server-writable files located in paths specified within their malicious branch names. This capability leads directly to denial of service conditions as critical configuration or data files may be corrupted or replaced with unauthorized content. Furthermore, depending on the specific file targeted and the permissions under which OneDev operates, this could potentially escalate into arbitrary code execution if writable directories contain executable scripts or configurations that are processed by other system services.

This vulnerability aligns with CWE-78 Improper Neutralization of Special Elements used in an OS Command commonly known as OS Command Injection. It also maps to MITRE ATT&CK technique T1059 Command and Scripting Interpreter, specifically the sub-technique involving shell commands for lateral movement or persistence through file manipulation. The attack requires authentication, which limits its scope but does not diminish its severity given the potential for system compromise.

Mitigation strategies primarily involve upgrading to OneDev version 17.2.4 or later where this argument injection flaw has been addressed by implementing stricter input validation and proper escaping of special characters in branch and tag names before they are passed to underlying git commands. Organizations should also enforce least-privilege principles for the user account running the OneDev service, ensuring it does not have write access to sensitive system directories or files outside its application root. Regular auditing of file permissions and monitoring for unusual process executions can provide additional layers of defense against exploitation attempts while patches are being applied.

Responsible

VulnCheck

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00760

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!