CVE-2026-28279: Github.com/jmpsec/osctrl Osctrl Is Vulnerable To OS Vulnerability

HIGH
Advisory Identifier: GHSA-rchw-322g-f7rm
CVSS 7.3
CWE-78
Published
Advisory Summary

CVE-2026-28279 is a HIGH (CVSS 7.3) osctrl is vulnerable to os vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Github.com/jmpsec/osctrl libraries in the Go ecosystem. The issue involves osctrl is vulnerable to os command injection via environment configuration. Remediation is available by upgrading affected packages to version 0.5.0.

CVE-2026-28279 at a Glance

CVE Identifier CVE-2026-28279
GHSA Identifier GHSA-rchw-322g-f7rm
Severity HIGH
CVSS v3.1 Base Score 7.3
CWE Classification CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Affected Product Github.com/jmpsec/osctrl
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.3

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H).

Attack Vector Adjacent (AV:A)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2026-28279

To remediate this vulnerability, upgrade all affected Github.com/jmpsec/osctrl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/jmpsec/osctrl fixed: 0.5.0
Upgrade github.com/jmpsec/osctrl to 0.5.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/jmpsec/osctrl

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-28279, inspect your project dependencies for Github.com/jmpsec/osctrl:

inspect dependencies for github.com/jmpsec/osctrl

Analyze the terminal output to locate any version of Github.com/jmpsec/osctrl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.5.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Github.com/jmpsec/osctrl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary 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. ### Impact 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. ### Patches Fixed in osctrl `v0.5.0`. Users should upgrade immediately. ### Workarounds Restrict osctrl administrator access to trusted personnel. Review existing environment configurations for suspicious hostnames. Monitor enrollment scripts for unexpected commands. ### Credits Leon Johnson and Kwangyun Keum from TikTok USDS JV Offensive Security Operations (Offensive Privacy Team) https://github.com/Kwangyun → @Kwangyun https://github.com/sho-luv → @sho-luv

CVE-2026-28279 Affected Github.com/jmpsec/osctrl Versions

1 component(s)
Fixed Versions:
0.5.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/jmpsec/osctrl
Go
< 0.5.0
0.5.0

References

Frequently Asked Questions

What is CVE-2026-28279?
CVE-2026-28279 is a security vulnerability in Github.com/jmpsec/osctrl involving osctrl is Vulnerable to OS Command Injection via Environment Configuration under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection').
Which Github.com/jmpsec/osctrl versions are affected?
Affected versions include releases prior to 0.5.0 across affected packages: github.com/jmpsec/osctrl.
What version fixes CVE-2026-28279?
Upgrading to 0.5.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/jmpsec/osctrl affected?
Yes, github.com/jmpsec/osctrl is affected in releases prior to 0.5.0. Upgrade your dependency to 0.5.0 or later.
What is the CVSS score of CVE-2026-28279?
CVE-2026-28279 has a CVSS v3.1 base score of 7.3 (HIGH) with vector string CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H.
What CWE is associated with CVE-2026-28279?
CVE-2026-28279 is classified under CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') (The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.).
How can I check Go dependencies for CVE-2026-28279?
Run the dependency tree command: 'inspect dependencies for github.com/jmpsec/osctrl'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-rchw-322g-f7rm",
  "modified" : "2026-02-28T02:05:48Z",
  "published" : "2026-02-28T02:05:48Z",
  "aliases" : [ "CVE-2026-28279" ],
  "summary" : "osctrl is Vulnerable to OS Command Injection via Environment Configuration",
  "details" : "### Summary\nAn 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.\n\n### Impact\nAn 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.\n\n### Patches\nFixed in osctrl `v0.5.0`. Users should upgrade immediately.\n\n### Workarounds\nRestrict osctrl administrator access to trusted personnel. Review existing environment configurations for suspicious hostnames. Monitor enrollment scripts for unexpected commands.\n\n### Credits\n\nLeon Johnson and Kwangyun Keum from TikTok USDS JV Offensive Security Operations (Offensive Privacy Team)\n\nhttps://github.com/Kwangyun → @Kwangyun\nhttps://github.com/sho-luv → @sho-luv",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/jmpsec/osctrl"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "0.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/jmpsec/osctrl/security/advisories/GHSA-rchw-322g-f7rm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-28279"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jmpsec/osctrl/pull/777"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jmpsec/osctrl/pull/780"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jmpsec/osctrl"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-78" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-28T02:05:48Z",
    "nvd_published_at" : "2026-02-26T23:16:37Z"
  }
}