CVE-2017-18350
Bitcoin Core vulnerability analysis and mitigation

Overview

bitcoind and Bitcoin-Qt prior to 0.15.1 contain a stack-based buffer overflow vulnerability when using an attacker-controlled SOCKS proxy server. The vulnerability stems from an integer signedness error that occurs when the proxy server responds with an acknowledgement of an unexpected target domain name (NVD).

Technical details

The vulnerability was introduced in April 2012 with SOCKS5 support implementation. When a connection request is made from the node, if a malicious proxy responds with an acknowledgement containing a target domain name length using the high bit (128-255), it gets interpreted as a negative number. This negative number, when passed to the recv() system call, gets converted to an unsigned/positive 32-bit number, resulting in an infinite read beyond the 256-byte dummy stack buffer (Dashjr Disclosure).

Impact

The vulnerability allows a malicious SOCKS proxy server to overwrite the program stack on systems with a signed char type, including common 32-bit and 64-bit x86 PCs. This is particularly concerning for nodes configured to use a proxy over an insecure network like the Internet, as connections could be intercepted for exploitation (Dashjr Disclosure).

Mitigation and workarounds

The vulnerability was fixed in Bitcoin Core v0.15.1, released on November 9, 2017. The fix involved changing the dummy buffer to an explicitly unsigned data type, preventing the conversion to/from a negative number. Users should upgrade to version 0.15.1 or later to protect against this vulnerability (Dashjr Disclosure).

Additional resources


SourceThis report was generated using AI

Related Bitcoin Core vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-54605HIGH7.5
  • Bitcoin CoreBitcoin Core
  • cpe:2.3:a:bitcoin:bitcoin_core
NoYesOct 28, 2025
CVE-2025-54604HIGH7.5
  • Bitcoin CoreBitcoin Core
  • cpe:2.3:a:bitcoin:bitcoin_core
NoYesOct 28, 2025
CVE-2024-52922MEDIUM6.5
  • Bitcoin CoreBitcoin Core
  • cpe:2.3:a:bitcoin:bitcoin_core
NoYesNov 18, 2024
CVE-2024-55563MEDIUM5.3
  • Bitcoin CoreBitcoin Core
  • cpe:2.3:a:bitcoin:bitcoin_core
NoNoDec 09, 2024
CVE-2024-52921MEDIUM5.3
  • Bitcoin CoreBitcoin Core
  • cpe:2.3:a:bitcoin:bitcoin_core
NoYesNov 18, 2024

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management