{"answers":{"affected":"3 open source packages ship an affected version, including github.com/fluxcd/source-controller.","exploited":"There is no known exploitation of CVE-2024-31216 in the wild and no public exploit code.","fix":"Upgrade github.com/fluxcd/source-controller to 1.2.5 or later.","what":"CVE-2024-31216 is a medium-severity vulnerability in fluxcd source-controller, published on 15 May 2024. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-31216 and fix it if it is affected.\n\nWhat it is: CVE-2024-31216 is a medium-severity vulnerability in fluxcd source-controller, published on 15 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2024-31216 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/fluxcd/source-controller (Go): affected all versions; fixed in 1.2.5\n- github.com/fluxcd/source-controller (Go): affected all versions; fixed in 1.2.5\n- github.com/fluxcd/source-controller (Go): affected all versions; fixed in 1.2.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-31216/ (Markdown: https://insights.sbomify.com/CVE-2024-31216/index.md)","id":"CVE-2024-31216","markdown":"https://insights.sbomify.com/CVE-2024-31216/index.md","name":"CVE-2024-31216","record":{"aliases":["GHSA-v554-xwgw-hc3w","GO-2024-2859"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Kubernetes source controller","requires_auth":"none","summary":"Attackers with log access can steal Azure SAS tokens leaked during connection errors, gaining unauthorized access to Azure Blob Storage.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"source-controller leaks theAzure Storage SAS token into logs on connection errors","id":"CVE-2024-31216","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":3,"next":{"headline":"@strapi/plugin-upload has a Denial-of-Service via Improper Exception Handling","id":"CVE-2024-31217"},"packages":[{"ecosystem":"Go","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/source-controller","purl":null,"source":"GHSA-v554-xwgw-hc3w"},{"ecosystem":"Go","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/source-controller","purl":"pkg:golang/github.com/fluxcd/source-controller","source":"GHSA-v554-xwgw-hc3w"},{"ecosystem":"Go","fixed":["1.2.5"],"introduced":["0"],"last_affected":[],"package":"github.com/fluxcd/source-controller","purl":"pkg:golang/github.com/fluxcd/source-controller","source":"GO-2024-2859"}],"prev":{"headline":"Mobile Security Framework (MobSF) vulnerable to Server-Side Request Forgery (SSRF) in firebase database check","id":"CVE-2024-31215"},"products":["source-controller"],"published":"2024-05-15","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["fluxcd"]},"summary":"Attackers with log access can steal Azure SAS tokens leaked during connection errors, gaining unauthorized access to Azure Blob Storage.","url":"https://insights.sbomify.com/CVE-2024-31216/"}