Vulnerability
CVE-2026-34984
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.
39 advisories report this vulnerability, across 4 ecosystems.
Advisories
- CGA-2ffc-2wxw-xcf5
- CGA-2fx3-2jc5-g3ww
- CGA-2h7x-x5h6-xp38
- CGA-2h96-qq2j-5chv
- CGA-3qc7-g49p-qx4m
- CGA-47hw-j287-gv4q
- CGA-4gxc-42j3-44mv
- CGA-4vp6-mpmm-rvr4
- CGA-5frj-rp2h-8hv3
- CGA-5jgg-cr9f-6ph4
- CGA-6fx6-3r5v-2r6c
- CGA-7q9j-g3r3-c48g
- CGA-8f3x-xjc7-wv39
- CGA-8g57-3jqv-6h9c
- CGA-9xh9-7v6j-j5hj
- CGA-c42p-jrr9-5g3q
- CGA-cjhx-5hr5-cv3f
- CGA-cpcj-8mhp-xgf3
- CGA-g537-q89r-cf2r
- CGA-h729-xr99-23qq
- CGA-hgh8-4v2m-79gq
- CGA-j43r-9737-9qvr
- CGA-jr6r-46gh-gr7x
- CGA-jxw7-f348-vvf5
- CGA-m5wf-qfmj-7f4v
- CGA-mff9-c8jr-jhmj
- CGA-mq99-85c8-4gf6
- CGA-mr73-x9cx-64h6
- CGA-p6cv-8hfr-vp9r
- CGA-pcg3-cjcr-q9w4
- CGA-phw9-frwg-w4h5
- CGA-pjgp-9hrv-5v34
- CGA-rvx2-5q3q-xxwr
- CGA-vvrh-m452-748r
- CGA-x383-cq9w-xq65
- CGA-x99p-637p-6g4w
-
GHSA-r2pg-r6h7-crf3
External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine
-
GO-2026-5602
External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine in github.com/external-secrets/external-secrets
-
openSUSE-SU-2026:21483-1
Security update for govulncheck-vulndb