CVE-2026-22822 Details
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.
A vulnerability exists in External Secrets Operator versions 0.20.2 prior to 1.2.0, specifically within the `getSecretKey` template function designed for the senhasegura Devops Secrets Management (DSM) provider. This function can fetch secrets from different namespaces using the roleBinding of the external-secrets controller, bypassing security mechanisms. The issue could lead to unauthorized access to sensitive data, allowing for privilege escalation or data exfiltration. The vulnerability has been addressed by removing the `getSecretKey` function in version 1.2.0, as its functionality can be replicated through other means that adhere to the operator's security safeguards.
Users should upgrade to External Secrets Operator version 1.2.0 or later, where this vulnerability has been patched. Additionally, as a temporary workaround, a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA can be used to prevent the use of `getSecretKey` in any `ExternalSecret` resource.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | redhat-SADP |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| external-secrets external secrets operator | >= 0.20.2, < 1.2.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 18, 2026 | Initial Analysis | [email protected] |
| Jan 21, 2026 | New CVE Received | [email protected] |