REDHAT-BUG-2431873: High severity External Secrets Operator vulnerability

Published Jan 21, 2026
·
Updated

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.

Affected Software

1 affected component
External Secrets Operator>=0.20.2<1.2.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.2.0
  2. Compensating control

    Use a policy engine (Kubernetes, Kyverno, Kubewarden, or OPA) to prevent the usage of the `getSecretKey` template function in any ExternalSecret resource (for versions starting in 0.20.2 and prior to 1.2.0).

Event History

Jan 21, 2026
Data Sourced
via Red Hat·10:02 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are affected?

External Secrets Operator deployments starting with version 0.20.2 and before version 1.2.0 are affected if ExternalSecret resources use the getSecretKey template function.

2

What access does an attacker need to exploit this issue?

The issue relies on use of getSecretKey in an ExternalSecret resource. That function can fetch secrets across namespaces using the external-secrets controller's RoleBinding, bypassing the operator's security mechanisms.

3

What can be done if upgrading is not immediately possible?

Use a policy engine to prevent getSecretKey from being used in any ExternalSecret resource. The provided workaround names Kubernetes, Kyverno, Kubewarden, and OPA as policy-engine options.

4

How is the issue addressed in newer releases?

The getSecretKey template function was completely removed in version 1.2.0. Its functionality can be implemented differently while respecting External Secrets Operator safeguards.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203