BTCPay Vulnerability: What Is Known and What Steps Should Be Taken?
What do we know?
On November 1, BTCPay Server users began reporting that Bitcoin and Litecoin had been stolen from their hot wallets. The BTCPay team warned the community on X at 22:25 UTC and asked operators to shut down their servers while the investigation was under way.
According to the official incident report:
- The attacks target BTCPay Server 2.4.1 (released July 23, 2026) and earlier. The attackers used a different method to exploit the vulnerability that was fixed in 2.4.2 (released August 7, 2026).
- Servers running 2.4.2 or later show no impact from these attacks, as far as the team has seen.
- Wallets whose keys are stored off the server (for example, hardware wallets) were not affected.
- It is not known when attackers first started exploiting the vulnerability. Since the attacks are automated, they could have planted backdoors on vulnerable servers. An unchanged wallet balance does not rule out an earlier compromise.
- LunaNode and other hosting providers took BTCPay instances offline as a precaution. If you use hosted BTCPay, contact your provider.
Earlier in the investigation, the team reported backdoors in the following files (these indicators are not repeated in the official write-up, so treat them as preliminary):
- e40db3b546e7cf0cd62d9fd243a3d8bbf0641f2071d79c0f4ca81e54c887a78f Hdl/ and Hdl2/BTCPayServer.Plugins.Hdl.dll
- e1d4ea2b6d2838dd8f9def657aa1ad5a8cd923f4085a980199ff34ba1008c375 Hdl4/BTCPayServer.Plugins.Hdl/BTCPayServer.Plugins.Hdl.dll
- 2229b44a5d5216edd13981d902d8874f13e59403d89f87703c6a058972423e98 SysMonX/SysMonX.dll
- PDB path in Hdl: /app/data/tasks/322/i48300/plugin/BTCPayServer.Plugins.Hdl/obj/Release/net10.0/BTCPayServer.Plugins.Hdl.pdbAddresses that received the stolen funds, according to the incident reports:
- Bitcoin:
bc1p0f7wmcnesrapznymf9ljdn04pudgmh96sqtrm9vmgqxdh666fh8qvn63r7 - Litecoin:
ltc1qp49tmfdueyaqrmgrx0uyx4uegyygt8yt02whee
Some activity at these addresses predates the reported thefts, so their balances should not be treated as a confirmed total of losses.
What steps should be taken now?
1. Check your version. Log in and look at the bottom of the page.
- 2.4.2 or later (and you were on it before the November 1 warning): no impact has been seen on such servers. Keep updating as releases come out.
- 2.4.1 or earlier: you are at risk, even if you haven’t noticed a theft and even if you updated after November 1. Updating does not remove access an attacker may already have. Follow the steps below.
- Funds stolen or signs of unauthorized access: treat the whole machine and all its secrets as compromised, even if you have already updated.
2. Secure your funds. While a vulnerable server is running, you are at risk. Stop all BTCPay Docker containers:
cd /path/to/your/btcpay
./btcpay-down.sh3. Sweep the hot wallet into a new wallet with a new seed (instructions below). Do this on a trusted device. Reusing the old seed on a new server leaves your funds at risk.
4. Move to a fresh server.
- Keep the old server offline. Save logs and transaction records for the investigation before you delete it.
- Provision a new VM and install the latest BTCPay Server release from trusted sources.
- Don't restore the whole old server onto the new machine.
- From a trusted device, revoke and replace every credential the old server had access to: hosting, SSH, application, API and Lightning credentials. Don't enter the new credentials on the old machine.
How to withdraw funds when BTCPay is down
Get your wallet seed
Take the seed you used when setting up your wallet in BTCPay. If you did not save it, you can retrieve a list of all available seeds using this command, without needing to launch the BTCPay server:
cd /path/to/your/btcpay/Generated
docker compose -f docker-compose.generated.yml up postgres -d
docker compose -f docker-compose.generated.yml exec postgres psql -U postgres -d nbxplorermainnet -c "SELECT m.data, w.metadata->>'code' AS code FROM nbxv1_metadata m JOIN wallets w ON w.wallet_id = m.wallet_id WHERE m.key = 'Mnemonic';"
docker compose -f docker-compose.generated.yml down postgresSetup Electrum wallet
- Download it from https://electrum.org/
- Run it and create a new wallet, choose a "Standard wallet"
- On the next step, choose "I already have a seed" and press "Next"
- Click "Options" and select the "BIP-39" seed type
- Insert your BTCPay seed, move on
- Choose "native segwit" address type and move to password setup step
Transfer your funds
You now have access to the BTCPay wallet. Transfer all funds to a wallet with a different seed phrase that you control.
Is it safe to run BTCPay now?
- A fresh server on the latest version is the officially recommended path. Install it from trusted sources and don’t carry over the old machine’s state.
- Don’t keep large balances in a hot wallet. Better still, connect an xpub in BTCPay instead of a seed phrase (or use a hardware wallet). Then even a new vulnerability can't drain your funds.
- If you need a hot wallet for daily operations, keep only what those operations need on the server.
- Install updates promptly. The team announces releases on X and in the Telegram chat.
Lost funds?
Email [email protected] and include:
- the BTCPay version you were running, when you last updated, and the previous version;
- when you noticed the incident (with your timezone);
- relevant public transaction IDs and addresses.
Also report the theft to your local authorities. Never send seed phrases, private keys, passwords or other credentials, and remove secrets from any logs or configs before sharing them.