{"id":"CVE-2024-31216","published":"2024-05-15T15:52:15Z","modified":"2024-08-02T01:46:04Z","title":"source-controller leaks theAzure Storage SAS token into logs on connection errors","vendor":"fluxcd","product":"source-controller","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.1,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00313,"percentile":0.16662,"provenance":"source"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"references":[{"url":"https://github.com/fluxcd/source-controller/security/advisories/GHSA-v554-xwgw-hc3w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/fluxcd/source-controller/pull/1430","tags":["x_refsource_MISC"]},{"url":"https://github.com/fluxcd/source-controller/commit/915d1a072a4f37dd460ba33079dc094aa6e72fa9","tags":["x_refsource_MISC"]}],"priority":{"score":6.9,"factors":[{"name":"EPSS percentile","points":3.33},{"name":"CVSS severity","points":3.57}]},"vendorSlug":"fluxcd","affectedVersions":[{"vendor":"fluxcd","product":"source-controller","versions":["< 1.2.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-05-16T17:32:05.849081Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/fluxcd/source-controller","vulnerableRanges":["<1.2.5"],"patched":["1.2.5"],"from":["GHSA-v554-xwgw-hc3w","GO-2024-2859"],"provenance":"source"}],"summary":{"text":"The source-controller component of FluxCD, a Kubernetes operator that acquires artifacts from Git, OCI, Helm and S3-compatible sources, logs an Azure Storage SAS token along with the Azure URL when it hits a connection error while configured to use that token with Azure Blob Storage (versions prior to 1.2.5). An attacker who can read the source-controller logs, which requires local access to those logs, and with no authentication or user interaction needed, can reuse the leaked token to access the Azure Blob Storage until the token expires.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:40Z"},"euvd":{"id":"EUVD-2024-1788","exploited":false,"provenance":"source"}}