CVE-2024-52917
Bitcoin Core vulnerability analysis and mitigation

Overview

Bitcoin Core before version 22.0 contains a vulnerability in its miniupnp dependency that allows for an infinite loop condition. The vulnerability (CVE-2024-52917) was discovered where the software allocates memory based on random data received over the network, specifically through large M-SEARCH replies from a fake UPnP device. This issue affects users running Bitcoin Core with the -miniupnp option enabled (Bitcoin Core).

Technical details

The vulnerability exists in the UPnP library (miniupnp) used by Bitcoin Core. When processing device discovery, the software would continue waiting as long as it receives random data from a network device. Additionally, it would allocate memory for each new device information received. The vulnerability is only exploitable when Bitcoin Core is run with the -miniupnp option, as UPnP functionality is disabled by default. The issue has been assigned a CVSS 3.1 Base Score of 6.5 (MEDIUM) with vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

An attacker on the local network could exploit this vulnerability by impersonating a UPnP device and continuously sending bloated M-SEARCH replies to a Bitcoin Core node. This would cause the node to keep allocating memory until it eventually runs out of memory (OOM), resulting in a denial of service condition (Bitcoin Core).

Mitigation and workarounds

The vulnerability was fixed in Bitcoin Core version 22.0, released on September 13, 2021. Users should upgrade to this version or later to address the issue. As a workaround, users can also disable UPnP functionality (which is disabled by default) to prevent exploitation (Bitcoin Core).

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