# CVE-2026-34984: External Secrets Operator has DNS exfiltration via getHostByName in its v2 template engine

- Severity: High 7.1 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-04-13T16:36:36.000Z
- Modified: 2026-09-10T03:51:02.919Z
- Also known as: GHSA-r2pg-r6h7-crf3, GO-2026-5602
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- external-secrets external-secrets: < 2.3.0
- github.com/external-secrets/external-secrets (Go): before 1.3.3-0.20260331202714-6800989bdc12; from 2.0.0 up to 2.2.0
- external-secrets external_secrets_operator: before 2.3.0

## Every score

- GitHub_M: CVSS:4.0 7.1 High `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`
- GitHub: CVSS:3.1 6.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/external-secrets/external-secrets/security/advisories/GHSA-r2pg-r6h7-crf3> (advisory, vendor-advisory, web)
- <https://github.com/external-secrets/external-secrets/commit/6800989bdc12782ca2605d3b8bf7f2876a16551a> (fix, patch, web)
- <https://github.com/external-secrets/external-secrets/releases/tag/v2.3.0> (product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34984> (advisory)
- <https://github.com/external-secrets/external-secrets> (package)

## Sources

- CVE List: [CVE-2026-34984](https://www.cve.org/CVERecord?id=CVE-2026-34984), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-r2pg-r6h7-crf3](https://github.com/advisories/GHSA-r2pg-r6h7-crf3), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5602](https://pkg.go.dev/vuln/GO-2026-5602), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-34984](https://nvd.nist.gov/vuln/detail/CVE-2026-34984), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-34984 · Whole record: https://cve.day/CVE-2026-34984.json · Rebuilt by cve.day 2026-11-25T22:59:18.667Z
