{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-3195 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-3195 is a high-severity path traversal vulnerability in Bitcoin Bitcoin Core, published on 21 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3195 and fix it if it is affected.\n\nWhat it is: CVE-2021-3195 is a high-severity path traversal vulnerability in Bitcoin Bitcoin Core, published on 21 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3195 in the wild and no public exploit code.\n\nAffected product: Bitcoin Bitcoin Core. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-2021-3195/ (Markdown: https://insights.sbomify.com/CVE-2021-3195/index.md)","id":"CVE-2021-3195","markdown":"https://insights.sbomify.com/CVE-2021-3195/index.md","name":"CVE-2021-3195","record":{"aliases":["GHSA-xvf3-hffw-q8j7","openSUSE-SU-2022:0072-1"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Bitcoin Core daemon","requires_auth":"none","summary":"An attacker can write files to arbitrary directories via the dumpwallet RPC, potentially violating security models in forks.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"bitcoin_core","vendor":"bitcoin"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"description":"bitcoind in Bitcoin Core through 0.21.0 can create a new file in an arbitrary directory (e.g., outside the ~/.bitcoin directory) via a dumpwallet RPC call. NOTE: this reportedly does not violate the security model of Bitcoin Core, but can violate the security model of a fork that has implemented dumpwallet restrictions","ecosystems":["SUSE:Package Hub 15 SP3","openSUSE:Leap 15.3"],"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":"Path traversal in n/a","id":"CVE-2021-3195","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"bitcoin:bitcoin_core","products":["bitcoin:bitcoin_core"],"type":"path_traversal","year":"2021"},"n_packages":2,"n_references":1,"next":{"headline":"Auth bypass in n/a","id":"CVE-2021-3196"},"packages":[{"ecosystem":"SUSE:Package Hub 15 SP3","fixed":["0.21.2-bp153.2.3.1"],"introduced":["0"],"last_affected":[],"package":"bitcoin","purl":"pkg:rpm/suse/bitcoin\u0026distro=SUSE%20Package%20Hub%2015%20SP3","source":"openSUSE-SU-2022:0072-1"},{"ecosystem":"openSUSE:Leap 15.3","fixed":["0.21.2-bp153.2.3.1"],"introduced":["0"],"last_affected":[],"package":"bitcoin","purl":"pkg:rpm/opensuse/bitcoin\u0026distro=openSUSE%20Leap%2015.3","source":"openSUSE-SU-2022:0072-1"}],"prev":{"headline":"Command injection in n/a","id":"CVE-2021-3193"},"products":["n/a"],"published":"2021-01-21","related":[{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2025-46597","kev_date_added":null,"published":"2026-03-20"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2025-54604","kev_date_added":null,"published":"2025-10-28"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2025-54605","kev_date_added":null,"published":"2025-10-28"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2019-25220","kev_date_added":null,"published":"2024-11-18"},{"cvss_score":7.5,"headline":"Integer overflow in n/a","id":"CVE-2024-52912","kev_date_added":null,"published":"2024-11-18"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2024-52914","kev_date_added":null,"published":"2024-11-18"},{"cvss_score":7.5,"headline":"Denial of service in n/a","id":"CVE-2024-52915","kev_date_added":null,"published":"2024-11-18"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An attacker can write files to arbitrary directories via the dumpwallet RPC, potentially violating security models in forks.","url":"https://insights.sbomify.com/CVE-2021-3195/"}