{"id":"CVE-2026-42876","aliases":["CVE-2026-42876","GHSA-fq7h-9x26-6j22","GO-2026-5377"],"related":[],"kind":"vulnerability","state":"published","title":"External Secrets Operator: Privilege escalation with secret overwriting","summary":"External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. Prior to 2.4.1, a user who only has permission to create ExternalSecret resources can cause the operator to create a Secret that Kubernetes will automatically populate with a long-lived token for the specified service account. This effectively allows the user to impersonate any service account in the namespace without needing direct create permissions on TokenRequest or Secrets of that type. This vulnerability is fixed in 2.4.1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"External Secrets Operator reads information from a third-party service and automatically injects the values as Kubernetes Secrets. Prior to 2.4.1, a user who only has permission to create ExternalSecret resources can cause the operator to create a Secret that Kubernetes will automatically populate with a long-lived token for the specified service account. This effectively allows the user to impersonate any service account in the namespace without needing direct create permissions on TokenRequest or Secrets of that type. This vulnerability is fixed in 2.4.1.","source":"cvelist"},{"lang":"en","text":"ExternalSecrets allows users to craft Service Account tokens for misconfigured Service Accounts in namespaces the users have access to.\n\n### Impact\n\nA user who only has permission to create ExternalSecret resources can cause the operator to create a Secret that Kubernetes will automatically populate with a long-lived token for the sepcified service account. This effectively allows the user to impersonate any service account in the namespace without needing direct create permissions on TokenRequest or Secrets of that type.\n\nThe problem is mitigated in severity by the fact that the user must have pre-existing permissions already at almost the same level as the escalation later gives. The attacker cannot use this method to gain access to more information without other things also being misconfigured in the ESO installation.\n\n### Patches\n\nDisallow this combination including the bootstrap token secret type.\n\n### Workarounds\n\n* Add admission control logic to prevent the use of Templates targeting undesired Types\n* Remove Service Account Token generation via kube-controller-manager flags\n* Restrict User RBAC on production clusters and sensitive namespaces","format":"markdown","source":"ghsa"},{"lang":"en","text":"ExternalSecrets vulnerable to privilege escalation with secret overwriting in github.com/external-secrets/external-secrets/apis.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/external-secrets/external-secrets/apis from v0.1.0 before v2.4.1.","format":"markdown","source":"go"}],"published":"2026-05-08T17:24:15.000Z","modified":"2026-10-06T15:30:23.871Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:L/I:L/A:N","score":4.9,"rating":"MEDIUM"}],"cwes":["CWE-285"],"affected":[{"ranges":[{"version":"< 2.4.1","status":"affected"}],"vendor":"external-secrets","product":"external-secrets","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0.1.0","status":"affected","fixed":"2.4.1"}],"ecosystem":"Go","package":"github.com/external-secrets/external-secrets/apis","purl":"pkg:golang/github.com/external-secrets/external-secrets/apis","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/external-secrets/external-secrets/apis","purl":"pkg:golang/github.com/external-secrets/external-secrets/apis","source":"go"}],"references":[{"url":"https://github.com/external-secrets/external-secrets/security/advisories/GHSA-fq7h-9x26-6j22","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/external-secrets/external-secrets/commit/4ddd240af7fe88725d9857b9a0c198073502e288","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/external-secrets/external-secrets/releases/tag/v2.4.1","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42876","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/external-secrets/external-secrets","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-05-12T13:26:08.541Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-42876","url":"https://www.cve.org/CVERecord?id=CVE-2026-42876","licence":"CVE Terms of Use","modified":"2026-10-06T15:30:23.871Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-fq7h-9x26-6j22","url":"https://github.com/advisories/GHSA-fq7h-9x26-6j22","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:46.751Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5377","url":"https://pkg.go.dev/vuln/GO-2026-5377","licence":"CC-BY-4.0","modified":"2026-06-25T19:45:36.828Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-42876","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-42876","licence":"Public domain","modified":"2026-06-17T10:48:32.953Z"}],"updatedAt":"2026-11-25T22:59:21.253Z","epss":{"score":0.00215,"percentile":0.12583,"date":"2026-12-02T12:00:21.000Z"}}