Skip to main content

Flux source-controller CVE-2026-47680

MEDIUM
Relative Path Traversal (CWE-23)
2026-06-05 https://github.com/fluxcd/source-controller GHSA-jjrm-hr5f-673x
5.3
CVSS 4.0 · Vendor: https://github.com/fluxcd/source-controller
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain write access to referenced object storage bucket
  2. Delivery
    Craft bucket object keys with '../' path traversal sequences
  3. Exploit
    Wait for or trigger source-controller Bucket reconciliation cycle
  4. Execution
    source-controller resolves traversed path and writes object data outside working directory
  5. Impact
    Overwrite sensitive files accessible to the controller pod process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Relative path traversal prevention
Exploitation Conditions

For the Bucket traversal: the attacker must have write access to - or the ability to influence object keys within - a cloud storage bucket that is actively referenced by a Flux Bucket resource in the target cluster. This requires at minimum external write permissions to the backing object store (S3, GCS, or compatible), such as via compromised cloud IAM credentials or a supply-chain position. Exploitation is limited to paths writable by the source-controller pod process, typically constrained by Kubernetes pod security contexts and any read-only filesystem mounts. For the GitRepository sparse-checkout enumeration: the attacker must hold Kubernetes RBAC permissions to create or update GitRepository resources in the target cluster, and source-controller must be running v1.6.0 or later. The information disclosed is limited to file existence (not content) and is read via the resource's .status field. Authentication requirements cannot be formally confirmed from CVSS data as no vector was provided; prerequisites above are inferred from the description text only.

Impact

No CVSS vector was provided for this CVE, so attack complexity, authentication level, and scope cannot be formally scored from that source - all assessments below are inferred from the description. The Bucket traversal requires an actor to control or meaningfully influence the object keys in a cloud storage bucket referenced by a Flux Bucket resource, implying compromised cloud credentials, insider access to the bucket, or a supply-chain position. This is a non-trivial prerequisite that substantially limits opportunistic exploitation. Critically, downstream digest verification by kustomize-controller and helm-controller prevents any manipulated artifact from being applied to the cluster, bounding the impact to pod-local file writes rather than full cluster compromise - though overwriting mounted secrets, TLS certificates, or configuration files on the pod remains a realistic secondary impact. The GitRepository enumeration surface requires Kubernetes RBAC permissions to create or update GitRepository resources, further constraining the attacker to privileged cluster users. Given no KEV listing, no public POC, and no EPSS data available, the overall real-world exploitation risk appears moderate rather than critical - but organizations where untrusted parties can write to referenced buckets, or where GitOps RBAC is broadly granted, should treat this as high priority.

Exploit ScenarioDerived

An attacker with write access to an S3-compatible bucket referenced by a Flux Bucket resource crafts object keys containing ../ traversal sequences such as ../../etc/cron.d/backdoor. When source-controller's reconciliation loop fetches the bucket contents, it resolves the traversed path using the unsafe filepath.Join() call and writes the object's data to that location on the pod filesystem. Although the downstream artifact digest verification in kustomize-controller or helm-controller would reject the final artifact before cluster application, the file write to the traversed path completes before digest checks occur, potentially overwriting pod-accessible secrets or configuration. No public proof-of-concept exploit has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 05, 2026

Path traversal vulnerabilities in Flux source-controller (CWE-23) expose two distinct attack surfaces on the controller pod. In the Bucket reconciler, an actor who can influence object keys in a referenced bucket can cause source-controller to write fetched data to arbitrary paths on the pod filesystem, escaping the per-reconciliation working directory sandbox. Separately, authenticated Kubernetes users with GitRepository create/update RBAC permissions can exploit the sparse-checkout feature (v1.6.0+) to enumerate file paths on the controller pod via the resource's status field. Both issues are patched in source-controller v1.8.5; no public exploit has been identified at time of analysis and this CVE is not listed in CISA KEV.

RemediationAI

Upgrade source-controller to v1.8.5, the vendor-released patch confirmed by the GitHub Advisory GHSA-jjrm-hr5f-673x. The fix is implemented in PR#2054 (https://github.com/fluxcd/source-controller/pull/2054) at commit 759bd6c451e7cc4327b38f42c8b671980165cb0e. There is no in-product workaround for the Bucket traversal surface - upgrade is the only remediation. For the GitRepository sparse-checkout enumeration surface only, a Kubernetes ValidatingAdmissionPolicy (or a third-party policy engine such as Kyverno or OPA Gatekeeper) can be deployed to reject GitRepository resources whose .spec.sparseCheckout entries contain .. or absolute path segments; this blocks the path enumeration primitive without requiring an immediate upgrade, but has no effect on the Bucket traversal and adds policy infrastructure overhead. As an additional compensating control for the Bucket surface pending upgrade, restrict write access to all buckets referenced by Flux Bucket resources to the minimum necessary principals, recognizing this relies entirely on external access controls rather than source-controller input validation.

Affected Packages

go github.com/fluxcd/source-controller fix: 1.8.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Source-controller is the GitOps artifact management component of Flux CD, written in Go (pkg:go/github.com/fluxcd/source-controller). The Bucket reconciler downloads objects from S3-compatible or GCS buckets and stores them locally, using the object key as the local file path. The root cause (CWE-23: Relative Path Traversal) is that object keys were passed directly to Go's stdlib filepath.Join() without sanitization, allowing keys containing ../ sequences to traverse outside the designated working directory. The fix, visible in PR#2054, replaces filepath.Join() with SecureJoin() from the github.com/cyphar/filepath-securejoin library, which resolves symlinks and enforces confinement to the base directory. The GitRepository sparse-checkout surface, introduced in v1.6.0, applied the same unsafe filepath.Join() pattern to user-supplied .spec.sparseCheckout path entries before checking their existence on disk, with the boolean result exposed through the resource's .status field - creating a limited but concrete path enumeration primitive.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/fluxcd/source-controller) PRIMARY 5.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/fluxcd/source-controller) · only source for this CVE.

CVSS VectorVendor: https://github.com/fluxcd/source-controller

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Sep 08, 2026 - 23:23 NVD
5.3 (MEDIUM)

DescriptionCVE.org

Impact

An actor with the ability to influence the contents of a bucket referenced by a Bucket resource can cause source-controller to write fetched object data to paths outside the per-reconciliation working directory.

The corruption surface is bounded by source-controller's own and downstream Flux controllers' digest verification: source-controller verifies stored artifact digests during reconciliation and rebuilds on divergence; consumers (kustomize-controller, helm-controller) verify the digest of fetched artifacts and reject mismatches. These checks prevent a manipulated artifact from reaching the cluster, but an attacker can still write files anywhere the source-controller pod has permission to write.

Separately, a user with permission to create or update GitRepository resources can cause source-controller to test for the existence of paths outside the cloned repository. Because the result is exposed via the resource's status, this allows limited enumeration of file paths on the controller pod. This surface exists only on source-controller v1.6.0 and later, where the sparse-checkout feature was introduced.

Patches

This vulnerability was fixed in source-controller v1.8.5.

Workarounds

There is no in-product workaround. Users should upgrade to a patched version.

As a defense-in-depth measure for the GitRepository sparse-checkout surface, a ValidatingAdmissionPolicy (or a third-party policy engine such as Kyverno or OPA Gatekeeper) can be deployed to reject GitRepository resources whose .spec.sparseCheckout entries contain .. or absolute path segments.

References

Credits

The path traversal in the Bucket reconciler was reported by JUNYI LIU. The path traversal in the GitRepository sparse-checkout validation was found and patched by the Flux engineering team.

For more information

If you have any questions or comments about this advisory:

  • Open an issue in the source-controller repository.
  • Contact us at the CNCF Flux Channel.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:go/github.com_fluxcd_source-controller

Vendor StatusVendor

SUSE

Product Status
SUSE Linux Enterprise Server 16.1 Affected
SUSE Linux Enterprise Server for SAP applications 16.1 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP5 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP6 Affected
openSUSE Leap 15.5 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy