GHSA-fcxq-v2r3-cc8h

Suggest an improvement
Source
https://github.com/advisories/GHSA-fcxq-v2r3-cc8h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-fcxq-v2r3-cc8h/GHSA-fcxq-v2r3-cc8h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fcxq-v2r3-cc8h
Aliases
Downstream
Published
2025-08-13T19:45:15Z
Modified
2025-08-18T13:57:17.878658Z
Severity
  • 7.1 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N CVSS Calculator
Summary
External Secrets Operator's Missing Namespace Restriction Allows Unauthorized Secret Access
Details

Summary

A vulnerability was discovered in the External Secrets Operator where the List() calls for Kubernetes Secret and SecretStore resources performed by the PushSecret controller did not apply a namespace selector.
This flaw allowed an attacker to use label selectors to list and read secrets/secret-stores across the cluster, bypassing intended namespace restrictions.


Impact

An attacker with the ability to create or update PushSecret resources and control SecretStore configurations could exploit this vulnerability to exfiltrate sensitive data from arbitrary namespaces.
This could lead to full disclosure of Kubernetes secrets, including credentials, tokens, and other sensitive information stored in the cluster.


Exploitability

To exploit this vulnerability, an attacker must:

  1. Have permissions to create or update PushSecret resources.
  2. Control one or more SecretStore resources.

With these conditions met, the attacker could leverage label selectors to list secrets from any namespace and retrieve their contents.


Affected Versions

  • Vulnerable: v0.15.0 – v0.19.1
  • Not Vulnerable: v0.19.2 and later

Fix

The vulnerability was addressed in v0.19.2 by adding namespace restrictions to the List() calls for both PushSecret and SecretStore controllers.
This ensures that only secrets in the intended namespace are accessible.

Relevant fixes: - #5133 – Enforce namespace selector for PushSecret List() calls
- #5109 – Enforce namespace selector for SecretStore List() calls


Mitigation

If upgrading to v0.19.2 or later is not immediately possible, the following mitigations are recommended:

  • Restrict RBAC permissions so that only trusted service accounts can create or update PushSecret and SecretStore resources.
  • Audit existing PushSecret and SecretStore resources to ensure they are controlled by trusted parties.
  • Review Network Policies to prevent data exfiltration

Credit

This vulnerability was reported by @gracedo and @moolen

Database specific
{
    "cwe_ids": [
        "CWE-284"
    ],
    "github_reviewed_at": "2025-08-13T19:45:15Z",
    "nvd_published_at": "2025-08-13T23:15:27Z",
    "severity": "HIGH",
    "github_reviewed": true
}
References

Affected packages

Go / github.com/external-secrets/external-secrets

Package

Name
github.com/external-secrets/external-secrets
View open source insights on deps.dev
Purl
pkg:golang/github.com/external-secrets/external-secrets

Affected ranges

Type
SEMVER
Events
Introduced
0.15.0
Fixed
0.19.2

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/08/GHSA-fcxq-v2r3-cc8h/GHSA-fcxq-v2r3-cc8h.json"