{"answers":{"affected":"3 open source packages ship an affected version, including github.com/jmpsec/osctrl. It affects 1 product.","exploited":"There is no known exploitation of CVE-2026-28279 in the wild and no public exploit code.","fix":"Upgrade github.com/jmpsec/osctrl to 0.5.0 or later.","what":"CVE-2026-28279 is a high-severity command injection vulnerability in jmpsec osctrl, published on 26 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-28279 and fix it if it is affected.\n\nWhat it is: CVE-2026-28279 is a high-severity command injection vulnerability in jmpsec osctrl, published on 26 Feb 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-28279 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/jmpsec/osctrl (Go): affected all versions; fixed in 0.5.0\n- github.com/jmpsec/osctrl (Go): affected all versions; fixed in 0.5.0\n- github.com/jmpsec/osctrl (Go): affected all versions; fixed in 0.5.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-28279/ (Markdown: https://insights.sbomify.com/CVE-2026-28279/index.md)","id":"CVE-2026-28279","markdown":"https://insights.sbomify.com/CVE-2026-28279/index.md","name":"CVE-2026-28279","record":{"aliases":["GHSA-rchw-322g-f7rm","GO-2026-4579"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"osquery management solution","requires_auth":"high_privilege","summary":"An authenticated administrator can inject shell commands via the hostname parameter, leading to remote code execution as root on all enrolling endpoints.","user_interaction":"required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"osctrl","vendor":"jmpsec"}],"cvss":{"score":7.4,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"`osctrl-admin` Vulnerable to OS Command Injection via Environment Configuration","id":"CVE-2026-28279","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"command_injection","year":"2026"},"n_packages":3,"n_references":3,"next":{"headline":"`osctrl-admin` has Stored Cross-Site Scripting (XSS) in On-Demand Query List","id":"CVE-2026-28280"},"packages":[{"ecosystem":"Go","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/jmpsec/osctrl","purl":null,"source":"GHSA-rchw-322g-f7rm"},{"ecosystem":"Go","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/jmpsec/osctrl","purl":"pkg:golang/github.com/jmpsec/osctrl","source":"GHSA-rchw-322g-f7rm"},{"ecosystem":"Go","fixed":["0.5.0"],"introduced":["0"],"last_affected":[],"package":"github.com/jmpsec/osctrl","purl":"pkg:golang/github.com/jmpsec/osctrl","source":"GO-2026-4579"}],"prev":{"headline":"LangGraph: Unsafe msgpack deserialization in LangGraph checkpoint loading","id":"CVE-2026-28277"},"products":["osctrl"],"published":"2026-02-26","related":[{"cvss_score":6.1,"headline":"`osctrl-admin` has Stored Cross-Site Scripting (XSS) in On-Demand Query List","id":"CVE-2026-28280","kev_date_added":null,"published":"2026-02-26"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-02-27","vendors":["jmpsec"]},"summary":"An authenticated administrator can inject shell commands via the hostname parameter, leading to remote code execution as root on all enrolling endpoints.","url":"https://insights.sbomify.com/CVE-2026-28279/"}