{"id":"CVE-2026-22822","published":"2026-01-21T21:22:05Z","modified":"2026-07-15T01:19:08Z","title":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","vendor":"external-secrets","product":"external-secrets","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.3,"severity":"CRITICAL","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00192,"percentile":0.08994,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/external-secrets/external-secrets/issues/5690","tags":["x_refsource_MISC"]},{"url":"https://github.com/external-secrets/external-secrets/pull/3895","tags":["x_refsource_MISC"]},{"url":"https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","tags":["x_refsource_MISC"]},{"url":"https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22822","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2431873","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":8.3,"factors":[{"name":"EPSS percentile","points":1.8},{"name":"CVSS severity","points":6.51}]},"vendorSlug":"external-secrets","affectedVersions":[{"vendor":"external-secrets","product":"external-secrets","versions":[">= 0.20.2, < 1.2.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-01-22T15:10:57.677512Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/external-secrets/external-secrets","vulnerableRanges":[">=0.20.2, <1.2.0"],"patched":["1.2.0"],"from":["GHSA-77v3-r3jw-j2v2","GO-2026-4330"],"provenance":"source"}],"summary":{"text":"External Secrets Operator (product external-secrets, versions 0.20.2 up to but not including 1.2.0) contains an incorrect authorization flaw in its getSecretKey templating function, which was introduced for the senhasegura DSM provider. An attacker holding local access with low privileges can use this function in an ExternalSecret resource to fetch secrets across namespaces through the external-secrets controller's roleBinding, bypassing the operator's safeguards, and no user interaction or configuration beyond the affected versions is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:32Z"},"euvd":{"id":"EUVD-2026-3404","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-45041","published":"2024-09-09","fixed":"0.10.2","kev":false},{"cve":"CVE-2025-55196","published":"2025-08-13","fixed":"0.19.2","kev":false},{"cve":"CVE-2026-22822","published":"2026-01-21","fixed":"1.2.0","kev":false},{"cve":"CVE-2026-26287","published":"2026-10-06","fixed":"1.3.2","kev":false,"link":{"from":"CVE-2026-22822","to":"CVE-2026-26287","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/external-secrets/external-secrets","fromFixed":"1.2.0","toFixed":"1.3.2","daysApart":258}]}},{"cve":"CVE-2026-34984","published":"2026-04-14","fixed":"1.3.3-0.20260331202714-6800989bdc12","kev":false},{"cve":"CVE-2026-42875","published":"2026-05-11","fixed":"2.4.0","kev":false}],"package":"Go:github.com/external-secrets/external-secrets"}}