CVE-2026-28279 `osctrl-admin` Vulnerable to OS Command Injection via Environment Configuration
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| jmpsec github.com/jmpsec/osctrl | < 0.5.0; = < 0.5.0 | 0.5.0 | Fixed |
| jmpsec github.com/jmpsec/osctrl(Go) | < 0.5.0 | 0.5.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| jmpsec github.com/jmpsec/osctrl(Go) | < 0.5.0 | 0.5.0 |
| jmpsec github.com/jmpsec/osctrl | = < 0.5.0 | No fix listed |
| jmpsec github.com/jmpsec/osctrl | < 0.5.0 | 0.5.0 |
References
- https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/jmpsec/osctrl/pull/777 issue-tracking patch
- https://github.com/jmpsec/osctrl/pull/780 issue-tracking patch
- github.com product
- github.com