A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • 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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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
      DFIR, Breach Readiness, & Compromise Assessments
    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
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • 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-34965

CVE-2026-34965: Cockpit CMS RCE Vulnerability

CVE-2026-34965 is an authenticated remote code execution flaw in Cockpit CMS that enables attackers to inject PHP code via collection rules. This article covers technical details, affected versions, impact, and mitigation.

Updated: May 15, 2026

CVE-2026-34965 Overview

CVE-2026-34965 is an authenticated remote code execution vulnerability in Cockpit CMS. The flaw resides in the /cockpit/collections/save_collection endpoint and is tracked under CWE-94: Improper Control of Generation of Code. Authenticated attackers with collection management privileges can inject arbitrary PHP code through collection rules parameters. The injected code is written directly to server-side PHP files and executed via include(), granting attackers arbitrary command execution on the underlying server.

Critical Impact

Attackers with low-privileged authenticated access can achieve full remote code execution on the host, leading to complete compromise of confidentiality, integrity, and availability of the Cockpit CMS server.

Affected Products

  • Cockpit CMS (agentejo/cockpit)
  • Installations exposing the /cockpit/collections/save_collection endpoint
  • Deployments granting collection management privileges to non-administrative users

Discovery Timeline

  • 2026-04-29 - CVE-2026-34965 published to the National Vulnerability Database
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-34965

Vulnerability Analysis

The vulnerability stems from unsafe handling of user-supplied input in collection rule parameters. Cockpit CMS persists collection rule definitions to disk as PHP source files. When the application later loads a collection, it processes these files using include(), which causes the PHP runtime to evaluate any code contained within. Because the save_collection handler does not sanitize, validate, or encode rule parameters before writing them to the rules PHP file, an attacker can embed arbitrary PHP syntax that the interpreter executes on the next include.

Exploitation requires an authenticated session with collection management privileges. The attack vector is network-based and exhibits low complexity, requiring no user interaction. A successful exploit yields PHP code execution under the web server account, enabling command execution, file system access, credential theft, and lateral movement.

Root Cause

The root cause is improper neutralization of directives in dynamically generated code (CWE-94). Rule parameters submitted to /cockpit/collections/save_collection are concatenated into a PHP file template and persisted to disk without escaping. The application implicitly trusts that authenticated collection editors will only submit benign rule expressions, breaking the boundary between data and code.

Attack Vector

An attacker first obtains valid Cockpit CMS credentials with permissions to create or modify collections. The attacker then issues a POST request to /cockpit/collections/save_collection, embedding crafted PHP payloads inside the collection's rules property. Cockpit writes the malicious content into the collection's rules PHP file. The injected payload executes when the application includes the file during normal collection access, returning command output or establishing a reverse shell.

For technical reproduction details, see the VulnCheck Advisory: Cockpit CMS RCE and the public proof-of-concept gist.

Detection Methods for CVE-2026-34965

Indicators of Compromise

  • POST requests to /cockpit/collections/save_collection containing PHP tokens such as <?php, system(, exec(, passthru(, or base64_decode( in rule parameters.
  • Recently modified PHP files under Cockpit's collection storage directory containing shell command primitives or obfuscated payloads.
  • Web server processes (php-fpm, apache, nginx workers) spawning child processes such as sh, bash, nc, curl, or wget.
  • Outbound network connections initiated by the PHP runtime to unexpected hosts immediately after collection save operations.

Detection Strategies

  • Inspect HTTP request bodies sent to the save_collection endpoint and alert on PHP language constructs in rule fields.
  • Apply file integrity monitoring to Cockpit's collections directory and flag PHP files written by the web application user outside expected change windows.
  • Correlate authentication events for collection editor accounts with subsequent process execution telemetry from the web host.

Monitoring Recommendations

  • Forward web server access logs and PHP error logs to a centralized analytics platform for sustained query and retention.
  • Monitor parent-child process relationships on Cockpit hosts, focusing on web server processes spawning shells or network utilities.
  • Track creation of new collections and changes to existing collection rules, especially from accounts that rarely perform such actions.

How to Mitigate CVE-2026-34965

Immediate Actions Required

  • Restrict access to the Cockpit administrative interface using network controls or VPN until a patched build is deployed.
  • Audit all Cockpit user accounts and revoke collection management privileges from users who do not require them.
  • Review the collections storage directory for unexpected PHP files or unauthorized modifications to existing rule files.
  • Rotate credentials, API tokens, and session secrets stored on or accessible from the Cockpit host if compromise is suspected.

Patch Information

Monitor the upstream Cockpit repository and its commit history for security fixes addressing the save_collection rule injection. Apply vendor-released patches as soon as they are validated in a staging environment. Refer to the VulnCheck advisory for the current remediation status.

Workarounds

  • Place Cockpit CMS behind a web application firewall and block requests to /cockpit/collections/save_collection containing PHP tags or dangerous function names.
  • Configure the PHP runtime to disable high-risk functions such as system, exec, shell_exec, and passthru using the disable_functions directive in php.ini.
  • Run the Cockpit web server process under a least-privileged account with no shell and restricted file system permissions on the application directory.
bash
# Configuration example: harden PHP runtime and restrict the vulnerable endpoint
# /etc/php/php.ini
disable_functions = exec,passthru,shell_exec,system,proc_open,popen

# nginx: block PHP payloads in save_collection requests
location = /cockpit/collections/save_collection {
    if ($request_body ~* "(<\?php|base64_decode|shell_exec|system\()") {
        return 403;
    }
    proxy_pass http://cockpit_backend;
}

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechCockpit Cms

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.43%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Gist Resource

  • GitHub Cockpit Repository

  • GitHub Cockpit Commit History

  • VulnCheck Advisory: Cockpit CMS RCE
  • Related CVEs
  • CVE-2026-23695: Cockpit CMS Stored XSS Vulnerability

  • CVE-2026-31891: Cockpit CMS SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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
  • 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

English