{"id":"CVE-2026-34984","published":"2026-04-14T01:48:41Z","modified":"2026-04-14T16:27:55Z","title":"External Secrets Operator has DNS exfiltration via getHostByName in its v2 template engine","vendor":"external-secrets","product":"external-secrets","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00465,"percentile":0.32313,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-r2pg-r6h7-crf3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/external-secrets/external-secrets/commit/6800989bdc12782ca2605d3b8bf7f2876a16551a","tags":["x_refsource_MISC"]},{"url":"https://github.com/external-secrets/external-secrets/releases/tag/v2.3.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.4,"factors":[{"name":"EPSS percentile","points":6.46},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"external-secrets","affectedVersions":[{"vendor":"external-secrets","product":"external-secrets","versions":["< 2.3.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-14T15:37:48.338681Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","vulnerableRanges":["<1.3.3-0.20260331202714-6800989bdc12",">=2.0.0, <=2.2.0"],"patched":["1.3.3-0.20260331202714-6800989bdc12"],"from":["GHSA-r2pg-r6h7-crf3","GO-2026-5602"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-22190","exploited":false,"provenance":"source"}}