CVE-2024-38365
NixOS vulnerability analysis and mitigation

Overview

A critical vulnerability in btcd (CVE-2024-38365), discovered in versions prior to 0.24.2, stems from an incorrect implementation of Bitcoin Core's FindAndDelete functionality. The vulnerability, introduced in 2014, affects the consensus rules for legacy signature verification in the Bitcoin protocol. This flaw has been assigned a CVSS score of 7.4 and was discovered by researchers Niklas Gögge and Antoine Poinsot (SecurityOnline, GitHub Advisory).

Technical details

The vulnerability lies in btcd's implementation of the removeOpcodeByData function, which handles signature verification differently from Bitcoin Core's FindAndDelete function. While Bitcoin Core's implementation only removes exact matches of signatures from the script, btcd's removeOpcodeByData removes any data push containing the signature, even with additional padding data. This discrepancy allows for the creation of transactions that appear valid to Bitcoin Core nodes but are rejected by vulnerable btcd nodes (SecurityOnline).

Impact

The vulnerability could allow attackers to create a hard fork of the Bitcoin blockchain at minimal cost. Malicious actors could force vulnerable btcd nodes into a forked chain, leading to network instability and transaction processing issues. The bug can be exploited remotely by any Bitcoin user without requiring hash power (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in btcd version 0.24.2. All users running affected versions are strongly encouraged to update to the latest version to prevent potential exploitation (ASEC, GitHub Release).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-16412CRITICAL9.8
  • NixOS logoNixOS
  • rhel10::thunderbird-flatpak
NoYesJul 21, 2026
CVE-2026-16411CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16410CRITICAL9.8
  • NixOS logoNixOS
  • mozjs38
NoYesJul 21, 2026
CVE-2026-16408CRITICAL9.8
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026
CVE-2026-16409HIGH7.5
  • NixOS logoNixOS
  • cpe:2.3:a:mozilla:firefox
NoYesJul 21, 2026

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