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).

Exploitability

The issue manifested when nodes attempted to process blocks containing witness data that exceeded the erroneously enforced size limit. This resulted in errors such as 'script witness item is larger than the max allowed size' with counts exceeding the maximum allowed size of 11,000 bytes (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-2026-13097CRITICAL9.1
  • NixOS logoNixOS
  • python3-samba-test
NoYesAug 20, 2026
CVE-2026-11861HIGH8.1
  • NixOS logoNixOS
  • samba-common
NoYesAug 20, 2026
CVE-2026-73198HIGH7.5
  • NixOS logoNixOS
  • ctdb-ceph-mutex
NoYesAug 20, 2026
CVE-2026-73197HIGH7.5
  • NixOS logoNixOS
  • samba-test-libs-debuginfo
NoYesAug 20, 2026
CVE-2026-73196MEDIUM6.5
  • NixOS logoNixOS
  • samba-ldb-ldap-modules-debuginfo
NoYesAug 20, 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