CVE-2026-34984: External Secrets Operator has DNS exfiltration via getHostByName in its v2 template engine
Vulnerability summary
CVE-2026-34984 is a high (CVSS 7.1) vulnerability in external-secrets external_secrets_operator. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 37.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1 · Related 2Timeline
- 14-04-2026PublishedVulnerability first disclosed.
- 14-04-2026Last modifiedVulnerability information updated.
Description
External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. Versions 2.2.0 and below contain a vulnerability 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. The impact is a confidentiality issue, particularly in environments where untrusted or lower-trust users can author templated ExternalSecret resources and the controller has DNS resolution capability. This issue has been fixed in version 2.3.0.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · WolfiEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated7.1HighCVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST7.1HighCVSS: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
- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.45%
Chance of exploitation in the next 30 days
Percentile
38%
Versus all other CVEs
30-day change
Increase +0.19 pp
From 0.26% on 22-09-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Chainguard13 products
- external-secrets-operator-0.20All versions (No fix recorded)
- external-secrets-operator-1.0All versions (No fix recorded)
- external-secrets-operator-1.1All versions (No fix recorded)
- external-secrets-operator-1.2All versions (No fix recorded)
- external-secrets-operator-1.3All versions (No fix recorded)
Wolfi4 products
- external-secrets-operator-1.1All versions (No fix recorded)
- external-secrets-operator-2.0All versions (No fix recorded)
- external-secrets-operator-2.1All versions (No fix recorded)
- external-secrets-operator-2.2< 2.2.0-r7
External-secrets2 products
- external_secrets_operator< 2.3.0
- external-secrets< 2.3.0
Github.com/external-secrets1 product
- external-secrets≥ 2.0.0, ≤ 2.2.0 | < 1.3.3-0.20260331202714-6800989bdc12
4 vendors · 20 products
References
6 links- github.com/external-secrets/external-secrets/security/advisories/GHSA-r2pg-r6h7-crf3X Refsource CONFIRMAdvisoryWEBVendor Advisory
- github.com/external-secrets/external-secrets/commit/6800989bdc12782ca2605d3b8bf7f2876a16551aX Refsource MISCFIXWEBPatch
- github.com/external-secrets/external-secrets/releases/tag/v2.3.0X Refsource MISCWEBProductRelease Notes