CVE-2024-31216
source-controller leaks theAzure Storage SAS token into logs on connection errors
Reported by github_m · Published May 15, 2024
github.com/fluxcd/source-controller is fixed in 1.2.5 (Go Modules)
The source-controller is a Kubernetes operator, specialised in artifacts acquisition from external sources such as Git, OCI, Helm repositories and S3-compatible buckets. The source-controller implements the source.toolkit.fluxcd.io API and is a core component of the GitOps toolkit. Prior to version 1.2.5, when source-controller was configured to use an Azure SAS token when connecting to Azure Blob Storage, the token was logged along with the Azure URL when the controller encountered a connection error. An attacker with access to the source-controller logs could use the token to gain access to the Azure Blob Storage until the token expires. This vulnerability was fixed in source-controller v1.2.5. There is no workaround for this vulnerability except for using a different auth mechanism such as Azure Workload Identity.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/fluxcd/source-controller | Go Modules | 1.2.5 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| fluxcd | source-controller | < 1.2.5 |
| wolfi | flux-source-controller | * |
| github.com | fluxcd/source-controller | 0 |
| chainguard | flux-source-controller | * |
| fluxcd | source-controller | 0 |
Timeline
- Apr 4, 2024 Fix PR Merged
- May 15, 2024 CVE Published
- May 16, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (5 in total, the first dated here)
- Dec 5, 2025 CVE Updated
- Jan 13, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-31216
vulnetix vdb fixes CVE-2024-31216
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-31216/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/fluxcd/source-controller/security/advisories/GHSA-v554-xwgw-hc3w x_refsource_CONFIRM
- https://github.com/fluxcd/source-controller/pull/1430 x_refsource_MISC
- https://github.com/fluxcd/source-controller/commit/915d1a072a4f37dd460ba33079dc094aa6e72fa9 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2024-31216 advisory
- https://github.com/advisories/GHSA-v554-xwgw-hc3w advisory
- https://github.com/fluxcd/source-controller url