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

CVE-2026-34984: External Secrets Operator DNS Leak Flaw

CVE-2026-34984 is an information disclosure flaw in External Secrets Operator that enables DNS exfiltration of secret data through template functions. This article covers technical details, affected versions, and fixes.

Published: April 17, 2026

CVE-2026-34984 Overview

External Secrets Operator (ESO) is a Kubernetes operator that reads information from third-party secret management services and automatically injects the values as Kubernetes Secrets. A high-severity information disclosure vulnerability exists in versions 2.2.0 and below that allows attackers to exfiltrate secret material through DNS queries.

The vulnerability exists in runtime/template/v2/template.go where the v2 template engine removes env and expandenv from Sprig's TxtFuncMap() but leaves the getHostByName function accessible to user-controlled templates. Since ESO executes templates within the controller process, an attacker who can create or update templated ExternalSecret resources can invoke controller-side DNS lookups using secret-derived values. This creates a DNS exfiltration primitive, allowing fetched secret material to be leaked via DNS queries without requiring direct outbound network access from the attacker's workload.

Critical Impact

Secret material can be exfiltrated via DNS queries in environments where untrusted users can author templated ExternalSecret resources, bypassing traditional network security controls.

Affected Products

  • External Secrets Operator versions 2.2.0 and below
  • Kubernetes clusters running vulnerable ESO controller versions
  • Environments where untrusted users can create or modify ExternalSecret resources

Discovery Timeline

  • 2026-04-14 - CVE CVE-2026-34984 published to NVD
  • 2026-04-14 - Last updated in NVD database

Technical Details for CVE-2026-34984

Vulnerability Analysis

This vulnerability represents a template injection weakness classified under CWE-200 (Exposure of Sensitive Information to an Unauthorized Actor). The External Secrets Operator uses Sprig's template function map to provide templating capabilities for ExternalSecret resources. While security-conscious developers removed dangerous functions like env and expandenv from the available function map, the getHostByName function remained accessible.

The getHostByName function performs DNS resolution from within the controller process. An attacker can craft a malicious template that embeds secret values into DNS queries. Since DNS queries naturally traverse network boundaries and are often logged by DNS servers, this creates a covert channel for data exfiltration that bypasses traditional egress filtering controls.

Root Cause

The root cause is an incomplete security review of the Sprig template function map. When hardening the template engine, the developers correctly identified and removed env and expandenv as dangerous functions that could leak environment variables. However, the getHostByName function was overlooked. This function, while appearing benign for legitimate DNS lookups, can be weaponized to encode and transmit arbitrary data through DNS queries when combined with attacker-controlled template input that incorporates secret values.

Attack Vector

The attack requires network access and low privileges—specifically, the ability to create or update templated ExternalSecret resources within the Kubernetes cluster. An attacker constructs a malicious ExternalSecret template that:

  1. Retrieves a secret value from the configured secret store
  2. Encodes or embeds the secret value into a hostname string
  3. Invokes getHostByName with this constructed hostname
  4. The DNS query containing the secret data is sent to an attacker-controlled DNS server

This exfiltration technique is particularly effective because DNS traffic is often allowed through firewalls and the attacker doesn't need direct network access from their workload—the controller performs the DNS lookup.

go
 	sprigFuncs := sprig.TxtFuncMap()
 	delete(sprigFuncs, "env")
 	delete(sprigFuncs, "expandenv")
-
+	delete(sprigFuncs, "getHostByName")
 	maps.Copy(tplFuncs, sprigFuncs)
 	fs := pflag.NewFlagSet("template", pflag.ExitOnError)
 	fs.StringVar(&leftDelim, "template-left-delimiter", "{{", "templating left delimiter")

Source: GitHub Commit 6800989

The patch adds getHostByName to the list of deleted functions from the Sprig template function map, preventing its use in ExternalSecret templates and closing the DNS exfiltration vector.

Detection Methods for CVE-2026-34984

Indicators of Compromise

  • Unusual DNS queries originating from the External Secrets Operator controller pod containing encoded data or suspicious hostnames
  • ExternalSecret resources with templates containing getHostByName function calls
  • DNS queries to external or unfamiliar DNS servers from the controller namespace
  • Patterns of DNS queries that appear to encode base64 or hexadecimal data in subdomain labels

Detection Strategies

  • Monitor DNS query logs from the ESO controller pod for anomalous patterns or queries to non-standard domains
  • Implement Kubernetes admission controllers to scan ExternalSecret manifests for getHostByName usage in templates
  • Deploy network policies to restrict DNS egress from the controller pod to known DNS servers only
  • Use SIEM rules to correlate ExternalSecret creation events with subsequent unusual DNS activity

Monitoring Recommendations

  • Enable verbose logging for the External Secrets Operator controller to capture template evaluation details
  • Configure DNS query logging at the cluster or network level to track queries originating from controller pods
  • Set up alerts for ExternalSecret resources created by non-administrative users that contain templating directives
  • Monitor for bulk or rapid DNS queries from the ESO namespace which may indicate active exfiltration

How to Mitigate CVE-2026-34984

Immediate Actions Required

  • Upgrade External Secrets Operator to version 2.3.0 or later immediately
  • Audit existing ExternalSecret resources for any templates containing getHostByName function calls
  • Review RBAC policies to restrict who can create or modify ExternalSecret resources
  • Implement network policies to limit DNS egress from the ESO controller namespace

Patch Information

The vulnerability has been fixed in External Secrets Operator version 2.3.0. The patch removes the getHostByName function from the available Sprig template functions, preventing its use in ExternalSecret templates. Organizations should upgrade to this version or later to fully remediate the vulnerability.

For detailed patch information, see the GitHub Security Advisory GHSA-r2pg-r6h7-crf3 and the v2.3.0 Release.

Workarounds

  • Restrict RBAC permissions for creating ExternalSecret resources to only trusted administrators until the patch is applied
  • Implement Kubernetes admission webhooks (e.g., OPA Gatekeeper, Kyverno) to block ExternalSecret resources containing getHostByName in templates
  • Apply network policies to prevent DNS queries from the ESO controller to external DNS servers
  • Use read-only container file systems and strict securityContext settings to limit controller capabilities
bash
# Configuration example
# Kyverno ClusterPolicy to block getHostByName in ExternalSecret templates
cat <<EOF | kubectl apply -f -
apiVersion: kyverno.io/v1
kind: ClusterPolicy
metadata:
  name: block-gethostbyname-externalsecrets
spec:
  validationFailureAction: Enforce
  background: true
  rules:
  - name: check-template-functions
    match:
      any:
      - resources:
          kinds:
          - ExternalSecret
    validate:
      message: "Templates containing getHostByName function are not allowed (CVE-2026-34984)"
      pattern:
        spec:
          target:
            template:
              data:
                "*": "!*getHostByName*"
EOF

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

  • Vulnerability Details
  • TypeInformation Disclosure

  • Vendor/TechExternal Secrets Operator

  • SeverityHIGH

  • CVSS Score7.1

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/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
  • AvailabilityNone
  • CWE References
  • CWE-200
  • Technical References
  • GitHub Commit Update

  • GitHub Release v2.3.0

  • GitHub Security Advisory GHSA-r2pg-r6h7-crf3
  • Related CVEs
  • CVE-2026-22822: External Secrets Operator Auth Bypass Flaw

  • CVE-2025-62159: External Secrets Operator Auth Bypass
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