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

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

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

Published: April 10, 2026

CVE-2026-35518 Overview

A Remote Code Execution (RCE) vulnerability has been identified in FTLDNS (pihole-FTL), the core engine that provides an interactive API and generates statistics for Pi-hole's Web interface. The vulnerability exists in the DNS CNAME records configuration parameter (dns.cnameRecords) and allows authenticated attackers to inject arbitrary dnsmasq configuration directives through newline character injection, ultimately achieving command execution on the underlying system.

Critical Impact

Authenticated attackers can achieve complete system compromise through command injection in the DNS CNAME configuration, potentially leading to full control of Pi-hole servers and lateral movement within networks.

Affected Products

  • Pi-hole FTL versions 6.0 through 6.5
  • FTLDNS (pihole-FTL) before version 6.6
  • Systems running vulnerable Pi-hole deployments with API access

Discovery Timeline

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

Technical Details for CVE-2026-35518

Vulnerability Analysis

This vulnerability is classified as CWE-78 (OS Command Injection), where the Pi-hole FTL engine fails to properly sanitize user input within the dns.cnameRecords configuration parameter. The vulnerability stems from inadequate input validation that allows newline characters (\n) to be injected into configuration values. Since Pi-hole FTL uses dnsmasq as its underlying DNS server, attackers can leverage this injection point to append arbitrary dnsmasq directives that are subsequently executed by the system.

The attack requires authentication to the Pi-hole API, meaning an attacker must first obtain valid credentials or exploit another vulnerability to gain API access. However, once authenticated, the impact is severe—allowing complete command execution on the host operating system with the privileges of the FTL service.

Root Cause

The root cause of this vulnerability lies in insufficient input sanitization of the dns.cnameRecords configuration parameter. When processing CNAME record configurations, the FTL engine writes values directly to dnsmasq configuration files without properly escaping or filtering special characters, particularly newline sequences. This allows attackers to break out of the intended configuration context and inject arbitrary dnsmasq directives, including those that can execute system commands.

Attack Vector

The attack is network-based and requires low privileges (authenticated API access) with no user interaction needed. An authenticated attacker can craft a malicious API request to the Pi-hole FTL engine containing specially crafted CNAME configuration values with embedded newline characters. These characters allow the attacker to inject arbitrary dnsmasq configuration directives that are written to the configuration file. When dnsmasq reloads or restarts, the injected directives are processed, potentially executing system commands with the privileges of the dnsmasq/FTL process.

The attack flow typically involves:

  1. Authenticating to the Pi-hole API
  2. Sending a crafted request to modify dns.cnameRecords with embedded newline characters
  3. Injecting malicious dnsmasq directives that execute system commands
  4. Achieving code execution when the configuration is processed

For detailed technical analysis and proof-of-concept information, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-35518

Indicators of Compromise

  • Unexpected newline characters or escape sequences in Pi-hole configuration files
  • Unusual dnsmasq configuration entries not matching standard CNAME record formats
  • Unexpected process execution originating from the FTL or dnsmasq service
  • API requests containing encoded newline characters (%0a, %0d, \n, \r\n) in CNAME parameters

Detection Strategies

  • Monitor Pi-hole API logs for requests modifying dns.cnameRecords with suspicious character patterns
  • Implement file integrity monitoring on dnsmasq configuration files to detect unauthorized modifications
  • Deploy network intrusion detection rules to identify API requests with newline injection attempts
  • Review authentication logs for unusual API access patterns or credential usage

Monitoring Recommendations

  • Enable verbose logging on Pi-hole FTL API endpoints to capture full request payloads
  • Implement alerting for configuration file changes outside of normal administrative windows
  • Monitor process execution chains to detect commands spawned by dnsmasq or FTL processes
  • Track and alert on failed authentication attempts that may indicate credential brute-forcing prior to exploitation

How to Mitigate CVE-2026-35518

Immediate Actions Required

  • Upgrade Pi-hole FTL to version 6.6 or later immediately
  • Audit Pi-hole API authentication credentials and rotate if potentially compromised
  • Review dnsmasq configuration files for any unauthorized or suspicious entries
  • Restrict network access to the Pi-hole API to trusted management networks only

Patch Information

This vulnerability has been fixed in Pi-hole FTL version 6.6. The patch addresses the command injection vulnerability by implementing proper input sanitization for the dns.cnameRecords configuration parameter, preventing newline injection attacks. Users should upgrade to version 6.6 or later by following the standard Pi-hole update procedures. Detailed patch information is available in the GitHub Security Advisory.

Workarounds

  • Implement network segmentation to restrict API access to trusted administrative networks only
  • Use a reverse proxy with input validation rules to filter requests containing newline characters
  • Temporarily disable API access if not required for normal operations until patching is complete
  • Enable authentication rate limiting to slow potential credential attacks that may precede exploitation
bash
# Restrict Pi-hole admin interface access via firewall
# Example using iptables to limit access to management VLAN
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/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-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