CVE-2022-44797
NixOS vulnerability analysis and mitigation

Overview

btcd before 0.23.2, as used in Lightning Labs lnd before 0.15.2-beta and other Bitcoin-related products, mishandles witness size checking. The vulnerability was discovered and disclosed in October 2022, affecting the Bitcoin implementation written in Go (golang) (AttackerKB).

Technical details

The vulnerability stems from an erroneous witness size check in the wire parsing functionality. The issue arose because the old checks for the maximum witness size, circa segwit v0, were placed in both the wire package and the tx engine. This check should only have been in the engine since it's properly gated by other related script validation flags (GitHub PR). The fix involved removing the redundant check from the wire package and limiting witnesses only based on the maximum block size in bytes (~4MB).

Impact

The vulnerability caused nodes to be unable to parse certain blocks from the wire, even though these blocks would be properly accepted if fed in via other mechanisms. This led to chain synchronization failures and nodes entering a degraded state where they could not properly process blocks (LND Issue).

Mitigation and workarounds

The vulnerability was patched in btcd version 0.23.2 and Lightning Labs lnd version 0.15.2-beta. Users were advised to upgrade to these versions or later to resolve the issue. The fix involved removing the erroneous witness size check from the wire parsing functionality (GitHub Release, LND 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-2025-14330CRITICAL9.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox:*:*:*:*:esr:*:*:*
NoYesDec 09, 2025
CVE-2025-14329HIGH8.8
  • NixOSNixOS
  • cpe:2.3:a:mozilla:firefox_esr
NoYesDec 09, 2025
CVE-2025-14333HIGH8.1
  • NixOSNixOS
  • firefox-esr
NoYesDec 09, 2025
CVE-2025-14332HIGH7.3
  • NixOSNixOS
  • thunderbird
NoYesDec 09, 2025
CVE-2025-14331MEDIUM6.5
  • NixOSNixOS
  • firefox
NoYesDec 09, 2025

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