FlawAtlas
Search the atlas
CVE-2026-28279 High

osctrl is Vulnerable to OS Command Injection via Environment Configuration in github.com/jmpsec/osctrl

osctrl is Vulnerable to OS Command Injection via Environment Configuration in github.com/jmpsec/osctrl

Exploit probability 0.9%
Published March 10, 2026
Required by Not available
Last source change March 23, 2026

02 / AFFECTED SOFTWARE

Affected packages

Unknown Unknown

46 explicit affected versions

Go github.com/jmpsec/osctrl
Go github.com/jmpsec/osctrl

03 / CONNECTIONS

Connected vulnerabilities

related OPENSUSE-SU-2026:21483-1

04 / EVIDENCE

Source records

Open Source Vulnerabilities GHSA-rchw-322g-f7rm

### Summary An OS command injection vulnerability exists in the `osctrl-admin` environment configuration. An authenticated administrator can inject arbitrary shell commands via the hostname parameter when creating or editing environments. These commands are embedded into enrollment one-liner scripts generated using Go's `text/template` package (which does not perform shell escaping) and execute on every endpoint that enrolls using the compromised environment. ### Impact An attacker with administrator access can achieve remote code execution on every endpoint that enrolls using the compromised environment. Commands execute as root/SYSTEM (the privilege level used for osquery enrollment) before osquery is installed, leaving no agent-level audit trail. This enables backdoor installation, credential exfiltration, and full endpoint compromise. ### Patches Fixed in osctrl `v0.5.0`. Users should upgrade immediately. ### Workarounds Restrict osctrl administrator access to trusted personnel. Review existing environment configurations for suspicious hostnames. Monitor enrollment scripts for unexpected commands. ### Credits Leon Johnson and Kwangyun Keum from TikTok USDS JV Offensive Security Operations (Offensive Privacy Team) https://github.com/Kwangyun → @Kwangyun https://github.com/sho-luv → @sho-luv

View original source
Open Source Vulnerabilities GO-2026-4579

osctrl is Vulnerable to OS Command Injection via Environment Configuration in github.com/jmpsec/osctrl

View original source
Open Source Vulnerabilities CVE-2026-28279

osctrl is an osquery management solution. Prior to version 0.5.0, an OS command injection vulnerability exists in the `osctrl-admin` environment configuration. An authenticated administrator can inject arbitrary shell commands via the hostname parameter when creating or editing environments. These commands are embedded into enrollment one-liner scripts generated using Go's `text/template` package (which does not perform shell escaping) and execute on every endpoint that enrolls using the compromised environment. An attacker with administrator access can achieve remote code execution on every endpoint that enrolls using the compromised environment. Commands execute as root/SYSTEM (the privilege level used for osquery enrollment) before osquery is installed, leaving no agent-level audit trail. This enables backdoor installation, credential exfiltration, and full endpoint compromise. This is fixed in osctrl `v0.5.0`. As a workaround, restrict osctrl administrator access to trusted personnel, review existing environment configurations for suspicious hostnames, and/or monitor enrollment scripts for unexpected commands.

View original source

05 / REFERENCES

Further evidence