`osctrl-admin` Vulnerable to OS Command Injection via Environment Configuration
Key facts
- Attack vector
- Adjacent network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| jmpsec | osctrl | before 0.5.0 | 0.5.0 | Patch available | CNA |
| — | github.com/jmpsec/osctrl (Go) | before 0.5.0 | 0.5.0 | Patch available | GHSA-rchw-322g-f7rm |
- osctrl Vendorjmpsec Affected before 0.5.0 Fixed in 0.5.0 Patch available CNA
- github.com/jmpsec/osctrl (Go) Vendor— Affected before 0.5.0 Fixed in 0.5.0 Patch available GHSA-rchw-322g-f7rm
Remediation
- Fix · CNA osctrl (jmpsec) Fixed in 0.5.0
- Fix · GHSA-rchw-322g-f7rm github.com/jmpsec/osctrl (Go) Fixed in 0.5.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-28279
- 2026-10-03 Alias added: GHSA-rchw-322g-f7rm
References
More jmpsec Osctrl vulnerabilities
- TI-2026-22589 `osctrl-admin` has Stored Cross-Site Scripting (XSS) in On-Demand Query List CVSS 3.1HIGH 8.7
Sources
- CVE-2026-28279 · CVE Program
- CVE-2026-28279 · NVD
- FIRST EPSS
- GHSA-rchw-322g-f7rm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences