{"schemaVersion":3,"id":"CVE-2026-22822","aliases":["CGA-3fvc-g44j-q94w","CGA-8x2x-gfr9-6h4m","CGA-g46g-mcww-3vxh","CGA-v435-hm7j-fj6x","GHSA-77v3-r3jw-j2v2","GO-2026-4330","CGA-35f9-ch7p-gcm3","CGA-374c-4c8q-p4wc","CGA-624m-gfh3-v9xc","CGA-7vmp-p85j-vgf6","CGA-8rrj-6vx2-rfvm","CGA-9jpv-cx86-h9cg","CGA-cpj9-m9hw-cvww","CGA-fxwh-w7w4-xcqm","CGA-gpq5-8mch-hjh6","CGA-j99j-952p-vj95","CGA-jjv9-9fhp-55w2","CGA-q26g-f5hv-mgv4","CGA-qqfv-pg9m-c2c5","CGA-wcfg-9r2w-459c"],"status":"published","duplicateOf":null,"title":"External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function","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.","dates":{"published":"2026-01-21T21:22:05.249Z","modified":"2026-07-15T01:19:08.563Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.3,"severity":"critical","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":9.3,"severity":"critical","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","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":9.3,"severity":"critical","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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00192,"percentile":0.08357,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":-0.0020000000000000052,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00194},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00182,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00192,"percentile":0.08357}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00194,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00192,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00192,"percentile":0.08357}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-863","name":"Incorrect Authorization","description":"The product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/863.html"}],"affected":[{"vendor":"chainguard","product":"external-secrets-operator-0.20","name":"external-secrets-operator-0.20","label":"external-secrets-operator-0.20","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-0.20","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"external-secrets-operator-1.0","name":"external-secrets-operator-1.0","label":"external-secrets-operator-1.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-1.0","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"external-secrets-operator-1.1","name":"external-secrets-operator-1.1","label":"external-secrets-operator-1.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-1.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"external-secrets-operator-fips-0.20","name":"external-secrets-operator-fips-0.20","label":"external-secrets-operator-fips-0.20","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-fips-0.20","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"external-secrets-operator-fips-1.0","name":"external-secrets-operator-fips-1.0","label":"external-secrets-operator-fips-1.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-fips-1.0","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"external-secrets-operator-fips-1.1","name":"external-secrets-operator-fips-1.1","label":"external-secrets-operator-fips-1.1","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/external-secrets-operator-fips-1.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"external-secrets-operator-1.1","name":"external-secrets-operator-1.1","label":"external-secrets-operator-1.1","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/external-secrets-operator-1.1","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"external-secrets","product":"external_secrets_operator","name":"external secrets operator","label":"external_secrets_operator","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.20.2, < 1.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.20.2, < 1.2.0","eol":null,"hubHref":"/vendor/external-secrets/external_secrets_operator"},{"vendor":"external-secrets","product":"external-secrets","name":"external-secrets","label":"external-secrets","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 0.20.2, < 1.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.20.2, < 1.2.0","eol":null,"hubHref":"/vendor/external-secrets/external-secrets"},{"vendor":"github.com/external-secrets","product":"external-secrets","name":"github.com/external-secrets/external-secrets","label":"external-secrets","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/external-secrets/external-secrets","purlType":"golang","versions":[{"text":"≥ 0.20.2, < 1.2.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 0.20.2, < 1.2.0","eol":null,"hubHref":null}],"affectedCount":10,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","label":"github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2","hostname":"github.com","tags":["X Refsource CONFIRM","Advisory","WEB","Vendor Advisory"]},{"url":"https://github.com/external-secrets/external-secrets/issues/5690","label":"github.com/external-secrets/external-secrets/issues/5690","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Issue Tracking"]},{"url":"https://github.com/external-secrets/external-secrets/pull/3895","label":"github.com/external-secrets/external-secrets/pull/3895","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Issue Tracking"]},{"url":"https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","label":"github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb","hostname":"github.com","tags":["X Refsource MISC","FIX","WEB","Patch"]},{"url":"https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0","label":"github.com/external-secrets/external-secrets/releases/tag/v1.2.0","hostname":"github.com","tags":["X Refsource MISC","WEB","Product","Release Notes"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22822","label":"access.redhat.com/security/cve/CVE-2026-22822","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2431873","label":"bugzilla.redhat.com/show_bug.cgi?id=2431873","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22822.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22822.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22822.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22822","label":"nvd.nist.gov/vuln/detail/CVE-2026-22822","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/external-secrets/external-secrets","label":"github.com/external-secrets/external-secrets","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["OPENSUSE-SU-2026:21483-1","SUSE-SU-2026:0403-1"],"duplicates":[],"related":["CGA-PW92-6PGH-P8VF","OPENSUSE-SU-2026:21483-1","SUSE-SU-2026:0403-1"]},"timeline":[{"kind":"published","date":"2026-01-21T21:22:05.249Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:19:08.563Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T19:28:28.199Z","stale":false,"partial":false}}