Skip to content

Commit 82dd745

Browse files
1 parent 70f96c4 commit 82dd745

1 file changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-77v3-r3jw-j2v2",
4+
"modified": "2026-01-20T16:37:18Z",
5+
"published": "2026-01-20T16:37:18Z",
6+
"aliases": [
7+
"CVE-2026-22822"
8+
],
9+
"summary": "External Secrets Operator insecurely retrieves secrets through the getSecretKey templating function",
10+
"details": "### Summary\n\nThe `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.\n\nThis function was completely removed, as everything done with that templating function can be done in a different way while respecting our safeguards (for example, using `sourceRef` like explained here: https://github.com/external-secrets/external-secrets/issues/5690#issuecomment-3630977865)\n\n### Impact\n- Cross-namespace secret access: Attackers or misconfigured resources could retrieve secrets from namespaces other than the one intended.\n- privilege escalation: Unauthorized access to secrets could lead to privilege escalation, data exfiltration, or compromise of service accounts and credentials.\n\n### Resolution\n\nWe removed the incriminated templating function from our codebase. All users should upgrade to the latest version containing this fix.\n\n### Workarounds\n\nUse a policy engine such as Kubernetes, Kyverno, Kubewarden, or OPA to prevent the usage of `getSecretKey` in any ExternalSecret resource.\n\n### Details\n\nSee also:\n- https://github.com/external-secrets/external-secrets/issues/5690\n- https://github.com/external-secrets/external-secrets/pull/3895",
11+
"severity": [
12+
{
13+
"type": "CVSS_V4",
14+
"score": "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"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "Go",
21+
"name": "github.com/external-secrets/external-secrets"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0.20.2"
29+
},
30+
{
31+
"fixed": "1.2.0"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/external-secrets/external-secrets/security/advisories/GHSA-77v3-r3jw-j2v2"
42+
},
43+
{
44+
"type": "WEB",
45+
"url": "https://github.com/external-secrets/external-secrets/issues/5690"
46+
},
47+
{
48+
"type": "WEB",
49+
"url": "https://github.com/external-secrets/external-secrets/pull/3895"
50+
},
51+
{
52+
"type": "WEB",
53+
"url": "https://github.com/external-secrets/external-secrets/commit/17d3e22b8d3fbe339faf8515a95ec06ec92b1feb"
54+
},
55+
{
56+
"type": "PACKAGE",
57+
"url": "https://github.com/external-secrets/external-secrets"
58+
},
59+
{
60+
"type": "WEB",
61+
"url": "https://github.com/external-secrets/external-secrets/releases/tag/v1.2.0"
62+
}
63+
],
64+
"database_specific": {
65+
"cwe_ids": [
66+
"CWE-863"
67+
],
68+
"severity": "CRITICAL",
69+
"github_reviewed": true,
70+
"github_reviewed_at": "2026-01-20T16:37:18Z",
71+
"nvd_published_at": null
72+
}
73+
}

0 commit comments

Comments
 (0)