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-35517

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

CVE-2026-35517 is a remote code execution vulnerability in Pi-hole FTL engine affecting versions 6.0 to before 6.6. Authenticated attackers can inject malicious configuration directives. This article covers technical details, affected versions, impact, and mitigation.

Published: April 10, 2026

CVE-2026-35517 Overview

A Remote Code Execution (RCE) vulnerability has been discovered in FTLDNS (pihole-FTL), the core DNS engine that powers Pi-hole's Web interface and provides an interactive API for DNS statistics. The vulnerability exists in versions 6.0 through 6.5 and allows authenticated attackers to inject arbitrary dnsmasq configuration directives through the upstream DNS servers configuration parameter (dns.upstreams). By exploiting improper input validation, attackers can insert newline characters to inject malicious configuration directives, ultimately achieving command execution on the underlying system.

Critical Impact

Authenticated attackers can achieve full system compromise through command injection in DNS configuration, potentially gaining complete control over the Pi-hole server and network DNS infrastructure.

Affected Products

  • FTLDNS (pihole-FTL) versions 6.0 to 6.5
  • Pi-hole installations using vulnerable FTL engine versions
  • Systems running Pi-hole with authenticated API access enabled

Discovery Timeline

  • 2026-04-07 - CVE CVE-2026-35517 published to NVD
  • 2026-04-08 - Last updated in NVD database

Technical Details for CVE-2026-35517

Vulnerability Analysis

This vulnerability is classified as CWE-78 (Improper Neutralization of Special Elements used in an OS Command), commonly known as Command Injection. The Pi-hole FTL engine fails to properly sanitize user-controlled input in the dns.upstreams configuration parameter before passing it to the underlying dnsmasq process.

When an authenticated user modifies upstream DNS server settings through the Pi-hole API, the input is processed without adequate validation of newline characters (\n). This allows an attacker to break out of the intended configuration context and inject arbitrary dnsmasq directives. Since dnsmasq supports configuration options that can execute external commands or scripts, this injection can be leveraged to achieve remote code execution with the privileges of the FTL process.

The vulnerability requires authentication, meaning an attacker must first obtain valid credentials or session access to the Pi-hole administrative interface. However, once authenticated, the path to code execution is straightforward, making this a serious threat to Pi-hole deployments with weak administrative credentials or exposed management interfaces.

Root Cause

The root cause lies in insufficient input validation within the FTL engine's configuration parsing logic. The dns.upstreams parameter accepts upstream DNS server addresses but fails to sanitize special characters, particularly newline sequences. When this input is written to the dnsmasq configuration or passed to dnsmasq through inter-process communication, the injected newlines are interpreted as configuration directive separators, allowing arbitrary directive injection.

Attack Vector

The attack is network-based and requires authenticated access to the Pi-hole API or Web interface. An attacker would craft a malicious DNS upstream server value containing newline characters followed by dnsmasq configuration directives that trigger command execution. The injected directives could leverage dnsmasq features such as dhcp-script or other configuration options that support external command execution.

The attack flow involves:

  1. Authenticating to the Pi-hole Web interface or API
  2. Navigating to DNS settings or using the API endpoint for upstream DNS configuration
  3. Injecting a crafted payload containing newline-separated malicious dnsmasq directives
  4. Triggering dnsmasq configuration reload to execute the injected commands

For detailed technical information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-35517

Indicators of Compromise

  • Unusual characters or newline sequences in Pi-hole DNS configuration files
  • Unexpected dnsmasq configuration directives appearing in configuration
  • Anomalous process execution originating from the FTL or dnsmasq processes
  • Suspicious API requests to DNS configuration endpoints containing encoded newline characters

Detection Strategies

  • Monitor Pi-hole API access logs for requests to DNS upstream configuration endpoints containing suspicious patterns such as %0a, %0d, or literal newline sequences
  • Implement file integrity monitoring on dnsmasq and Pi-hole configuration files to detect unauthorized modifications
  • Deploy endpoint detection to identify unexpected child processes spawned by pihole-FTL or dnsmasq services
  • Analyze network traffic for unusual DNS configuration API calls with abnormally long or encoded payloads

Monitoring Recommendations

  • Enable detailed logging for Pi-hole API authentication attempts and configuration changes
  • Configure alerts for any modifications to upstream DNS server settings outside of authorized maintenance windows
  • Monitor system process trees for anomalous command execution with pihole-FTL as a parent process
  • Review authentication logs for brute-force attempts or unauthorized access to the Pi-hole administrative interface

How to Mitigate CVE-2026-35517

Immediate Actions Required

  • Upgrade FTLDNS (pihole-FTL) to version 6.6 or later immediately
  • Audit Pi-hole administrative access logs for suspicious DNS configuration changes
  • Review and rotate Pi-hole administrative credentials, especially if weak passwords were in use
  • Restrict network access to the Pi-hole administrative interface to trusted management networks only
  • Enable two-factor authentication if available for Pi-hole administrative access

Patch Information

The vulnerability has been fixed in Pi-hole FTL version 6.6. The patch addresses the input validation weakness by properly sanitizing the dns.upstreams configuration parameter to reject or escape newline characters and other special characters that could be used for configuration injection.

Organizations should update their Pi-hole installations using the standard update mechanism or by downloading the patched FTL binary from the official Pi-hole repositories. For more details on the fix, see the GitHub Security Advisory.

Workarounds

  • Restrict API access by implementing firewall rules to limit connectivity to the Pi-hole administrative interface from untrusted networks
  • Place the Pi-hole administrative interface behind a VPN or bastion host to reduce exposure
  • Implement strong authentication controls and monitor for unauthorized access attempts
  • Consider temporarily disabling API access to DNS configuration if immediate patching is not possible
bash
# Restrict Pi-hole admin interface access to local network only
# Add to firewall configuration (example using iptables)
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-35520: Pi-hole FTL Engine RCE Vulnerability

  • CVE-2026-35518: 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