CVE-2021-3195 Path traversal in n/a
An attacker can write files to arbitrary directories via the dumpwallet RPC, potentially violating security models in forks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-3195?
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.
Official 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
Weakness: CWE-20
Which versions are affected by CVE-2021-3195?
It affects 1 product.
Linux distribution packages (2)
bitcoin SUSE:Package Hub 15 SP3 | All versions | 0.21.2-bp153.2.3.1 |
bitcoin openSUSE:Leap 15.3 | All versions | 0.21.2-bp153.2.3.1 |
Products include Bitcoin Bitcoin Core.
How do I fix CVE-2021-3195?
Apply the vendor's patch.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2021-3195 being exploited?
There is no known exploitation of CVE-2021-3195 in the wild and no public exploit code.
Other vulnerabilities in Bitcoin Bitcoin Core
Sources
Also known as GHSA-xvf3-hffw-q8j7, openSUSE-SU-2022:0072-1.