Advisory

GHSA-r2pg-r6h7-crf3

Also known as: CVE-2026-34984, GO-2026-5602

Summary

External Secrets Operator has DNS-based secret exfiltration via getHostByName in External Secrets v2 template engine

Details

Summary

The v2 template engine in runtime/template/v2/template.go imports Sprig’s TxtFuncMap() and removes env and expandenv, but leaves getHostByName available to user-controlled templates. Because ESO executes templates inside the controller process, an attacker who can create or update templated ExternalSecret resources can trigger controller-side DNS lookups using secret-derived values, creating a DNS exfiltration primitive.

Impact
This is a confidentiality issue. In environments where untrusted or lower-trust users can author templated ExternalSecret resources and the controller can perform DNS resolution, fetched secret material can be exfiltrated through DNS without requiring direct outbound access from the attacker’s workload.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-04-13 16:36 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

github.com/external-secrets/external-secrets

Go · All systems

Affected

  • introduced 0, fixed 1.3.3-0.20260331202714-6800989bdc12 (semver)

Fixed versions

1.3.3-0.20260331202714-6800989bdc12

Fix

  • Fixed version 1.3.3-0.20260331202714-6800989bdc12
    go get github.com/external-secrets/[email protected]

github.com/external-secrets/external-secrets

Go · All systems

Affected

  • introduced 2.0.0, last affected 2.2.0 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences