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

- Severity: Critical 9.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-01-20T16:37:18.000Z
- Modified: 2026-07-15T02:18:37.703Z
- Also known as: GHSA-77v3-r3jw-j2v2, GO-2026-4330
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- external-secrets external-secrets: >= 0.20.2, < 1.2.0
- external-secrets-operator/bitwarden-sdk-server-rhel9: no versions given
- external-secrets-operator/external-secrets-operator-bundle: no versions given
- external-secrets-operator/external-secrets-operator-rhel9: no versions given
- external-secrets-operator/external-secrets-rhel9: no versions given
- github.com/external-secrets/external-secrets (Go): from 0.20.2 before 1.2.0
- external-secrets external_secrets_operator: from 0.20.2 before 1.2.0

## Every score

- GitHub_M: CVSS:4.0 9.3 Critical `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`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## References

- <https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2> (advisory, vendor-advisory, web)
- <https://github.com/external-secrets/external-secrets/issues/5690> (issue-tracking, report, web)
- <https://github.com/external-secrets/external-secrets/pull/3895> (fix, issue-tracking, web)
- <https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb> (fix, patch, web)
- <https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0> (product, release-notes, web)
- <https://access.redhat.com/security/cve/CVE-2026-22822> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2431873> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22822> (advisory)
- <https://github.com/external-secrets/external-secrets> (package)

## Sources

- CVE List: [CVE-2026-22822](https://www.cve.org/CVERecord?id=CVE-2026-22822), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-77v3-r3jw-j2v2](https://github.com/advisories/GHSA-77v3-r3jw-j2v2), CC-BY-4.0, modified 2026-04-16
- Go Vulnerability Database: [GO-2026-4330](https://pkg.go.dev/vuln/GO-2026-4330), CC-BY-4.0, modified 2026-04-16
- NVD: [CVE-2026-22822](https://nvd.nist.gov/vuln/detail/CVE-2026-22822), Public domain, modified 2026-07-15

---

Page: https://cve.day/CVE-2026-22822 · Whole record: https://cve.day/CVE-2026-22822.json · Rebuilt by cve.day 2026-11-25T22:59:13.024Z
