Skip to content

CVE-2026-22822 External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function

CriticalCVSS 9.3 EPSS 0.19%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
KubernetesRed Hat

Description

External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. Starting in version 0.20.2 and prior to version 1.2.0, the getSecretKey template function, while introduced for senhasegura Devops Secrets Management (DSM) provider, has the ability to fetch secrets cross-namespaces with the roleBinding of the external-secrets controller, bypassing our security mechanisms. This function was completely removed in version 1.2.0, as everything done with that templating function can be done in a different way while respecting External Secrets Operator's safeguards As a workaround, use a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA to prevent the usage of getSecretKey in any ExternalSecret resource.

Upgrade path

8 packages: 2 fixed, 5 with no fix yet.

PackageAffectedFixed inStatus
redhat external secrets operator = 1; All versions No fix listed No fix yet
redhat/external-secrets-operator/bitwarden-sdk-server-rhel9(Red Hat external_secrets_operator 0) All versions No fix listed No fix yet
redhat/external-secrets-operator/external-secrets-operator-bundle(Red Hat external_secrets_operator 0) All versions No fix listed No fix yet
redhat/external-secrets-operator/external-secrets-operator-rhel9(Red Hat external_secrets_operator 0) All versions No fix listed No fix yet
redhat/external-secrets-operator/external-secrets-rhel9(Red Hat external_secrets_operator 0) All versions No fix listed No fix yet
external-secrets(Go) >= 0.20.2, < 1.2.0 1.2.0 Fixed
external-secrets external secrets operator >= 0.20.2, < 1.2.0 1.2.0 Fixed
external-secrets = >= 0.20.2, < 1.2.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
external-secrets(Go) >= 0.20.2, < 1.2.0 1.2.0
external-secrets = >= 0.20.2, < 1.2.0 No fix listed
redhat external secrets operator = 1 No fix listed
redhat external secrets operator All versions No fix listed
redhat/external-secrets-operator/bitwarden-sdk-server-rhel9(Red Hat:external_secrets_operator:0) All versions No fix listed
redhat/external-secrets-operator/external-secrets-operator-bundle(Red Hat:external_secrets_operator:0) All versions No fix listed
redhat/external-secrets-operator/external-secrets-operator-rhel9(Red Hat:external_secrets_operator:0) All versions No fix listed
redhat/external-secrets-operator/external-secrets-rhel9(Red Hat:external_secrets_operator:0) All versions No fix listed
external-secrets external secrets operator >= 0.20.2, < 1.2.0 1.2.0

References