4.9medium
sealed-secrets /v1/rotate can widen sealing scope to cluster-wide via attacker-controlled template annotations
- Severity
- 4.9medium CVSS:3.1 by vmware
- Exploit likelihood
- 0.60% (higher than 43% of CVEs)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-465p-v42x-3fmjBIT-SEALED-SECRETS-2026-22728GO-2026-4565
Description
Bitnami Sealed Secrets is vulnerable to a scope-widening attack during the secret rotation (/v1/rotate) flow. The rotation handler derives the sealing scope for the newly encrypted output from untrusted spec.template.metadata.annotations present in the input SealedSecret. By submitting a victim SealedSecret to the rotate endpoint with the annotation sealedsecrets.bitnami.com/cluster-wide=true injected into the template metadata, a remote attacker can obtain a rotated version of the secret that is cluster-wide. This bypasses original "strict" or "namespace-wide" constraints, allowing the attacker to retarget and unseal the secret in any namespace or under any name to recover the plaintext credentials.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Bitnami sealed-secrets | from 0.35.0 before <0.36.0 | CVE List |
| github.com/bitnami-labs/sealed-secrets (Go) | before 0.36.0 | GitHub Advisory Database, Go Vulnerability Database |
| sealed-secrets (Bitnami) | before 0.36.0 | Bitnami Vulnerability Database |
All scores
| vmware | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 4.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Bitnami Sealed Secrets is vulnerable to a scope-widening attack during the secret rotation (/v1/rotate) flow. The rotation handler derives the sealing scope for the newly encrypted output from untrusted spec.template.metadata.annotations present in the input SealedSecret. By submitting a victim SealedSecret to the rotate endpoint with the annotation sealedsecrets.bitnami.com/cluster-wide=true injected into the template metadata, a remote attacker can obtain a rotated version of the secret that is cluster-wide. This bypasses original "strict" or "namespace-wide" constraints, allowing the attacker to retarget and unseal the secret in any namespace or under any name to recover the plaintext credentials.
GitHub Advisory Database
This report shows a scope-widening issue in the rotate (re-encrypt) flow: the output scope can be derived from untrusted spec.template.metadata.annotations on the input sealed secret.
If a victim sealed secret is strict- or namespace-scoped, an attacker who can submit it to the rotate endpoint can set sealedsecrets.bitnami.com/cluster-wide=true in the template metadata and receive a rotated sealed secret that is cluster-wide, enabling retargeting (metadata.name/metadata.namespace) and unsealing to recover the victim plaintext.
Relevant Links (Pinned)
- Rotate handler uses
NewSealedSecret(..., secret)after unsealing: https://github.com/bitnami-labs/sealed-secrets/blob/946bc048f3407117c837da6e4300686522d4c4eb/pkg/controller/controller.go#L560-L606 - Scope derivation reads secret annotations (
SecretScope): https://github.com/bitnami-labs/sealed-secrets/blob/946bc048f3407117c837da6e4300686522d4c4eb/pkg/apis/sealedsecrets/v1alpha1/sealedsecret_expansion.go#L112-L122
Root Cause
The rotate flow unseals the input sealed secret to a Secret, then reseals using NewSealedSecret(..., secret).
Because SecretScope(secret) is computed from secret annotations, and unsealing applies spec.template metadata onto the unsealed secret, an attacker can influence the scope of the rotated output by mutating template annotations on the rotate input.
Attack Path
- Attacker obtains a victim
SealedSecretobject (for example via read access to resources or logs) and can submit it to the controller rotate endpoint. - Attacker sets
spec.template.metadata.annotations.sealedsecrets.bitnami.com/cluster-wide=true(and optionally retargets name/namespace fields). - Rotate returns a resealed, cluster-wide sealed secret that is no longer bound to the victim name/namespace.
- Attacker unseals the rotated output in their chosen namespace/name to recover the victim plaintext.
Proof of Concept
Setup + run:
unzip poc.zip -d poc
cd poc
make test
Canonical output (excerpt):
[CALLSITE_HIT]: pkg/apis/sealedsecrets/v1alpha1/sealedsecret_expansion.go:112 SecretScope
[PROOF_MARKER]: scope_widened=true rotated_scope=cluster-wide
Control output (excerpt):
[NC_MARKER]: scope_widened=false strict_scope_preserved=true
Fix Accepted When
Rotate preserves the original sealing scope and does not allow scope widening based on untrusted template metadata; strict or namespace-wide inputs cannot produce cluster-wide outputs.
Go Vulnerability Database
Sealed Secrets for Kubernetes: Rotate API Allows Scope Widening from Strict/Namespace-Wide to Cluster-Wide via Untrusted Template Annotations in github.com/bitnami-labs/sealed-secrets
NVD (es)
Bitnami Sealed Secrets es vulnerable a un ataque de ampliación de alcance durante el flujo de rotación de secretos (/v1/rotate). El gestor de rotación deriva el alcance de sellado para la salida recién cifrada de anotaciones no confiables spec.template.metadata.annotations presentes en el SealedSecret de entrada. Al enviar un SealedSecret víctima al endpoint de rotación con la anotación sealedsecrets.bitnami.com/cluster-wide=true inyectada en los metadatos de la plantilla, un atacante remoto puede obtener una versión rotada del secreto que es a nivel de clúster. Esto elude las restricciones originales 'strict' o 'namespace-wide', permitiendo al atacante reorientar y desellar el secreto en cualquier espacio de nombres o bajo cualquier nombre para recuperar las credenciales en texto plano.
References
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-22728 changed 2026-02-26 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-465p-v42x-3fmj changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-4565 changed 2026-03-23 | CC-BY-4.0 |
| NVD | CVE-2026-22728 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-SEALED-SECRETS-2026-22728 changed 2026-03-23 | Apache-2.0 |