Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-33765

CVE-2026-33765: Pi-hole Admin Interface RCE Vulnerability

CVE-2026-33765 is a critical command injection flaw in Pi-hole Admin Interface allowing remote code execution with root privileges. This article covers the technical details, affected versions, security impact, and mitigation.

Published: April 2, 2026

CVE-2026-33765 Overview

A critical OS Command Injection vulnerability has been identified in the Pi-hole Admin Interface, the web-based management console for Pi-hole network-level ad and tracker blocking application. The vulnerability exists in the savesettings.php file where user-controlled input from the $_POST['webtheme'] parameter is concatenated directly into a system command executed via PHP's exec() function without any sanitization or validation. This allows remote attackers to inject and execute arbitrary system commands with elevated privileges.

Critical Impact

Unauthenticated remote attackers can execute arbitrary commands with root privileges on affected Pi-hole installations, potentially leading to complete system compromise.

Affected Products

  • Pi-hole Admin Interface versions prior to 6.0
  • Pi-hole Web Interface (pi-hole/web) all versions before 6.0

Discovery Timeline

  • 2026-03-27 - CVE-2026-33765 published to NVD
  • 2026-03-30 - Last updated in NVD database

Technical Details for CVE-2026-33765

Vulnerability Analysis

This vulnerability is classified as CWE-78 (OS Command Injection), a severe class of security flaws that allows attackers to execute arbitrary operating system commands on the host system. The root issue lies in the unsafe handling of user input in the Pi-hole Admin Interface's settings management functionality.

The vulnerable code path accepts user input through the webtheme POST parameter and passes it directly to a shell command without any input validation, sanitization, or escaping. What makes this vulnerability particularly dangerous is that the affected command is executed with sudo privileges, meaning any injected commands will run with root-level access to the underlying system.

Network-accessible with low attack complexity and requiring no user interaction, this vulnerability presents a significant risk to any Pi-hole installation with an exposed admin interface. Successful exploitation can result in complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause of this vulnerability is the direct concatenation of user-controlled input ($_POST['webtheme']) into a system command executed via PHP's exec() function. The application fails to implement any of the standard defenses against command injection:

  • No input validation against an allowlist of permitted values
  • No sanitization or escaping of shell metacharacters
  • No use of parameterized command execution functions
  • Commands are executed with elevated sudo privileges, amplifying the impact

Attack Vector

The attack vector is network-based, targeting the savesettings.php endpoint in the Pi-hole Admin Interface. An attacker can craft a malicious HTTP POST request containing shell metacharacters and arbitrary commands in the webtheme parameter. Common injection techniques include using command separators such as semicolons (;), pipe operators (|), or command substitution syntax ($(command) or backticks) to append malicious commands to the legitimate pihole command.

Since the vulnerable code path executes with sudo privileges, successful exploitation grants the attacker root-level access to execute any system command, including downloading and executing malicious payloads, modifying system configurations, exfiltrating data, or establishing persistent backdoor access.

Detection Methods for CVE-2026-33765

Indicators of Compromise

  • Unusual HTTP POST requests to /admin/savesettings.php containing shell metacharacters (;, |, $(), backticks) in the webtheme parameter
  • Unexpected processes spawned as children of the web server process (e.g., Apache, nginx, lighttpd)
  • Suspicious entries in web server access logs showing encoded or plaintext command injection attempts
  • Unexpected network connections originating from the Pi-hole server
  • Modified system files or new user accounts created outside normal administration

Detection Strategies

  • Implement Web Application Firewall (WAF) rules to detect and block command injection patterns in POST parameters
  • Monitor web server logs for requests containing shell metacharacters targeting the savesettings.php endpoint
  • Deploy endpoint detection and response (EDR) solutions to identify anomalous process execution chains from web server processes
  • Configure intrusion detection systems (IDS) to alert on suspicious outbound connections from the Pi-hole host

Monitoring Recommendations

  • Enable detailed logging for the Pi-hole Admin Interface and correlate with system-level process execution logs
  • Monitor for unauthorized modifications to Pi-hole configuration files and system binaries
  • Set up alerts for any new network listeners or outbound connections from the Pi-hole server
  • Review sudo logs for unexpected command executions initiated by the web server user

How to Mitigate CVE-2026-33765

Immediate Actions Required

  • Upgrade Pi-hole Admin Interface to version 6.0 or later immediately
  • Restrict network access to the Pi-hole Admin Interface to trusted IP addresses only
  • Implement authentication requirements for all administrative endpoints if not already configured
  • Consider temporarily disabling the web admin interface until patching is complete

Patch Information

Version 6.0 of the Pi-hole Admin Interface patches this vulnerability by implementing proper input validation and sanitization for the webtheme parameter. Users should upgrade to version 6.0 or later as soon as possible.

For detailed information about the security fix, refer to the GitHub Security Advisory.

Workarounds

  • Restrict access to the Pi-hole Admin Interface using firewall rules to limit connections to trusted management networks only
  • Place the Pi-hole Admin Interface behind a reverse proxy with authentication and request filtering capabilities
  • Disable the savesettings.php functionality by restricting file permissions until the patch can be applied
  • Implement network segmentation to isolate the Pi-hole server from sensitive network segments
bash
# Example: Restrict admin interface access using iptables
# Allow only trusted management subnet to access the admin interface
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechPi Hole

  • SeverityHIGH

  • CVSS Score8.9

  • EPSS Probability0.83%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/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-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35519: Pi-hole FTL DNS RCE Vulnerability

  • CVE-2020-8816: Pi-hole Web AdminLTE RCE Vulnerability

  • CVE-2026-33405: Pi-hole Web Interface XSS Vulnerability

  • CVE-2026-33727: Pi-hole Privilege Escalation Vulnerability
Default Legacy - Prefooter | 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
  • 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