ExternalSecrets vulnerable to privilege escalation with secret overwriting
Moderate severity
GitHub Reviewed
Published
May 5, 2026
in
external-secrets/external-secrets
•
Updated May 13, 2026
Package
Affected versions
>= 0.1.0, < 2.4.1
Patched versions
2.4.1
Description
Published to the GitHub Advisory Database
May 8, 2026
Reviewed
May 8, 2026
Published by the National Vulnerability Database
May 11, 2026
Last updated
May 13, 2026
ExternalSecrets allows users to craft Service Account tokens for misconfigured Service Accounts in namespaces the users have access to.
Impact
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 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.
The 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.
Patches
Disallow this combination including the bootstrap token secret type.
Workarounds
References