CVE-2026-22822 External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
- https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/external-secrets/external-secrets/issues/5690 issue-tracking
- https://github.com/external-secrets/external-secrets/pull/3895 issue-tracking patch
- https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb patch
- github.com product
- https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0 product release-notes
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2431873 issue-tracking
- security.access.redhat.com
- github.com
- www.cve.org