{"id":"CVE-2026-28279","published":"2026-02-26T22:59:29Z","modified":"2026-02-27T17:33:49Z","title":"`osctrl-admin` Vulnerable to OS Command Injection via Environment Configuration","vendor":"jmpsec","product":"osctrl","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.4,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00953,"percentile":0.62228,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jmpsec/osctrl/pull/777","tags":["x_refsource_MISC"]},{"url":"https://github.com/jmpsec/osctrl/pull/780","tags":["x_refsource_MISC"]}],"priority":{"score":17.6,"factors":[{"name":"EPSS percentile","points":12.45},{"name":"CVSS severity","points":5.18}]},"vendorSlug":"jmpsec","affectedVersions":[{"vendor":"jmpsec","product":"osctrl","versions":["< 0.5.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-02-27T17:33:31.500697Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/jmpsec/osctrl","vulnerableRanges":["<0.5.0"],"patched":["0.5.0"],"from":["GHSA-rchw-322g-f7rm","GO-2026-4579"],"provenance":"source"}],"summary":{"text":"The osctrl-admin environment configuration in the osctrl osquery management solution is vulnerable to OS command injection through the hostname parameter when creating or editing environments, with commands embedded unescaped into generated enrollment scripts. An attacker needs administrator access to osctrl-admin, and exploitation requires a user to run the enrollment script on the endpoint, after which the injected commands execute with root/SYSTEM privileges on every endpoint enrolling through the affected environment.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:38:27Z"},"euvd":{"id":"EUVD-2026-8922","exploited":false,"provenance":"source"}}