Bitcoin Optech newsletters

Bitcoin Optech Newsletter #433 covers critical DoS vulnerabilities in Core and Core Lightning, BIP editor refresh, and software updates.

16 min Listen to the original Episode page
Bitcoin CoreCore LightningLightning Development KitBIPsSecuritySoftware UpdatesStack ExchangeDeveloper Tools

Summary

The episode details severe denial-of-service vulnerabilities in Bitcoin Core and Core Lightning that allow peers to stall or crash nodes. It highlights a proposal to refresh the BIP editor team to address submission backlogs and reviews recent Q&A on Bitcoin Stack Exchange regarding RustMiniscript and data repair. The newsletter also catalogs numerous software releases, including security fixes for LDK, LND, and Bitcoin Core, while noting the deprecation of the encrypt wallet RPC due to key material risks.

Key takeaways

  1. 1
    chain scans that could miss confirmations or spends, leaving channels stuck opening or closing.

    Speaker 1 · 12:40

  2. 2
    Rust Bitcoin added Testnet 5 support in recent updates.

    Speaker 1 · 13:55

Episode sections

  1. 0:00 – 2:13

    DoS Vulnerability in Bitcoin Core

    A denial-of-service vulnerability was disclosed in Bitcoin Core versions 20.9.x, 30.x, and 30.1.x, allowing peers to stall nodes by exploiting orphan transaction handling. The fix is included in version 32.1, while older series are end-of-life.

  2. 2:13 – 4:40

    DoS Vulnerability in Core Lightning

    Core Lightning versions 0.12.0 through 26.0.6 contained a denial-of-service bug where duplicate channel IDs caused node crashes, risking channel funds. The issue was fixed in version 26.0.8.

  3. 4:40 – 5:40

    Refreshing BIP Editors

    Mark Erhard proposed refreshing the BIP editor team to address a backlog of submissions, suggesting either adding active editors or lowering standards. Several volunteers responded, and current editor Olaoluwa Osuntokun plans to step down.

  4. 5:40 – 7:28

    Bitcoin Stack Exchange Q&A

    The newsletter highlights questions on RustMiniscript compatibility, repairing corrupted undo data without a full reindex, and why Bitcoin opcodes do not push spending transaction data to the stack.

  5. 7:28 – 8:07

    Software Releases and Changes

    Updates were released for Bitcoin Core, Core Lightning, Eclair, LDK, LND, Libsecp256k1, HWI, Rust Bitcoin, BTCPay Server, and BDK, addressing security vulnerabilities and code improvements.

  6. 8:07 – 10:02

    Bitcoin Core Updates

    Bitcoin Core 36.3.87 deprecated the encrypt wallet RPC due to security risks regarding unencrypted key material. BIP 3201 added draft BIP 333 for custom message type IDs, and Core Lightning 24.11.7 fixed a bug misinterpreting gettxout failures.

  7. LDK 5.0.6 fixed a potential loss of forwarded funds due to asynchronous state saving errors. LDK 5.6.78 corrected fee targets for penalty transactions on revoked commitments, and LDK 11.0.6/11.0.7 fixed weight estimates for penalty transactions.

  8. 12:40 – 16:04

    LND and Other Software Updates

    LND 11.0.2/140.7 fixed historical chain scans that could miss confirmations, and LND 11.0.2/160.8 fixed a persistence bug causing unnecessary force closes. Rust Bitcoin added Testnet 5 support, and BTCPay Server updated Core Lightning integration.

Claims worth verifying

Bitcoin Core versions 20.9.x, 30.x, and 30.1.x are vulnerable to a DoS attack where an attacker sends an orphan with thousands of missing parents and repeats inv messages, stalling the node for over a dozen seconds per message.

Speaker 1 ·0:40

How to verify: Check the Bitcoin Core security advisory posted by Greg Sanders on the bitcoin-dev mailing list and the specific version numbers listed in the advisory. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Core Lightning versions 0.12.0 through 26.0.6 are vulnerable to a DoS attack where a malicious peer opens a channel using another channel's funding outpoint, creating duplicate channel IDs that cause the node to crash on reconnection or closure.

Speaker 1 ·2:28

How to verify: Check the Core Lightning security advisory posted by Nishant Bansell on the delving-bitcoin mailing list. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Mark Erhard proposed refreshing the BIP editor team to address a backlog of submissions, suggesting adding active editors or lowering standards to check only format.

Speaker 1 ·4:40

How to verify: Check the Bitcoin-dev mailing list for Mark Erhard's post and the subsequent discussion on editor recruitment. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Bitcoin Core 36.3.87 deprecates the encrypt wallet RPC because it cannot guarantee removal of unencrypted private key material from disk and may generate new seeds that older backups cannot recover.

Speaker 1 ·8:07

How to verify: Check the Bitcoin Core release notes for version 36.3.87 and the deprecation notice for encrypt wallet RPC. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Primary source

LDK 5.0.6 fixed a potential loss of forwarded funds due to asynchronous state saving errors.

Speaker 1 ·10:02

How to verify: Check the LDK release notes for version 5.0.6 and the specific bug fix description. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

LDK 5.6.78 corrected fee targets for penalty transactions on revoked commitments.

Speaker 1 ·11:21

How to verify: Check the LDK release notes for version 5.6.78 and the specific bug fix description. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

LND 11.0.2/140.7 fixed historical chain scans that could miss confirmations.

Speaker 1 ·12:40

How to verify: Check the LND release notes for version 11.0.2/140.7 and the specific bug fix description. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Primary source

Rust Bitcoin 7.0.0/7.1.6 added Testnet 5 BIP95 support, including genesis block and network message magic.

Speaker 1 ·14:15

How to verify: Check the Rust Bitcoin release notes for version 7.0.0/7.1.6 and the specific feature addition. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

BTCPay Server 7.0.8/140.6 added support for Core Lightning 24.11+ via CLNREST.

Speaker 1 ·14:35

How to verify: Check the BTCPay Server release notes for version 7.0.8/140.6 and the specific integration update. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Olaoluwa Osuntokun plans to step down as BIP editor at the end of the year.

Speaker 1 ·5:20

How to verify: Check the Bitcoin-dev mailing list for Olaoluwa Osuntokun's announcement or the discussion thread on editor recruitment. For recent events, verify 2026-08-27 through 2026-11-27. Use another period only when the speaker explicitly names it.

Do your own research

  • Verify the Bitcoin Core security advisory posted by Greg Sanders on the bitcoin-dev mailing list for specific vulnerable versions.
  • Check the Core Lightning security advisory posted by Nishant Bansell on the delving-bitcoin mailing list for the duplicate channel ID vulnerability.
  • Review the Bitcoin Core release notes for version 36.3.87 to understand the implications of the encrypt wallet RPC deprecation.
  • Examine the Bitcoin Stack Exchange for Pieter Witschel's answer on RustMiniscript limitations regarding symbolic names and malleable scripts.
  • Consult P202's answer on Bitcoin Stack Exchange regarding repairing corrupted undo data using a node with txindex.
  • Check the Bitcoin-dev mailing list for Mark Erhard's proposal and the subsequent discussion on BIP editor recruitment.
  • Verify the LDK release notes for version 5.0.6 and 5.6.78 to assess the impact of the forwarded funds and fee target fixes.
  • Review the LND release notes for version 11.0.2/140.7 and 11.0.2/160.8 to understand the fixes for chain scans and persistence bugs.
Full transcriptexpand

Voices are numbered in the order we told them apart; a name appears only when the episode itself identifies the speaker.

0:00Speaker 1: This week's newsletter describes a vulnerability affecting older versions of Bitcoin Core. Summarize is the disclosure of a denial of service vulnerability in core lightning and relay's discussion about refreshing the BioP editor team. Also included are our regular sections with selected questions and answers from the Bitcoin Stack Exchange, announcements of new releases and release candidates, and descriptions of notable changes. To popular Bitcoin Infrastructure Software, News, Disclosure of a Medium, Severity Vulnerability in Bitcoin Core, Greg Sanders posted to the Bitcoin, DevMailing, list a Bitcoin Core security advisory for a vulnerability that allowed a peer-to-temporarily stop a node from processing blocks and transactions. It affects all 20, 9, X releases 30, X before 30, 5 and 30. 1, X before 30, 1, 3, version 32, 1 already includes the fix, the 20 9. X series has reached end of life and will not receive a fix, so its users should upgrade to a maintained release. Bitcoin Core stores transactions, whose parents it has not yet seen, Scene, called orphans. Since 209.0, 20 nine. Zero, each time a peer announced the W. WTZ of a stored orphan, the node checked every parent of that orphan against its

1:19mempool and its filters of recently seen transactions. An inv message can contain up to fifty zero zero announcements, and duplicates were not skipped. An attacker could send an orphan with thousands of missing parents, followed by inv messages repeating its WTZ50 WTZ fifty zeros, ero zero times. According to the advisory, each such message stalled the node for over a dozen seconds, during which it processed no messages from other peers, including blocks. Bitcoin Core 358 now processes each announced transaction only once per INV message. Passage. The vulnerability was discovered in July by Project Loop, responsibly disclosed by Sand. Sanders, and independently reported by Stuxo in August. Because it was classified as easily discoverable, see Newsletter 420, 9, the advisory was published alongside 30, 5, and 30 1. 3. Disclosure of a due S. Vulnerability in CLN. Nishant Bansell posted to Delving Bitcoin the responsible disclosure of a denial of service due s. vulnerability in. core lightning

2:28affecting versions 0. 12 0 August 2020 2 through 26 06 7 August 2026, which allowed an attacker to repeatedly crash a victim's node. The bug gave an attacker no direct access to funds, but continuously crashing a node could put its channel funds at risk. Users are recommended to upgrade to the latest version immediately. The vulnerability was fixed in CLAN version 26.068 C Newsletter 4. The vulnerability was related to more than one V1 channel sharing the same channel ID. A malicious peer could open a channel by providing another channel's funding outpoint. Since channel ID is derived from that outpoint, a according to Bold 2, two channels would thus have matching ID. Silen runs a channeled subdemon for each channel, while Connect routes messages to the correct subdemon based on their channel ID. Since Silen assumes the uniqueness of channel ID, collisions led the node to crash. There were two ways a malicious peer could crash the node one during reconnection, detected using Smite, a snapshot fuzzing framework for Lightning

3:41Network implementations, and the other on channel. Closure found by developer Eugene Siegel. When a peer reconnects, the main demon, Lightninged, starts the channeled subdemons and hands them to Connect. On the first channel ID lookup everything would work fine. However, on the second request an assert proving that the connection was not already active would abort Connect, taking down the node. Since both channels were still present in the database after a restart, a new reconnection attempt would crash the node again. CLN keeps in memory previously closed channels in a hash table, keyed by channel ID. An attacker closing a channel with the same channel ID as one already closed would trigger the failure of an assertion checking that no duplicates were added to the map. And like the first variant, the node then crashes on every restart without further action from the attacker until it is upgraded. This specific attack vector affected only versions 25, 05, and higher, discussion on refreshing BRP editors, Mark Merch. Erhard posted to the Bitcoin dev mailing list to resurface his April proposal to refresh the BRP BIP editor. team. See newsletters. 290, 9 and 4, 118 for previous coverage of the editor set, citing a backlog of submissions

5:00awaiting editor review in the BIP repository. He described two options: adding active editors or lowering standards, so that editors check only the format of new submissions, and strongly preferred refreshing the team to three editors who all. contribute regularly. He added that volunteers wary of an open ended commitment could offer to serve a limited term, such as twelve to twenty four months. Following the post, several people volunteered, and current editor Oliulua Osentokan indicated he plans to step down at the end of the year. Discussion was ongoing at the time of writing. Selected Q and a from are Bitcoin. Stack Exchange. Bitcoin Stack Exchange is one of the first places OpTech contributors look for answers to their questions, or when we have a few spare moments to help curious or confused users. In this monthly feature, we highlight some of the top voted questions and answers posted since our last update. Why does a policy that is valid with RustManuscript RustMinuscript throw a compile error on? the CIPA site? Pieter Wewell explains that his minuscript policy compiler site accepts symbolic names only for keys, not hash primages, and does not allow malleable scripts.

6:16One branch of the ASCAR's policy could be satisfied by just revealing a primage after one 140, hundred and forty four 4 blocks, which is inherently malleable because it involves no signatures. How can I repair corrupted undoe data rev? Dat checks and mismatch without a full reindex. P20, 2 describes rebuilding damaged undo records on a node with T's. Index. A block's undo data is the list of out, puts its inputs spent, so each record can be reconstructed byte for byte and written back in place. Reindex chain state does not help because Bitcoin Core only writes undue data for a block that has no undue position yet. Why does no Bitcoin opcode push data about the spending transaction onto the stack? Learn Bitcoin answers that a soft fork redefining an OP and OP opcode can only make scripts fail, since leaving a value on, the stack would cause old and new nodes to disagree about validity. That is why the proposed OP checked in plate. for if I only verifies. Tabscript added OP success artcodes that may also write to the stack, see Newsletter 416, and the Covenant proposals OPTX, Hash, and OP template.

7:28Releases and release candidates, new releases and release candidates for popular Bitcoin infrastructure projects. Please consider upgrading to new releases or helping to test. release candidates. Both fix the DOS vulnerability described above. Notable code and documentation changes. Notable recent changes in Bitcoin Core, Core Lightning, Eclair, LDK, LD, LND, Libsect Lipsect 2, two, 150, hundred fifty, 6K1, six K 1500. one Hardware Wallet Interface HWI, Rust Bitcoin, BTC Pay Server, BDK, Bitcoin Improvement Proposals BIPS. Lightning Bolts, Lightning Blips, Bitcoin Inquisition, and Binonas. Bitcoin Core thirty six thousand three hundred eighty seven deprecates the encrypt wallet RPC, which encrypts an existing unencrypted wallet. The RPC now requires Bitcoin Core to be started with the deprecated. up equals encrypt wallet flag, and is scheduled for removal in a future major release. Encrypting an existing wall, it cannot guarantee removal of unencrypted private, key material from disk. It can also generate a new seed, so earlier backups may not be able to recover Cover funds sent to newly generated

8:47addresses. Users who want to encrypt their wallet should instead create an encrypted wallet by supplying the passphrase argument to create a wallet C Newsletter forty seven. Existing encrypted wallets remain supported. BIP two thousand three hundred one adds draft BIP three hundred thirty three, which allows peers using V two P two 2P P transport to choose their own one one-byte byte message type ID for outgoing messages, see Newsletter four hundred 426. two. BIP 320 for currently assigns one. Byte ID through a fixed table, requiring coordination to add new entries. The proposed set 320 for alias message enables each peer to announce its own aliases, after the other peer advertises support through BIP 434. Core Lightning 9007 fixes a bug where a failed Bitcoin core get could be misinterpreted as an output being spent or absent. This could occur when Bitcoin Core was unreachable or still starting up. During externally funded channel opening C Newsletter 50, 1. The fund channel cancel RPC could forget a channel whose funding transaction had already been broadcast. The B Cly Clyde plugin now

10:02retries two. temporary connection and start-up failures, and reports unsuccessful calls as errors. Only a successful response indicating no unspent output at the requested outpoint is considered evidence that an output is unavailable. LDK 500603 fixes a potential loss of forwarded funds when saving channel recovery status state asynchronously. synchronously. After an incoming channel peer force closes, an update can record an HDLC primage in memory, but return an error when attempting to change the closed channel's commitment state. LDK also broadcasts a claim transaction for the incoming HDLC. Previously, LDK began persisting this information to disk, but it did not track the write right as pending due to the error. A separate write right recording the channel closure could finish first. causing LDK to incorrectly consider the primage as safely saved and allow the outgoing channel to discard its copy. If the node crashed before the primage was saved, and if the claim transaction failed to confirm before expiry, it could lose the incoming payment after paying the outgoing HDLC. LDK now persists and tracks these updates until their rights complete. LDK five thousand six hundred. seventy eight fixes the fee target used for penalty transactions when a peer broadcasts a revoked

11:21commitment transaction. Previously, LDK would only select an urgent target if the latest commitments contained pending HDLC newsletter three hundred nineteen without separately checking whether the on on-chain chain commitment was revoked. Under sustained fee pressure, the peer penalty could remain unconfirmed despite fee bumps until the peer's time lock expired, enabling the peer to spend the revoked funds. LDK now uses its urgent on chain sweep target whenever it identifies an on chain counterparty commitment as revoked. LD 11006 107 Hundred seven fixes weight estimates for penalty transactions, spending HDLC out, outputs puts from revoked. counterparty commitments. Previously, L and D correctly built the penalty witness, but estimated its size as if it was spending an HDLC from its own commitment transaction. The penalty actually spent an output from the peer's commitment, whose HDLC script could be larger, causing the weight to be underestimated. When targeting the minimum rally fear rate, this could produce insufficient fee. fees and mempool rejection. LND now matches estimates to the scripts being spent, including the additional script bytes used by ANCO channels. LD 11002, 140, 7 fixes historical

12:40chain scans that could miss confirmations or spends, leaving channels stuck opening or closing. LD L and D shares scans between requests, watching the same transaction or output. Previously, if the first request began scanning too late, a later request specifying an earlier starting block height could reuse that scan without checking for earlier missing blocks. Cached starting heights could preserve this omission across restarts. L and D now scans missing ranges and records their starting heights alongside cached progress. This complements the cashy cashiki fix in newsletter for 430.1. 130 Channels that remain stuck after upgrading may require. Restarting Ln D once with the height, hint, cache queried, esable option, and then removing it after recovery. L and D 11002 160.8 fixes a persistence bug that could cause an unnecessary force Course close after a disconnection. This could occur when the local initiator node sent a fee update on a channel where it had not yet revoked a commitment, and received the peer's acknowledgement without saving the change to disk. If the connection then drops before LD receives the peer's next commitment signature, it may reconstruct the commitment with the old fee and reject the valid signature. The

13:55fix removes an early return in the database update that skipped saving the acknowledged local updates. Rust Bitcoin 70001 7160 adds testnet 5 BIP95 support, including the testnet version, V5 value, Genesis block, chain identifier, proof of work parameters, and network message magic. It also updates network parsing and address handling to recognize testnet 5. The Genesis parameters were covered in newsletter 4, four 130, hundred thirty 2. two. BTC Pay Server 7008, 140. 1406. Add support for connecting to core lightning 24. Eleven or later through its built-in C Lenrest service C Newsletter. 260, 2 using runes, credentials that restrict permitted. Commands. This allows a connection to create and monitor invoices without permission to send payments. Existing direct connections to core lightnings, RPC interface. remain supported. The dependency update also changes certificate handling. The allowance secure, cert them print, and certfile path connection string options are now ignored. Operators using external lightning nodes with self-signed certificates must configure trust in the environment running BTC Pay Server.

15:16One fix incorrect lightning payout states. The first updates the LND, Hub adapter to preserve payment errors returned in HTTP2, 100 responses. Previously, these could be discarded and a failed payout reported as paid. Known errors proving that the current calls sent nothing are now reported as failures. Ambiguous outcomes remain unknown. The second mode marks a payout complete when a payment lookup confirms success after the send operation returned an error, preserving the payment proof. Want more, for more discussion about the topics mentioned in this newsletter, join us for the weekly Bitcoin Optech recap on Riverside. FM at seventeen, thirty UTC you to see on december one. The discussion is also recorded, and will be available from our podcasts page.

This page was produced automatically: the audio was transcribed with parakeet-tdt-0.6b-v3+sortformer-v2.1 and interpreted by Qwen3.6-35B-A3B. Transcription and interpretation can contain errors; always confirm against the original episode. Nothing here is investment advice.
All insights