<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://security.lightning.engineering/feed.xml" rel="self" type="application/atom+xml" /><link href="https://security.lightning.engineering/" rel="alternate" type="text/html" /><updated>2026-09-21T20:17:40+00:00</updated><id>https://security.lightning.engineering/feed.xml</id><title type="html">Lightning Labs Security Advisories</title><subtitle>These are the security advisories for Lightning Labs products. Please report any security issues to security@lightning.engineering</subtitle><entry><title type="html">btcd Inbound Transport Handshake Resource Exhaustion</title><link href="https://security.lightning.engineering/2026/09/21/btcd-inbound-handshake-exhaustion.html" rel="alternate" type="text/html" title="btcd Inbound Transport Handshake Resource Exhaustion" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/btcd-inbound-handshake-exhaustion</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/btcd-inbound-handshake-exhaustion.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>btcd accepted an inbound TCP socket and ran the transport handshake before the
connection counted against the server’s <code class="language-plaintext highlighter-rouge">maxpeers</code> limit. A remote host could
therefore hold many inbound sockets in the pre-peer state, occupying accepted
sockets and handshake goroutines beyond the configured limit and refusing
service to honest inbound peers.</p>

<p>With <code class="language-plaintext highlighter-rouge">--v2transport</code> enabled (available from v0.25.0), the responder also performed asymmetric
cryptography (key generation, ElligatorSwift ECDH, cipher setup) on each
candidate v2 handshake before admission, adding CPU amplification. The socket
accounting gap applied regardless of that flag.</p>

<p>There is no fund-loss path. Service recovers when the attacker disconnects.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>Transient, operator-recoverable service disruption.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any host that can reach the P2P listener; no peer relationship required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>The attacker controls the socket lifecycle and reliably enters the pre-peer path.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Sustained per-victim connections; nothing propagates.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High. A reachable non-viral DoS is T3 regardless of how trivially it
triggers.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in btcd
<a href="https://github.com/btcsuite/btcd/releases/tag/v0.26.2">v0.26.2</a> via
<a href="https://github.com/btcsuite/btcd/pull/2576">btcd#2576</a>, which caps accepted
inbound sockets against the <code class="language-plaintext highlighter-rouge">maxpeers</code> budget at the listener, bounds pending
handshakes per source before any transport work is performed, and rate-limits
v2 responder key setup. Users should update to v0.26.2 or later.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Identified internally by the Lightning Labs security team on 2026-07-13.</li>
  <li>Fix merged 2026-07-22; released in btcd v0.26.2 on 2026-07-24.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">btcd Out-of-Memory via 32 MB Message Payloads</title><link href="https://security.lightning.engineering/2026/09/21/btcd-message-payload-oom.html" rel="alternate" type="text/html" title="btcd Out-of-Memory via 32 MB Message Payloads" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/btcd-message-payload-oom</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/btcd-message-payload-oom.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>btcd allowed individual P2P messages to carry payloads of up to roughly 32 MB,
where Bitcoin Core caps messages at 4 MB. Two message types, <code class="language-plaintext highlighter-rouge">alert</code> and
<code class="language-plaintext highlighter-rouge">cfcheckpt</code>, declared the full limit. The peer layer read and allocated a
receive buffer for the first message on a connection before checking that it
was a <code class="language-plaintext highlighter-rouge">version</code>, so any host that could open a TCP connection to the P2P
listener could send oversized messages of these types; no handshake was
required. With enough concurrent connections the node exhausted memory and was
killed by the operating system.</p>

<p>The reporter reproduced this against a 2 GB node with 125 simulated peers, each
sending 32 MB <code class="language-plaintext highlighter-rouge">alert</code> messages, until the process was OOM-killed.</p>

<p>There is no fund-loss path. The node restarts cleanly. The attack can be
repeated as long as the attacker can open connections.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>OOM crash, operator-recoverable by restart. No fund loss and no persistent state damage.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any host that can open a TCP connection to the P2P listener; no handshake is required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Reliable against a default configuration; the attacker needs only bandwidth and connections.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim. Each target needs its own sustained connections; nothing propagates.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in two parts, both in btcd
<a href="https://github.com/btcsuite/btcd/releases/tag/v0.25.0">v0.25.0</a>:</p>

<ul>
  <li>The <code class="language-plaintext highlighter-rouge">alert</code> message was removed entirely
(<a href="https://github.com/btcsuite/btcd/pull/2396">btcd#2396</a>). Bitcoin Core
retired it in 2016 and it serves no purpose on the modern network.</li>
  <li><code class="language-plaintext highlighter-rouge">cfcheckpt</code> now declares a message-specific maximum payload of about 3.2 MB,
enough for the 100,000 filter headers it will decode, instead of the global
32 MB limit (<a href="https://github.com/btcsuite/btcd/pull/2398">btcd#2398</a>).</li>
</ul>

<p>A third message, <code class="language-plaintext highlighter-rouge">reject</code>, kept the 32 MB limit until v0.26.0 and is covered by
a separate advisory published alongside this one. Operators should prefer
v0.26.0 or later.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported by Erick Cestari on 2025-07-03, following differential fuzzing of
Bitcoin P2P message parsing between btcd and rust-bitcoin.</li>
  <li>Fixes merged 2025-07-11 and 2025-07-16; released in btcd v0.25.0 on
2025-11-04.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">btcd Pre-Handshake Transaction Parser Panic</title><link href="https://security.lightning.engineering/2026/09/21/btcd-pre-handshake-parser-panic.html" rel="alternate" type="text/html" title="btcd Pre-Handshake Transaction Parser Panic" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/btcd-pre-handshake-parser-panic</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/btcd-pre-handshake-parser-panic.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>An unauthenticated remote host could crash btcd with a single crafted packet
sent as the first message on a new connection, before any version handshake.</p>

<p>The peer layer fully decoded an incoming message before checking that the
first message was a <code class="language-plaintext highlighter-rouge">version</code>. A packet with the <code class="language-plaintext highlighter-rouge">tx</code> command and a valid
network magic and checksum therefore reached the transaction decoder. In
witness parsing, <code class="language-plaintext highlighter-rouge">readScriptBuf</code> sliced a shared buffer using an
attacker-supplied count without checking that the count fit the remaining
buffer capacity, causing an out-of-range panic that terminated the process.</p>

<p>Any node with a reachable P2P listener was affected, and an outbound connection
to an attacker-controlled peer was sufficient as well. The defect was introduced
with the shared decode buffer in v0.24.0; earlier releases are not affected.</p>

<p>There is no fund-loss path. The node restarts cleanly, but the crash can be
repeated at will.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>Process crash, operator-recoverable by restart. No state corruption.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. No handshake required; any host that can open a TCP connection.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Deterministic. One crafted packet.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim. The panic fires during decode, before the transaction could be relayed, so nothing propagates.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in btcd
<a href="https://github.com/btcsuite/btcd/releases/tag/v0.26.0">v0.26.0</a> by commit
<a href="https://github.com/btcsuite/btcd/commit/3bf00861fca0684e59ae667a3ae697d34051264e"><code class="language-plaintext highlighter-rouge">3bf00861f</code></a>
(“wire: bound witness read to remaining slab”), which checks the requested
count against the remaining buffer before slicing, together with
<a href="https://github.com/btcsuite/btcd/commit/45135e677d13e18573116e3de3fa26d250080b33"><code class="language-plaintext highlighter-rouge">45135e677</code></a>
(“peer: add panic recovery to message handling goroutines”). Both were merged
as part of <a href="https://github.com/btcsuite/btcd/pull/2479">btcd#2479</a>, whose title
refers to unrelated address-validation work; this advisory is the description
of the fix. Users should update to v0.26.0 or later.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported by Arthur Gervais on 2026-02-27.</li>
  <li>Fix merged 2026-03-10; released in btcd v0.26.0 on 2026-06-18.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">btcd Out-of-Memory via Oversized reject Messages</title><link href="https://security.lightning.engineering/2026/09/21/btcd-reject-message-oom.html" rel="alternate" type="text/html" title="btcd Out-of-Memory via Oversized reject Messages" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/btcd-reject-message-oom</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/btcd-reject-message-oom.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>After the <code class="language-plaintext highlighter-rouge">alert</code> message was removed and the <code class="language-plaintext highlighter-rouge">cfcheckpt</code> limit was reduced in
v0.25.0, the <code class="language-plaintext highlighter-rouge">reject</code> message still declared a maximum payload equal to the
overall message limit of 32 MB, so a single <code class="language-plaintext highlighter-rouge">reject</code> message could make the
node allocate tens of megabytes before parsing.</p>

<p>The message is parsed before the version handshake completes, so an
unauthenticated host could send it as its first packet. With enough
connections a node exhausted memory and was OOM-killed. The reporter
reproduced this against a 2 GB node using 125 simulated peers.</p>

<p>Bitcoin Core deprecated <code class="language-plaintext highlighter-rouge">reject</code> in v0.18.0 (2019) and removed it in v0.20.0
(2020); the message has no role on the modern network.</p>

<p>There is no fund-loss path. The node restarts cleanly.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>OOM crash, operator-recoverable by restart.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Reachable before the handshake, so any host that can open a TCP connection to the listener.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Reliable against a default configuration with bandwidth and connections.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim sustained connections; nothing propagates.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in btcd
<a href="https://github.com/btcsuite/btcd/releases/tag/v0.26.0">v0.26.0</a> via
<a href="https://github.com/btcsuite/btcd/pull/2479">btcd#2479</a>, which first cut the
maximum message payload to 4 MiB, and
<a href="https://github.com/btcsuite/btcd/pull/2504">btcd#2504</a>, which introduced a
separate 4 MB limit on network messages (<code class="language-plaintext highlighter-rouge">MaxProtocolMessageLength</code>, matching
Bitcoin Core’s <code class="language-plaintext highlighter-rouge">MAX_PROTOCOL_MESSAGE_LENGTH</code>) enforced on every read path, with
<a href="https://github.com/btcsuite/btcd/pull/2518">btcd#2518</a> pointing the <code class="language-plaintext highlighter-rouge">reject</code>
decoder at it. On the default v1 transport an oversized <code class="language-plaintext highlighter-rouge">reject</code> is rejected at
the header before any payload is allocated; on the opt-in <code class="language-plaintext highlighter-rouge">--v2transport</code> the
check runs after the transport layer has decrypted the packet. Users should
update to v0.26.0 or later.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported by Erick Cestari as a follow-up to the earlier <code class="language-plaintext highlighter-rouge">alert</code>/<code class="language-plaintext highlighter-rouge">cfcheckpt</code>
report.</li>
  <li>Fixes merged 2026-03-10 and 2026-04-08; released in btcd v0.26.0 on
2026-06-18.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND Out-of-Memory via Brontide Write Allocations</title><link href="https://security.lightning.engineering/2026/09/21/lnd-brontide-write-allocation-oom.html" rel="alternate" type="text/html" title="LND Out-of-Memory via Brontide Write Allocations" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/lnd-brontide-write-allocation-oom</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/lnd-brontide-write-allocation-oom.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>lnd’s encrypted transport layer (Brontide) allocated fresh buffers on every
message written. A peer that drove a high volume of message traffic could force
enough allocation to exhaust the node’s memory and cause an OOM kill.</p>

<p>There is no fund-loss path. The node restarts cleanly when the attacker
disconnects.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>OOM crash, operator-recoverable.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any connected peer; no channel required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Reliable with sustained traffic against a default configuration.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim sustained connection; nothing propagates.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in lnd
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.20.0-beta">v0.20.0-beta</a>
via <a href="https://github.com/lightningnetwork/lnd/pull/10183">lnd#10183</a>, which
eliminates the per-write allocations. Users should update to v0.20.0-beta or
later.</p>

<p>The fix was not backported to the v0.19 line, which reached end of life on
2026-06-05; operators on v0.19 or earlier should upgrade to a maintained
release.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported by Matt Morehouse and Erick Cestari.</li>
  <li>Fix merged 2025-09-24; released in lnd v0.20.0-beta on 2025-11-20.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND Panic on Malformed DNS Seed Response</title><link href="https://security.lightning.engineering/2026/09/21/lnd-dns-bootstrap-type-assertion-panic.html" rel="alternate" type="text/html" title="LND Panic on Malformed DNS Seed Response" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/lnd-dns-bootstrap-type-assertion-panic</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/lnd-dns-bootstrap-type-assertion-panic.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>lnd’s DNS peer bootstrapper, enabled by default on mainnet, falls back to a
TCP SRV lookup when the primary UDP query fails. The fallback accepted any
response with a success code and then asserted that every answer record was an
SRV record using Go’s single-value type assertion. A response containing any
other record type, such as an A or CNAME record, caused an unrecovered panic in
the bootstrap goroutine and terminated the daemon.</p>

<p>DNS is unauthenticated, so an on-path attacker, or a malicious or compromised
DNS seed operator, could drop the UDP query to force the fallback and then
return a crafted TCP response. The crash was repeatable whenever the node
bootstrapped peers, at startup or whenever active peers fell below target.</p>

<p>There is no fund-loss path. The node restarts cleanly, although a persistently
hostile seed would trigger the crash again at the next bootstrap. Operators who
cannot upgrade can set <code class="language-plaintext highlighter-rouge">nobootstrap=true</code> to disable DNS peer bootstrapping.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>Process crash, operator-recoverable by restart.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. DNS is unauthenticated; no relationship with the victim is required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>Med</td>
      <td>Requires an on-path position or control of a seed the victim queries, and the fallback path must be reached.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Med</td>
      <td>A compromised seed serves the same crafted answer to every node that falls back to it, a replayable template; an on-path attacker reaches only the nodes on that path. Nothing propagates node to node.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed via <a href="https://github.com/lightningnetwork/lnd/pull/10914">lnd#10914</a> and
released on both maintained lines:
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.21.1-beta">v0.21.1-beta</a>
(2026-06-30) and
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.20.2-beta">v0.20.2-beta</a>
(2026-07-08). Users should update to the patched release on their line.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Identified internally by the Lightning Labs security team.</li>
  <li>Fix merged 2026-06-24; released in lnd v0.21.1-beta on 2026-06-30 and
v0.20.2-beta on 2026-07-08.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND Gossip Stall via Malformed channel_announcement Flood</title><link href="https://security.lightning.engineering/2026/09/21/lnd-gossip-validation-barrier-stall.html" rel="alternate" type="text/html" title="LND Gossip Stall via Malformed channel_announcement Flood" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/lnd-gossip-validation-barrier-stall</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/lnd-gossip-validation-barrier-stall.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>A peer could stall a victim node’s entire gossip pipeline by sending more than
1000 malformed <code class="language-plaintext highlighter-rouge">channel_announcement</code> messages. Each announcement was crafted
so that <code class="language-plaintext highlighter-rouge">node_id_1</code> equalled <code class="language-plaintext highlighter-rouge">node_id_2</code> and other fields were invalid, causing
two separate failures during validation: one when the validation barrier
removed a job under a duplicate key, and one when the announcement itself was
rejected. Only one error could be delivered, so the second blocked, and the
gossip processing capacity filled with stuck jobs.</p>

<p>Once stalled, the victim could neither receive nor propagate gossip. Its
channels effectively became private to the rest of the network, its view of the
graph stopped updating, and route discovery degraded. The node itself kept
running.</p>

<p>There is no direct fund-loss path. Restarting the node clears the stall, but a
graceful shutdown may hang on the stuck gossiper and the process may need to be
killed; the attack can be repeated. The defect was introduced with the
validation-barrier rework in 0.19.0-beta; earlier releases are not affected.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>Degraded operation that a restart clears. No fund loss; payments on existing channels continue to work.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any connected peer can send gossip.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Deterministic once the message count exceeds the barrier’s capacity.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim. The malformed announcements are rejected and never relayed.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality
is not High.</p>

<h2 id="patches">Patches</h2>

<p>Fixed in lnd
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.20.1-beta">v0.20.1-beta</a>
via <a href="https://github.com/lightningnetwork/lnd/pull/10540">lnd#10540</a> and its
backport <a href="https://github.com/lightningnetwork/lnd/pull/10554">lnd#10554</a>. The
fix is also in v0.21.0-beta and later. Users should update to v0.20.1-beta or
later on their release line.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported by Matt Morehouse and Nishant Bansal.</li>
  <li>Fix merged 2026-02-04; released in lnd v0.20.1-beta on 2026-02-12.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND Invoice Marked Settled After HTLC Cancelled by Interceptor</title><link href="https://security.lightning.engineering/2026/09/21/lnd-tapd-cancelled-htlc-marked-settled.html" rel="alternate" type="text/html" title="LND Invoice Marked Settled After HTLC Cancelled by Interceptor" /><published>2026-09-21T09:00:00+00:00</published><updated>2026-09-21T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/09/21/lnd-tapd-cancelled-htlc-marked-settled</id><content type="html" xml:base="https://security.lightning.engineering/2026/09/21/lnd-tapd-cancelled-htlc-marked-settled.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>A Lightning Terminal node running tapd with the invoice HTLC interceptor
enabled, even with no asset channels open, could record an invoice as settled
while the HTLC that paid it had been cancelled back to the sender on the wire.
The node’s own accounting then disagreed with what actually happened: the
invoice showed as paid, but no funds moved.</p>

<p>Two defects combined:</p>

<ul>
  <li>tapd’s invoice acceptor treated any HTLC carrying custom wire records as an
asset HTLC. Senders setting the experimental endorsement TLV, which some
implementations did by default, triggered this on ordinary BTC payments. The
acceptor then applied its strict-forwarding rule and instructed lnd to cancel
the HTLC set.</li>
  <li>lnd’s handling of that cancellation cancelled the HTLC on the wire but still
updated the invoice in the database as settled.</li>
</ul>

<p>The lnd defect is not specific to tapd. Any client of the <code class="language-plaintext highlighter-rouge">HtlcModifier</code> RPC,
introduced in lnd 0.18.4-beta, that cancelled an HTLC set would have produced
the same mismatch between the database and the wire; tapd’s acceptor was the
trigger observed in the field. Operators running any other client of the
<code class="language-plaintext highlighter-rouge">HtlcModifier</code> RPC against lnd 0.18.4 or 0.18.5 are in scope.</p>

<p>An operator, or software reading the invoice state, could be led to release
goods or credit against a payment that never completed. The sender’s funds were
not at risk; the HTLC was correctly returned.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a>:</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Med</td>
      <td>Reporting-integrity defect, scored Med rather than the default Low because the false settled state is itself what causes the operator to release value against a payment that never completed. Per-victim; each invoice is a separate loss.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any payment sender on the network; no channel or peer relationship with the victim is required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>Med</td>
      <td>The victim had to run litd with tapd’s acceptor enabled, a common default at the time, and the sender’s implementation had to set the triggering TLV.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim per-invoice.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T1.</strong> Rule 2 (Impact = Med, base T1); no promotion (Exploitability is
Med, and promotion needs all three of Attack Vector, Exploitability and
Virality at High); no demotion (Exploitability is not Low and Attack Vector is
not Low).</p>

<h2 id="patches">Patches</h2>

<p>tapd side, released in
<a href="https://github.com/lightninglabs/taproot-assets/releases/tag/v0.5.1">v0.5.1</a>:
<a href="https://github.com/lightninglabs/taproot-assets/pull/1322">tapd#1322</a>,
<a href="https://github.com/lightninglabs/taproot-assets/pull/1330">tapd#1330</a>,
<a href="https://github.com/lightninglabs/taproot-assets/pull/1334">tapd#1334</a>, which
correctly identify asset HTLCs rather than treating any custom record as one.</p>

<p>lnd side, released in
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.19.0-beta">v0.19.0-beta</a>:
<a href="https://github.com/lightningnetwork/lnd/pull/9454">lnd#9454</a>, which fails the
HTLC set consistently when the interceptor cancels, so the database state
matches the wire.</p>

<p>Both fixes are needed for full protection. For Lightning Terminal, which
bundles both daemons, the mapping is:</p>

<table>
  <thead>
    <tr>
      <th>Lightning Terminal</th>
      <th>tapd</th>
      <th>lnd</th>
      <th>state</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>v0.14.0-alpha</td>
      <td>v0.5.0</td>
      <td>v0.18.4-beta</td>
      <td>both defects present</td>
    </tr>
    <tr>
      <td>v0.14.1-alpha</td>
      <td>v0.5.1</td>
      <td>v0.18.5-beta</td>
      <td>trigger fixed; lnd defect present</td>
    </tr>
    <tr>
      <td>v0.15.0-alpha</td>
      <td>v0.6.0</td>
      <td>v0.19.1-beta</td>
      <td>both fixed</td>
    </tr>
  </tbody>
</table>

<p>The <code class="language-plaintext highlighter-rouge">fix_date</code> on this advisory is the tapd release of 2025-02-12, which closed
the observed trigger for every Lightning Terminal user; the underlying lnd
defect remained reachable by other interceptor clients until lnd 0.19.0-beta on
2025-05-22. Operators unable to update could mitigate by running litd with
<code class="language-plaintext highlighter-rouge">--taproot-assets-mode=disable</code> when no asset channels are in use.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Identified 2025-01-27 from a field report of an invoice showing settled after
the HTLC was cancelled.</li>
  <li>tapd fix released in v0.5.1 on 2025-02-12; lnd fix released in v0.19.0-beta
on 2025-05-22.</li>
  <li>Public disclosure: 2026-09-21.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND ChannelReestablish Message Queue Out-of-Memory</title><link href="https://security.lightning.engineering/2026/08/11/lnd-channel-reestablish-oom.html" rel="alternate" type="text/html" title="LND ChannelReestablish Message Queue Out-of-Memory" /><published>2026-08-11T09:00:00+00:00</published><updated>2026-08-11T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/08/11/lnd-channel-reestablish-oom</id><content type="html" xml:base="https://security.lightning.engineering/2026/08/11/lnd-channel-reestablish-oom.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>A peer with pending channels open against a victim lnd node could exhaust the
node’s heap memory by spamming <code class="language-plaintext highlighter-rouge">channel_reestablish</code> messages. Each
connection’s <code class="language-plaintext highlighter-rouge">chanMsgStream</code> holds up to 1,000 queued messages; pending
channels do not drain that stream until the link becomes active. A single
attacker connection could therefore accumulate approximately 20 MB of heap.
Scaled across the maximum permitted number of pending channels, an attacker
could force the victim to allocate approximately 20 GB of heap memory,
OOM-killing the process.</p>

<p>There is no fund-loss path. The node restarts cleanly, but the attack can be
resumed as long as the pending channel relationships remain.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a> (4-dimension rubric):</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>OOM crash. The node restarts cleanly; no fund-loss path and no sustained liveness invalidation.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any peer can initiate the channel openings needed to reach the affected queue; no funded channel or prior trust relationship is required.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Saturating a single connection’s queue is trivial; scaling to the pending-channel limit is feasible for a motivated attacker.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim. The attacker must have pending channels in place for each target; the attack does not propagate automatically.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality is
not High.</p>

<h2 id="patches">Patches</h2>

<p>The issue was fixed in lnd
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.19.0-beta">v0.19.0-beta</a>
by capping the <code class="language-plaintext highlighter-rouge">chanMsgStream</code> queue size and reducing the global
pending-channel limit from 1,000 to 50. Users should update to
v0.19.0-beta or later to be protected.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Identified internally by the Lightning Labs security team.</li>
  <li>Fix merged and released in lnd v0.19.0-beta.</li>
  <li>Public disclosure: 2026-08-11.</li>
</ul>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry><entry><title type="html">LND Gossip Query Denial of Service</title><link href="https://security.lightning.engineering/2026/08/11/lnd-gossip-queries-dos.html" rel="alternate" type="text/html" title="LND Gossip Query Denial of Service" /><published>2026-08-11T09:00:00+00:00</published><updated>2026-08-11T09:00:00+00:00</updated><id>https://security.lightning.engineering/2026/08/11/lnd-gossip-queries-dos</id><content type="html" xml:base="https://security.lightning.engineering/2026/08/11/lnd-gossip-queries-dos.html"><![CDATA[<h2 id="impact">Impact</h2>

<p>A peer could render a victim lnd node unresponsive by sending a large volume of
gossip query messages. Without per-peer connection limits or bytes-based rate
limiting on gossip query processing, a sustained query stream from a single
peer could exhaust node resources and cause a denial of service.</p>

<p>There is no fund-loss path. The node restarts cleanly, but the attack can be
repeated.</p>

<h2 id="severity">Severity</h2>

<p>Scored against the <a href="/severity/">Lightning Labs severity
taxonomy</a> (4-dimension rubric):</p>

<table>
  <thead>
    <tr>
      <th>Dimension</th>
      <th>Score</th>
      <th>Reasoning</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Impact</td>
      <td>Low</td>
      <td>Transient denial of service. The node restarts cleanly; no fund-loss path and no sustained liveness invalidation.</td>
    </tr>
    <tr>
      <td>Attack Vector</td>
      <td>High</td>
      <td>Network. Any peer can send gossip query messages with no prior channel relationship.</td>
    </tr>
    <tr>
      <td>Exploitability</td>
      <td>High</td>
      <td>Sending gossip query messages requires no special capability; flooding is straightforward on a default configuration.</td>
    </tr>
    <tr>
      <td>Virality</td>
      <td>Low</td>
      <td>Per-victim. The attacker must establish a direct connection to each target; the attack does not self-propagate.</td>
    </tr>
  </tbody>
</table>

<p><strong>Result: T3.</strong> Rule 3 (Impact = Low, base T3); no promotion because Virality is
not High.</p>

<h2 id="patches">Patches</h2>

<p>The issue was fixed in lnd
<a href="https://github.com/lightningnetwork/lnd/releases/tag/v0.19.0-beta">v0.19.0-beta</a>
by the combination of two changes: the global inbound non-channel peer
connection limit (also cited on the <a href="/2026/08/11/lnd-p2p-connection-flooding.html">P2P connection
flooding</a> advisory),
and <a href="https://github.com/lightningnetwork/lnd/pull/9607">lnd #9607</a>
(“discovery: unify rate.Limiter across all gossip peers”), which replaces
the previous message-count rate limit with a byte-rate limit on outbound
gossip traffic and exposes it as two new configuration flags
(<code class="language-plaintext highlighter-rouge">--gossip.msg-rate-bytes</code> and <code class="language-plaintext highlighter-rouge">--gossip.msg-burst-bytes</code>). Together these
bound both how many peers can query in parallel and how much serialized
gossip data any one peer can extract per second. Users should update to
v0.19.0-beta or later to be protected.</p>

<h2 id="disclosure-timeline">Disclosure timeline</h2>

<ul>
  <li>Reported to Lightning Labs by Matt Morehouse on 2023-09-15.</li>
  <li>Fix merged and released in lnd v0.19.0-beta.</li>
  <li>Public disclosure: 2026-08-11.</li>
</ul>

<h2 id="credit">Credit</h2>

<p>Reported by Matt Morehouse.</p>]]></content><author><name></name></author><summary type="html"><![CDATA[Impact]]></summary></entry></feed>