{"answers":{"affected":"3 open source packages ship an affected version, including github.com/treeverse/lakefs.","exploited":"There is no known exploitation of GHSA-4rgc-5g6r-2rjf in the wild and no public exploit code.","fix":"Upgrade github.com/treeverse/lakefs to 0.101.0 or later.","what":"GHSA-4rgc-5g6r-2rjf is a vulnerability in github.com/treeverse/lakefs, published on 12 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for GHSA-4rgc-5g6r-2rjf and fix it if it is affected.\n\nWhat it is: GHSA-4rgc-5g6r-2rjf is a vulnerability in github.com/treeverse/lakefs, published on 12 Dec 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of GHSA-4rgc-5g6r-2rjf in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/treeverse/lakefs (Go): affected all versions; fixed in 0.101.0\n- github.com/treeverse/lakefs (Go): affected all versions; fixed in 0.101.0\n- github.com/treeverse/lakefs (Go): affected all versions; fixed in 0.101.0\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/GHSA-4rgc-5g6r-2rjf/ (Markdown: https://insights.sbomify.com/GHSA-4rgc-5g6r-2rjf/index.md)","id":"GHSA-4rgc-5g6r-2rjf","markdown":"https://insights.sbomify.com/GHSA-4rgc-5g6r-2rjf/index.md","name":"GHSA-4rgc-5g6r-2rjf","record":{"aliases":["GO-2023-2398"],"analysis":{"component_type":"server_software","fix_type":"no_fix_stated","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"lakeFS data lake","requires_auth":"low_privilege","summary":"lakeFS logs S3 credentials in plain text, allowing attackers with log access to steal cloud storage keys.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nS3 credentials are logged in plain text\n\n```\nS3Creds:{Key:AKIAIOSFODNN7EXAMPLE Secret:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY\n```\n\nappears as part of the log message: \n\n```\ntime=\"2023-05-12T13:51:52Z\" level=error msg=\"failed to perform diff\" func=\"pkg/plugins/diff.(*Service).RunDiff\" file=\"build/pkg/plugins/diff/service.go:124\" error=\"rpc error: code = Canceled desc = stream terminated by RST_STREAM with error code: CANCEL\" host=\"localhost:8000\" method=GET operation_id=OtfDiff params=\"{TablePaths:{Left:{Ref:data_load@ Path:aggs/agg_variety/} Right:{Ref:data_load Path:aggs/agg_variety/} Base:{Ref: Path:}} S3Creds:{Key:AKIAIOSFODNN7EXAMPLE Secret:wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY Endpoint:http://0.0.0.0:8000} Repo:example}\" path=\"/api/v1/repositories/example/otf/refs/data_load%40/diff/data_load?table_path=aggs%2Fagg_variety%2F\u0026type=delta\" request_id=d3b6fdc7-2544-4c12-8e05-376f16e35a80 service_name=rest_api type=delta user=docker\n```\n\nDiscovered when investigating [#5862](https://github.com/treeverse/lakeFS/issues/5862)\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nNo\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\ndisable all logging? \n\n### References\n_Are there any links users can visit to find out more?_","ecosystems":["Go"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"lakeFS logs S3 credentials in plain text","id":"GHSA-4rgc-5g6r-2rjf","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2023"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.101.0"],"introduced":["0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":null,"source":"GHSA-4rgc-5g6r-2rjf"},{"ecosystem":"Go","fixed":["0.101.0"],"introduced":["0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"GHSA-4rgc-5g6r-2rjf"},{"ecosystem":"Go","fixed":["0.101.0"],"introduced":["0"],"last_affected":[],"package":"github.com/treeverse/lakefs","purl":"pkg:golang/github.com/treeverse/lakefs","source":"GO-2023-2398"}],"products":null,"published":"2023-12-12","related":[],"sources":[{"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"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"lakeFS logs S3 credentials in plain text, allowing attackers with log access to steal cloud storage keys.","url":"https://insights.sbomify.com/GHSA-4rgc-5g6r-2rjf/"}