{"answers":{"affected":"3 open source packages ship an affected version, including github.com/kopia/kopia.","exploited":"There is no known exploitation of GHSA-j5vm-7qcc-2wwg in the wild and no public exploit code.","fix":"Upgrade github.com/kopia/kopia to 0.16.0 or later.","what":"GHSA-j5vm-7qcc-2wwg is a vulnerability in github.com/kopia/kopia, published on 10 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-j5vm-7qcc-2wwg and fix it if it is affected.\n\nWhat it is: GHSA-j5vm-7qcc-2wwg is a vulnerability in github.com/kopia/kopia, published on 10 Apr 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-j5vm-7qcc-2wwg in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/kopia/kopia (Go): affected all versions; fixed in 0.16.0\n- github.com/kopia/kopia (Go): affected all versions; fixed in 0.16.0\n- github.com/kopia/kopia (Go): affected all versions; fixed in 0.16.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-j5vm-7qcc-2wwg/ (Markdown: https://insights.sbomify.com/GHSA-j5vm-7qcc-2wwg/index.md)","id":"GHSA-j5vm-7qcc-2wwg","markdown":"https://insights.sbomify.com/GHSA-j5vm-7qcc-2wwg/index.md","name":"GHSA-j5vm-7qcc-2wwg","record":{"aliases":["GO-2024-2703"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Kopia backup tool","requires_auth":"none","summary":"Kopia CLI exposes storage credentials in console output when using JSON format, allowing local attackers to steal sensitive repository access keys.","user_interaction":"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\n_What kind of vulnerability is it? Who is impacted?_\n\nStorage credentials are written to the console.\n\n### Patches\n\n_Has the problem been patched?_ Yes, see #3589\n_What versions should users upgrade to?_\n- Any version after or including commit 1d6f852cd6534f4bea978cbdc85c583803d79f77\n- No release has been created yet.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\n- Be aware that `kopia repo status --json` will write the credentials to the output without scrubbing them.\n- Avoid executing `kopia repo status` with the `--json` flag in an insecure environment where.\n- Avoid logging the output of the `kopia repo status --json` command.","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":"Kopia: Storage connection credentials written to console on \"repository status\" CLI command with JSON output","id":"GHSA-j5vm-7qcc-2wwg","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"Go","fixed":["0.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kopia/kopia","purl":null,"source":"GHSA-j5vm-7qcc-2wwg"},{"ecosystem":"Go","fixed":["0.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kopia/kopia","purl":"pkg:golang/github.com/kopia/kopia","source":"GHSA-j5vm-7qcc-2wwg"},{"ecosystem":"Go","fixed":["0.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/kopia/kopia","purl":"pkg:golang/github.com/kopia/kopia","source":"GO-2024-2703"}],"products":null,"published":"2024-04-10","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":"Kopia CLI exposes storage credentials in console output when using JSON format, allowing local attackers to steal sensitive repository access keys.","url":"https://insights.sbomify.com/GHSA-j5vm-7qcc-2wwg/"}