The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-35520

CVE-2026-35520: Pi-hole FTL Engine RCE Vulnerability

CVE-2026-35520 is a remote code execution flaw in Pi-hole FTL engine (versions 6.0 to before 6.6) that allows authenticated attackers to execute arbitrary commands. This article covers technical details, impact, and mitigation.

Published: April 10, 2026

CVE-2026-35520 Overview

CVE-2026-35520 is a Remote Code Execution (RCE) vulnerability affecting FTLDNS (pihole-FTL), the core engine that provides an interactive API and generates statistics for Pi-hole's Web interface. This vulnerability exists in the DHCP lease time configuration parameter (dhcp.leaseTime) and allows authenticated attackers to inject arbitrary dnsmasq configuration directives through newline character injection, ultimately achieving command execution on the underlying system.

The vulnerability affects Pi-hole FTL versions from 6.0 to before 6.6, where inadequate input sanitization in the DHCP configuration handling enables attackers with authenticated access to the Pi-hole administrative interface to compromise the host system.

Critical Impact

Authenticated attackers can achieve full system compromise through command injection in the DHCP lease time parameter, potentially leading to complete takeover of the Pi-hole server and network-wide DNS manipulation.

Affected Products

  • Pi-hole FTL (FTLDNS) versions 6.0 to 6.5.x
  • Pi-hole deployments with DHCP server functionality enabled
  • Systems running vulnerable versions of the pihole-FTL engine

Discovery Timeline

  • 2026-04-07 - CVE CVE-2026-35520 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-35520

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 resides in how the Pi-hole FTL engine processes the dhcp.leaseTime configuration parameter without properly sanitizing newline characters and special dnsmasq directives.

When an authenticated user modifies DHCP settings through the Pi-hole API or web interface, the lease time value is incorporated into the dnsmasq configuration. Due to insufficient input validation, an attacker can embed newline characters (\n) followed by arbitrary dnsmasq configuration directives. Since dnsmasq supports the dhcp-script directive, which executes arbitrary scripts when DHCP events occur, attackers can leverage this to achieve code execution with the privileges of the dnsmasq process.

The attack requires authenticated access to the Pi-hole administrative interface, which is typically available on the local network. However, in environments where the Pi-hole admin interface is exposed to untrusted networks or where credentials have been compromised, this vulnerability poses a significant risk.

Root Cause

The root cause of CVE-2026-35520 is the failure to properly sanitize user-supplied input in the dhcp.leaseTime configuration parameter before writing it to the dnsmasq configuration file. The FTL engine did not strip or escape newline characters and other control characters, allowing attackers to break out of the intended configuration context and inject additional dnsmasq directives.

This is a classic command injection pattern where user input flows directly into a configuration file that is subsequently parsed and executed by another system component (dnsmasq), without adequate boundary enforcement.

Attack Vector

The attack is network-accessible and requires low-privilege authenticated access to the Pi-hole administrative interface. An attacker would craft a malicious DHCP lease time value containing embedded newline characters followed by dnsmasq directives such as dhcp-script that point to attacker-controlled commands or scripts.

The exploitation flow involves:

  1. Authenticating to the Pi-hole administrative interface
  2. Modifying the DHCP lease time setting with a payload containing newline-injected dnsmasq directives
  3. Triggering a DHCP event (such as a client lease request) to execute the injected configuration
  4. Achieving command execution on the target system

The vulnerability does not require user interaction and can be exploited automatically once the malicious configuration is written. For detailed technical information and proof-of-concept details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-35520

Indicators of Compromise

  • Unusual entries in dnsmasq configuration files containing dhcp-script directives pointing to unexpected executables
  • Anomalous modifications to DHCP-related configuration parameters in Pi-hole logs
  • Evidence of newline characters or special directives in DHCP lease time configuration values
  • Unexpected child processes spawned by the dnsmasq service

Detection Strategies

  • Monitor Pi-hole and dnsmasq configuration files for unauthorized modifications, particularly the addition of dhcp-script directives
  • Implement file integrity monitoring on /etc/dnsmasq.d/ and related Pi-hole configuration directories
  • Analyze Pi-hole API and web interface access logs for suspicious configuration change requests
  • Deploy endpoint detection solutions capable of identifying command injection patterns in configuration files

Monitoring Recommendations

  • Enable detailed logging for all Pi-hole administrative interface access and configuration changes
  • Configure alerts for any modifications to DHCP-related settings in the Pi-hole configuration
  • Monitor network traffic to the Pi-hole admin interface for unusual access patterns or authentication attempts
  • Implement audit logging for all dnsmasq configuration file modifications

How to Mitigate CVE-2026-35520

Immediate Actions Required

  • Upgrade Pi-hole FTL to version 6.6 or later immediately
  • Review Pi-hole access logs for any suspicious configuration modification attempts
  • Audit current dnsmasq configuration files for any unauthorized dhcp-script or other injected directives
  • Restrict network access to the Pi-hole administrative interface to trusted hosts only

Patch Information

The vulnerability is fixed in Pi-hole FTL version 6.6. Organizations should update their Pi-hole installations to this version or later to remediate the vulnerability. The patch implements proper input sanitization for the dhcp.leaseTime parameter, preventing newline injection and ensuring configuration values cannot escape their intended context.

For official patch details and update instructions, see the GitHub Security Advisory.

Workarounds

  • Disable the Pi-hole DHCP server functionality if not required and use an alternative DHCP server
  • Implement strict network segmentation to prevent untrusted users from accessing the Pi-hole admin interface
  • Use a reverse proxy with additional authentication layers to protect the Pi-hole administrative interface
  • Monitor and validate all configuration changes before they are applied to the dnsmasq configuration
bash
# Update Pi-hole FTL to the patched version
pihole -up

# Verify the installed FTL version
pihole -v

# Review dnsmasq configuration for suspicious entries
grep -r "dhcp-script" /etc/dnsmasq.d/

# Restrict admin interface access via iptables (example)
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -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/TechPihole

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-78
  • Technical References
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-35518: Pi-hole FTL Engine RCE Vulnerability

  • CVE-2026-35517: Pi-hole FTL Engine RCE Vulnerability

  • CVE-2026-35491: Pi-hole FTL Auth Bypass 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