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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.4
- **CVSS:** 7.4 (v3.1, CNA) `CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: High; Privileges required: High; User interaction: Required; Scope: Changed (impact reaches other components); Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.15% (percentile 67, 2026-11-28)
- **CWE:** CWE-78
- **Aliases:** GHSA-rchw-322g-f7rm, GO-2026-4579
- **Published:** 2026-02-26T22:59:29.972Z
- **Modified:** 2026-06-17T10:28:25.273Z

## Who should check

- Projects that depend on Go package github.com/jmpsec/osctrl (\< 0.5.0)
- Anyone running jmpsec osctrl \< 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.

## Affected and fixed versions

- Go `github.com/jmpsec/osctrl`: affected \< 0.5.0; fixed 0.5.0 (osv)
- jmpsec osctrl: \< 0.5.0 (cvelist)

## Mitigation

- Upgrade github.com/jmpsec/osctrl to 0.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-28279. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-28279.md
Affected: github.com/jmpsec/osctrl < 0.5.0
Fixed in: 0.5.0

Steps:
1. Search this machine and project for github.com/jmpsec/osctrl (Go), jmpsec osctrl: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-28279 being exploited?

There is no confirmed exploitation: CVE-2026-28279 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.15% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-28279?

High: CVSS 7.4 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-28279?

github.com/jmpsec/osctrl \< 0.5.0.

### Is there a fix for CVE-2026-28279?

Yes. Fixed in 0.5.0. Upgrade github.com/jmpsec/osctrl to 0.5.0 or later.

### How do I check if I'm affected by CVE-2026-28279?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2026-28279>
- patch: <https://github.com/jmpsec/osctrl/pull/777>
- patch: <https://github.com/jmpsec/osctrl/pull/780>
- other: <https://github.com/jmpsec/osctrl>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-28279>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-rchw-322g-f7rm> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2026-4579> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-28279> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-28279>
