{"cve":"CVE-2026-28279","nvd":{"published":"2026-02-26T23:16:37.567","modified":"2026-06-17T10:28:25.273","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":8.4},"cwes":["CWE-78"],"references":["https://github.com/jmpsec/osctrl/pull/777","https://github.com/jmpsec/osctrl/pull/780","https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm"],"products":["jmpsec:osctrl"],"source":"nvd","synced_at":"2026-10-19T22:24:17.937441719+00:00"},"epss":{"cve":"CVE-2026-28279","score":0.00967,"percentile":0.6181,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-rchw-322g-f7rm","url":"https://osv.dev/vulnerability/GHSA-rchw-322g-f7rm","summary":"osctrl is Vulnerable to OS Command Injection via Environment Configuration","modified":"2026-03-23T04:56:03.882983230Z","packages":[{"ecosystem":"Go","name":"github.com/jmpsec/osctrl","purl":"pkg:golang/github.com/jmpsec/osctrl","ranges":["<0.5.0"],"fixed":["0.5.0"]}]},{"id":"GO-2026-4579","url":"https://osv.dev/vulnerability/GO-2026-4579","summary":"osctrl is Vulnerable to OS Command Injection via Environment Configuration in github.com/jmpsec/osctrl","modified":"2026-03-23T04:51:38.412315Z","packages":[{"ecosystem":"Go","name":"github.com/jmpsec/osctrl","purl":"pkg:golang/github.com/jmpsec/osctrl","ranges":["<0.5.0"],"fixed":["0.5.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}