A Leader in the 2025 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Five years running.A Leader in the Gartner® Magic Quadrant™Read the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI Security Portfolio
      Leading the Way in AI-Powered Security Solutions
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      Digital Forensics, IRR & Breach Readiness
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-28279

CVE-2026-28279: osctrl Admin RCE Vulnerability

CVE-2026-28279 is a remote code execution flaw in osctrl-admin that allows authenticated administrators to inject shell commands via hostname parameters. This article covers technical details, affected versions, and mitigation.

Published: February 27, 2026

CVE-2026-28279 Overview

CVE-2026-28279 is an OS command injection vulnerability affecting osctrl, an osquery management solution. Prior to version 0.5.0, an authenticated administrator can inject arbitrary shell commands via the hostname parameter when creating or editing environments in the osctrl-admin interface. 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.

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

Affected Products

  • osctrl versions prior to v0.5.0
  • osctrl-admin component

Discovery Timeline

  • 2026-02-26 - CVE CVE-2026-28279 published to NVD
  • 2026-02-26 - Last updated in NVD database

Technical Details for CVE-2026-28279

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as OS command injection. The flaw exists in the osctrl-admin environment configuration module where administrator-supplied hostname parameters are processed without proper sanitization.

The core issue stems from the use of Go's text/template package for generating enrollment scripts. Unlike html/template, the text/template package does not perform any escaping of special characters. When an administrator creates or modifies an environment configuration, the hostname value is directly interpolated into shell scripts that are subsequently executed on endpoints during the enrollment process.

The adjacent network attack vector combined with high required privileges (administrator access) provides some natural barriers to exploitation. However, the changed scope and high impact on confidentiality, integrity, and availability across all enrolled endpoints makes this a significant supply-chain attack vector.

Root Cause

The root cause is the use of Go's text/template package for generating shell enrollment scripts without implementing proper input validation or shell escaping on the hostname parameter. The text/template package is designed for general-purpose text generation and does not sanitize inputs for shell command contexts. When untrusted or semi-trusted data (administrator-provided hostnames) is interpolated directly into shell commands, attackers can break out of the intended context and inject arbitrary commands.

Attack Vector

The attack requires adjacent network access and valid administrator credentials to the osctrl-admin interface. Once authenticated, an attacker can navigate to environment configuration settings and inject malicious shell commands within the hostname field. Common injection payloads might include command separators (;, &&, ||) or command substitution syntax (backticks or $()).

When endpoints subsequently attempt to enroll using the compromised environment, they fetch and execute the poisoned enrollment script. Since enrollment typically runs with elevated privileges (root on Linux/macOS, SYSTEM on Windows) to install osquery, the injected commands inherit these privileges. The execution occurs before osquery installation completes, meaning standard osquery logging and audit trails do not capture the malicious activity.

The vulnerability description indicates that the attack manifests through enrollment one-liner scripts. Administrators with access to the osctrl-admin console can embed shell metacharacters in the hostname field, which are then rendered unsanitized into scripts fetched by enrolling endpoints. For detailed technical information, refer to the GitHub Security Advisory GHSA-rchw-322g-f7rm.

Detection Methods for CVE-2026-28279

Indicators of Compromise

  • Unusual or suspicious strings in environment hostname configurations containing shell metacharacters (;, &&, ||, $(), backticks)
  • Modified enrollment scripts containing unexpected commands or payloads
  • Endpoints exhibiting unusual behavior immediately following osquery enrollment
  • Network connections to unknown external hosts during the enrollment process

Detection Strategies

  • Audit osctrl-admin configuration changes, specifically focusing on environment hostname modifications
  • Review enrollment script templates for any injected commands or suspicious syntax
  • Monitor osctrl-admin access logs for administrator sessions making environment configuration changes
  • Implement file integrity monitoring on enrollment script generation paths

Monitoring Recommendations

  • Enable comprehensive logging for all osctrl-admin administrative actions
  • Configure alerts for environment configuration changes, particularly hostname modifications
  • Monitor endpoint enrollment processes for execution of unexpected commands
  • Establish baseline behavior for enrollment scripts and alert on deviations

How to Mitigate CVE-2026-28279

Immediate Actions Required

  • Upgrade osctrl to version v0.5.0 or later immediately
  • Audit all existing environment configurations for suspicious hostname values containing shell metacharacters
  • Review administrator access logs for unauthorized or suspicious configuration changes
  • Restrict osctrl-admin access to verified, trusted personnel only

Patch Information

The vulnerability is fixed in osctrl v0.5.0. The fix was implemented through GitHub Pull Request #777 and GitHub Pull Request #780. Organizations should update to version v0.5.0 or later to remediate this vulnerability. The security advisory with full details is available at the GitHub Security Advisory GHSA-rchw-322g-f7rm.

Workarounds

  • Restrict osctrl administrator access to trusted personnel only and implement strong authentication controls
  • Review all existing environment configurations for suspicious hostnames containing shell metacharacters or command syntax
  • Monitor enrollment scripts for unexpected commands before deploying to endpoints
  • Implement network segmentation to limit the blast radius of potentially compromised enrollment scripts
bash
# Review environment configurations for suspicious hostnames
# Look for shell metacharacters in hostname fields
grep -E "[;\|\$\`&]" /path/to/osctrl/configs/*

# Audit administrator access (example log review)
grep -i "environment" /var/log/osctrl/admin.log | grep -i "hostname"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOsctrl

  • SeverityHIGH

  • CVSS Score7.3

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:A/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Pull Request #777

  • GitHub Pull Request #780

  • GitHub Security Advisory GHSA-rchw-322g-f7rm
  • Related CVEs
  • CVE-2026-28280: osctrl-admin Stored XSS Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • English
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use