Vulnerability · Published Feb 26, 2026 · Assigned by GitHub_M
CVE-2026-28279`osctrl-admin` Vulnerable to OS Command Injection via Environment Configuration
High 7.4
In plain English
A high-severity OS command injection in osctrl from jmpsec. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.0% (higher than 62% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/jmpsec/osctrl | 0.5.0 | GHSA-rchw-322g-f7rm |
| Go | github.com/jmpsec/osctrl | 0.5.0 | GO-2026-4579 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
References
- https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm x_refsource_CONFIRM
- https://github.com/jmpsec/osctrl/pull/777 x_refsource_MISC
- https://github.com/jmpsec/osctrl/pull/780 x_refsource_MISC