Every captured commit receives deterministic security triage and a separate communication-quality score. Security candidates and broader second-pass signals receive full-patch Ollama analysis.
Message quality measures whether a commit identifies its scope, purpose, rationale, testing, and supporting references. It does not change the security-severity score.
This commit simply adds a new person's PGP public-key fingerprint to the list of trusted release signers in two documentation files. It does not change any code, fix any bug, or alter any security behavior of the software itself.
This is a tiny internal fix to make a bookkeeping migration produce stable event ordering. It changes the timestamp used when creating historical 'deposit' records during a one-time database migration, so the records sort consistently with…
This commit is a documentation-only cleanup of the JSON-RPC command help files. It corrects which numeric error codes are listed for each command so the published schemas match what the software actually returns. No program logic, validati…
Documentation-only change with no executable code modificationsCorrects RPC schema error-code metadata to match actual handler behaviorNo change to input parsing, authorization, cryptography, or network behavior
This commit fixes a bug where a setting that controls whether unexpected transaction signatures are allowed was not initialized when the channel daemon starts. If a peer sent such signatures before the channel was fully ready, the program …
use of uninitialized variableundefined behavior (invalid bool load)network-triggered code path
This commit fixes the project's internal nightly code-coverage CI workflow. It changes how test coverage files are collected, ensures the same LLVM compiler version is used to generate and merge coverage data, and uploads a Codecov-compati…
This commit is a large cleanup of Core Lightning's API schemas, generated RPC bindings, and related plugin code. The stated goal is to make the documented 'required' fields match what the C code actually always produces or expects. In prac…
Large schema-only change with no accompanying security advisory or CVEOne semantic change to plugin hook response: invoice_payment hook can now reject with only failure_message and no resultMany fields change from optional to required in public RPC/protobuf interfaces
This commit only updates documentation. It adds error code 313 to the documented error lists for several Core Lightning commands (fundpsbt, utxopsbt, txprepare, multiwithdraw, and upgradewallet). The error code already existed in the code …
This commit fixes a release-script check that verifies the cryptographic signature on a file of checksums. Previously, the script only told GPG to verify the signature file itself. If someone replaced that signature file with an inline-sig…
Incorrect cryptographic verification logic in release toolingPotential false-positive signature verification with inline-signed .asc substitutionRelease-integrity hardening
This commit updates Core Lightning's release documentation to tell users and release managers to run gpg --verify with both the signature file and the manifest file named explicitly. The old one-argument form can silently succeed even if t…
Verification bypass risk in release artifact validationgpg --verify single-argument form can exit 0 without reading the intended manifestDocumentation-only hardening of release process
This commit is a routine update to the Rust dependency lock file (Cargo.lock), bumping many third-party libraries to newer patch or minor versions. The commit message gives no security reason for the update, and no verified references link…
Routine dependency refresh with no stated security rationaleUpdates to security-sensitive transitive crates (rustls, hyper, h2, tokio, webpki-roots) but no evidence these versions fix known vulnerabilitiesNo source-code changes or patch-specific fixes visible in the diff
This commit fixes a stack-overflow risk in Core Lightning's JSON parser. Before the fix, an attacker could send a valid JSON-RPC message containing thousands of nested brackets or braces. The parser's own helper functions used recursion fo…
Stack-overflow via deeply nested JSONRecursive JSON traversal without depth boundDenial-of-service vector in JSON-RPC input parsing
This commit only fixes typos and comment style. It changes two C-style comments from // to /* */ and corrects a grammar error in a documentation comment ('element' to 'elements'). There are no code behavior changes, no bug fixes, and no se…
This change fixes a test-infrastructure bug in Core Lightning's Python testing helpers. When running tests against a PostgreSQL database, very long test names could be silently shortened by PostgreSQL, causing different test runs or nodes …
No security-relevant signal: change is in test framework code onlyFixes a test reliability issue, not a runtime vulnerabilityNo input sanitization, authentication, cryptography, or network changes
This fix prevents Core Lightning from trying to use freshly created bitcoins (immature coinbase rewards) as emergency funds for fee-bump transactions. Such a transaction would be invalid under Bitcoin's rules and would be rejected by the n…
This commit fixes a bug in Core Lightning's askrene plugin that could prevent a node from restarting. When a saved routing layer contained a node bias with a description, the plugin accidentally freed the description's memory while using i…
Use-after-free / double-take of a tal-allocated string during plugin startupDenial-of-service-like symptom: lightningd aborts before replying to init, node cannot restartFixes publicly reported issue #9433 by endothermicdev
This commit only fixes a test case so it actually exercises the intended code path. It does not change any production code, so it cannot introduce or fix a real-world security vulnerability by itself. The test change is a reproducer for a …
This commit fixes a bug in Core Lightning's experimental dual-funded channel feature. When another node tried to open a channel, Core Lightning was not checking whether the proposed transaction fees were reasonable. A peer could request a …
Missing input validation on wire-parsed feerate fieldsPeer could induce signing and storage of feerate == 0RBF remote path allowed unbounded upward feerate walks
This commit adds regression tests for three related bugs where wildly wrong Bitcoin transaction feerates could enter Core Lightning. In the worst case, a malicious or broken fee source could make the node think a feerate was zero (due to a…
Integer overflow in feerate conversion (u32 wrap from 0xFFFFFFFF perkb to 0 perkw)Absurd feerate from external fee source bypassing sanity ceilingDatabase-stored out-of-range feerate causing startup abort/crash loop
This update fixes a crash bug in Core Lightning. When the software tried to list details of a channel opening in progress, it could crash if a stored fee rate was extremely large or zero. The crash happened because the code used an interna…
Integer overflow in RBF escalation (u32 * 25 / 24) leading to assertion failureAssertion failure in read-only introspection RPC (listpeerchannels) causing crash-loop at startupDatabase value treated as invariant despite originating from external fee estimator
This commit fixes a bug where Core Lightning nodes could get stuck in a crash loop. If a node had previously stored an extremely high or zero fee rate for an in-progress channel funding operation (a 'splice' or dual-funded channel RBF), a …
Integer overflow in fee-rate calculation (u32 overflow when multiplying by 25/24)Assertion failure leading to daemon crash loop at startupDatabase migration clamps out-of-range stored funding feerates
Expand any commit for its author, full message, clarity score, changed files, triage signals, analysis, and source link.
AI review queuedconnectd: bound the SOCKS5 request hostname to the request bufferby Níckolas Goline · 10b7961b · Aug 11, 2026 · 2 filesMessage 73 · AdequateHigh 73Details
Commit message · Níckolas Goline
connectd: bound the SOCKS5 request hostname to the request buffer
The SOCKS5 CONNECT request is built into a fixed 255-byte buffer, but a domain-name request needs 7 + strlen(host) bytes and the host length was never checked. A host longer than 248 bytes overran the buffer while the request was assembled, corrupting the adjacent length field, which was then used as the io_write() length and produced a large out-of-bounds read: the proxy socket received connectd's heap instead of the request, and connectd died. The host reaches this both from a proxied connect and from a gossiped DNS address.
Size the buffer to hold the largest legal request (header plus a maximum-length domain name), and refuse a hostname which still does not fit rather than building a request we cannot represent. Truncating the host is not an option: that is a connection to the wrong destination.
Changelog-Fixed: connectd: a proxied connection to a very long hostname (including a gossiped DNS address) could crash the node. (cherry picked from commit 04ca809936794de47943951b9d116d9fd1ea1844)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
second-pass: broader security terminology
AI analysis · High 73/100
This update fixes a bug in Core Lightning's Tor/proxy connection code. When the node tried to connect through a SOCKS5 proxy to a hostname longer than 248 characters, it wrote past the end of a small fixed buffer. That corrupted the recorded message length, causing the proxy to be sent random data from the program's memory and crashing the node. The fix enlarges the buffer to the legal maximum and rejects hostnames that are still too long instead of overflowing.
Lower-prioritypytest: check the SOCKS5 request for a maximum-length hostnameby Níckolas Goline · 59aff734 · Aug 11, 2026 · 1 fileMessage 83 · StrongTriage 0Details
Commit message · Níckolas Goline
pytest: check the SOCKS5 request for a maximum-length hostname
connectd assembles the SOCKS5 CONNECT request in a fixed buffer, but never checks that the hostname fits it. Add a test that a maximum-length proxied hostname produces exactly the request it should, with connectd still alive afterwards.
Changelog-None
(cherry picked from commit 6ecead49248408172489e3b77c34b44994b25414)
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-prioritylightningd: restart onchaind when a watched tx is reorged outby Níckolas Goline · e57502db · Aug 11, 2026 · 2 filesMessage 73 · AdequateTriage 0Details
Commit message · Níckolas Goline
lightningd: restart onchaind when a watched tx is reorged out
onchain_tx_watched() kills the owner on a zero-depth callback, which frees onchaind and every watch parented to it, assuming something will restart it. Nothing does: onchaind_funding_spent() is the only launch site, and the funding outpoint watch doesn't fire again when the reorg removed a descendant of the commitment rather than the commitment itself. So the channel is unwatched until the next restart: no new claim is proposed, no spend of a remaining output is seen, and it's never resolved.
Reuse the startup replay path, deferred out of the watch callback since we can't add watches while the txwatch table is being iterated.
Changelog-Fixed: lightningd: restart `onchaind` after a reorg of a transaction it was watching, instead of leaving the channel unmonitored until restart. (cherry picked from commit 18de31a0d7cd2dd4880c206da9af36ae97ec2567)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-prioritypytest: onchaind must come back after a reorg of a tx it was watchingby Níckolas Goline · b76f67eb · Aug 11, 2026 · 1 fileMessage 83 · StrongTriage 0Details
Commit message · Níckolas Goline
pytest: onchaind must come back after a reorg of a tx it was watching
A zero-depth callback frees onchaind and every watch parented to it, and nothing restarts it unless lightningd itself restarts. Also test the commitment tx reorg, which is handled correctly today and must stay that way.
Changelog-None
(cherry picked from commit 2c019958f3e84a805b65711f24c40a61ea8ba8b0)
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
AI review queuedcommon: treat a reorged close output as csv-lockedby cdecker · 9d0c1d49 · Aug 11, 2026 · 2 filesMessage 85 · StrongModerate 60Details
Commit message · cdecker
common: treat a reorged close output as csv-locked
If, during a run of CLN, a close gets confirmed, its outputs are added to the wallet. If then the close is reorged out, i.e., it loses its confirmation, using it in this inconsistent state, can cause a crash, due to a derefence on the confirmation height which is unset.
Changelog-Fixed: wallet: Addressed a crash when attempting to spend a previously confirmed but reorged out close transaction output. (cherry picked from commit 4c078a0e61c8eea7ec3549c71688808dcfe479f0)
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
signing or wallet pathsecond-pass: broader security terminologysecond-pass: security-sensitive path
AI analysis · Moderate 60/100
This update fixes a crash in Core Lightning's wallet. If a channel-closing transaction had been confirmed and then a blockchain reorganization removed that confirmation, the wallet could try to spend the output while its confirmation height was missing. That led to a null-pointer crash. The fix treats such outputs as still time-locked so they are not spent until re-confirmed.
Lower-prioritylightningd: let an onchain preimage beat an unfinished outgoing failureby Níckolas Goline · 254daf0e · Aug 11, 2026 · 1 fileMessage 81 · StrongTriage 0Details
Commit message · Níckolas Goline
lightningd: let an onchain preimage beat an unfinished outgoing failure
onchain_fulfilled_htlc() skipped any outgoing HTLC with failmsg or failonion set. Those get set at RCVD_REMOVE_COMMIT, but remove_htlc_out() doesn't free the htlc_out until RCVD_REMOVE_ACK_REVOCATION: until then the removal isn't final and the HTLC can still be in a commitment, so BOLT #2 says the preimage wins.
Only skip if we already failed the incoming HTLC, which is the case this check was written for, and clear the failure before recording the preimage, since htlc_out_check() doesn't allow both.
Changelog-Fixed: lightningd: fulfill the incoming HTLC when we learn the preimage onchain, even if the outgoing HTLC had an unfinished failure. (cherry picked from commit ce9b9c6b77bda95832bae0e283adcde79c8744e8)
81/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Links an issue, advisory, or supporting reference
Lower-priorityhsmd: return io_close when the handler reports an errorby Sangbida Chaudhuri · 270d3acf · Aug 11, 2026 · 2 filesMessage 73 · AdequateTriage 0Details
Commit message · Sangbida Chaudhuri
hsmd: return io_close when the handler reports an error
When libhsmd rejects a request it returns NULL; close the client then, instead of from hsmd_status_bad_request. Share the report path in report_bad_req so it cannot drift from bad_req_fmt.
Changelog-Fixed: print the commitment index in "bad commit secret" instead of a stack address (cherry picked from commit 869bd4da44df842d5f54e0370e95bffa7cf5a8b4)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
We need to wait for bwatch to see the deposit block or it won't see a reorg.
``` assert l1.db_query('SELECT COUNT(*) AS c FROM outputs')[0]['c'] == 1
# Reorg the deposit block away. Deprioritize the returned mempool tx # (same trick as simple_reorg) so the replacement blocks don't just # re-confirm it. bitcoind.rpc.invalidateblock(bitcoind.rpc.getblockhash(deposit_height)) memp = bitcoind.rpc.getrawmempool() assert txid in memp for t in memp: bitcoind.rpc.prioritisetransaction(t, None, -1000000) bitcoind.generate_block(2)
AI review queuedlightningd: handle amountless invoices in the onchain payment checkby Níckolas Goline · f818385d · Aug 11, 2026 · 2 filesMessage 73 · AdequateModerate 69Details
Commit message · Níckolas Goline
lightningd: handle amountless invoices in the onchain payment check
invoice_check_onchain_payment() compared the received amount against *details->msat, which is NULL when the invoice was created with amount_msat="any":
The HTLC path already checks this; do the same onchain, where an amountless invoice likewise accepts any amount.
Changelog-Fixed: lightningd: crash when an onchain payment arrived for the fallback address of an invoice created with amount_msat="any". (cherry picked from commit 6d025a3dab76ec5380474b2a8065c48aec309f33)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
second-pass: broader security terminology
AI analysis · Moderate 69/100
This fix repairs a crash in Core Lightning's invoice handling. When someone paid the on-chain fallback address of an invoice that accepted 'any' amount, the software dereferenced a NULL pointer and died with a fatal signal (segmentation fault). The patch simply skips the amount comparison when no specific amount was set, matching the behavior already used for regular Lightning payments.
Lower-prioritypytest: onchain payment to an amountless invoice's fallback addressby Níckolas Goline · 50dd3be7 · Aug 11, 2026 · 1 fileMessage 73 · AdequateTriage 0Details
Commit message · Níckolas Goline
pytest: onchain payment to an amountless invoice's fallback address
invoice() attaches a fallback address whatever the amount, so "any" invoices get one too. details->msat is NULL for those, and we never covered that case.
Changelog-None
(cherry picked from commit c5e8064ca3eb5000d9030dd96391fa20c9763c8b)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-prioritypyln-testing: give btcproxy a port and choose better portsby daywalker90 · f80895ba · Aug 10, 2026 · 2 filesMessage 83 · StrongTriage 0Details
Commit message · daywalker90
pyln-testing: give btcproxy a port and choose better ports
btcproxy was using port 0 by default without going through our port reservation logic, so it may have caused "Address already in use" issues. It was also binding to 0.0.0.0, so on all addresses. For the port reservations to work we use 127.0.0.1 here too.
We choose from outside the source-port range of ports in hopes of avoiding more port bind race conditions.
Changelog-None
83/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Mentions testing or verification
Lower-prioritytests: fix flake in test_important_plugin from sync read EBADFby daywalker90 · 56dbe3b0 · Aug 10, 2026 · 1 fileMessage 95 · StrongTriage 0Details
Commit message · daywalker90
tests: fix flake in test_important_plugin from sync read EBADF
When an important plugin dies, lightningd shuts down while other plugins may still be mid-sync-RPC during init. If rpc_open() fails because the RPC socket is already gone (logging "Could not connect ... Connection refused"), sync_req() proceeds with sync_fd == -1, and the subsequent read(-1) fails with EBADF, producing the BROKEN message:
Reading sync lightningd: Bad file descriptor
This is the same intentional shutdown that already produces the whitelisted "Reading sync lightningd: Connection reset by peer" (or a clean EOF exit); the errno merely differs by the connection race. Add "Bad file descriptor" to the broken_log whitelist so the test no longer fails at teardown on this race.
Changelog-None
95/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode✓ Mentions testing or verification
This saves sats in certain scenarios by preferring a lower closing fee.
Changelog-Changed: lightningd: the maximum fee accepted for a mutual close is now bounded by the unilateral-close feerate. (cherry picked from commit fc646eabaae4d01d299cd765f51d6a10811257db)
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
channeld: Add helpful warning message during reestablish
Adding a warning message makes it clear why the reestablish process would fail.
Changelog-None
(cherry picked from commit 47c7280914abe863efdd2d031cafb36bbfd411ef)
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
AI review queuedwallet: persist the inflight i_sent_sigs flag across restartsby Dusty Daemon · 10088288 · Aug 7, 2026 · 2 filesMessage 73 · AdequateLow 42Details
Commit message · Dusty Daemon
wallet: persist the inflight i_sent_sigs flag across restarts
This flag was previously memory only, lets upgrade it to be used across restarts.
Changelog-None
(cherry picked from commit 5293e073560291ada3811cbbfe4240080df2ebab)
73/100 · AdequateMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing or wallet pathsecond-pass: security-sensitive path
AI analysis · Low 42/100
This change fixes a bug where a flag tracking whether a node had already sent transaction signatures during a 'splice' (a way to resize a Lightning channel) was stored only in memory. If the node restarted mid-process, it could forget that it had already sent signatures and either resend them or get confused about the splice state. Persisting the flag to the database makes splicing more robust across restarts.
Lower-priorityclosing: sanity-check close transactionsby Níckolas Goline · bc26e4a6 · Aug 7, 2026 · 4 filesMessage 68 · AdequateTriage 0Details
Commit message · Níckolas Goline
closing: sanity-check close transactions
By policy we don't trust our subdaemons (much). Before storing and broadcasting a close tx from a (simple)closing subdaemon, confirm it's a well-formed close of this channel: one input spending our funding outpoint, closing-shaped locktime/sequence, and outputs to known shutdown scripts (or a zero-value OP_RETURN with option_simple_close).
Share it between the simple and legacy close paths, and apply the same shape rule in onchaind.
(cherry picked from commit 220f0b919a157f8ba164cdc374a18fa9d5ec32ae)
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Return early for a NULL column like the sibling db_col_* helpers, and only parse and set the version when there is actual data to work with.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Changelog-None
(cherry picked from commit d6f8cc32eddb5f9aaba4c0561f94944b550cb61f)
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
signing boundary
AI analysis · Low 32/100
This commit fixes a helper function that reads PSBT data from the database. Previously, when the database column was NULL, the code would still try to parse it and unconditionally set the PSBT version, which could lead to a crash or undefined behavior. Now it returns NULL early for NULL columns, matching the behavior of similar helper functions, and only sets the version when parsing actually succeeded.
Keep the loaded pos within the known[] array like the other defensive checks in the channel loader, so a malformed row fails loudly instead of indexing out of range.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Changelog-Fixed: wallet: an out-of-range shachain index in the database is now rejected at load instead of read out of bounds. (cherry picked from commit fdd7b11e9f38eb2d3fa5515c00e64f0ad17d63fc)
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Why it was queued
memory safetysigning or wallet path
AI analysis · Moderate 57/100
This update fixes a bug in Core Lightning's wallet code where it reads a 'position' value from its database and uses it directly as an array index without first checking whether it is valid. If the database contained an out-of-range value, the program could read or write memory outside the intended array, which can cause crashes or unpredictable behavior. The fix adds a simple bounds check and makes the program stop with a clear error if the value is invalid.
Lower-prioritymake: skip extract-bolt-csv if bolts are absentby daywalker90 · 2c90d934 · Aug 7, 2026 · 1 fileMessage 68 · AdequateTriage 0Details
Commit message · daywalker90
make: skip extract-bolt-csv if bolts are absent
`check-source` -> `check-wire-format` unconditionally ran `extract-bolt-csv`, which failed when `../bolts` was not checked out:
``` /bin/sh: 1: .tmp.lightningrfc/tools/extract-formats.py: not found make: *** [wire/Makefile:54: wire/peer_wire.csv.raw] Error 127 ```
Skip it via `bolt-precheck` when `.tmp.lightningrfc` is missing, matching the `bolt-check` pattern.
Changelog-None
68/100 · AdequateMessage clarity
✓ Descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context
Lower-priorityci: bind GPG keyid via env before shell in release-publishby SashaMIT · 372d8f73 · Aug 6, 2026 · 1 fileMessage 85 · StrongTriage 0Details
Commit message · SashaMIT
ci: bind GPG keyid via env before shell in release-publish
Per review: keyid comes from crazy-max/ghaction-import-gpg parsing a repo-owned secret, so practical risk is low; bind it anyway so every run: block in the release path follows the same env-first pattern and the invariant does not depend on that action's output staying trusted.
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
Why it was queued
documentation-only discount
AI review queuedci: bind version/ref inputs via env before shell in release workflowsby SashaMIT · aa395617 · Aug 6, 2026 · 4 filesMessage 85 · StrongLow 46Details
Commit message · SashaMIT
ci: bind version/ref inputs via env before shell in release workflows
Follow-up to the docker/pypi env-binding pass: check-release-tag.yml, release-build.yml, release-publish.yml and pypi-build.yml still interpolated inputs.version / github.ref_name directly into run: blocks (script-injection class per GitHub's hardening guidance).
Bind through env: and reference quoted shell variables instead. Also drops a dead duplicate CHANGELOG_VERSION assignment in release-publish.yml that ran before VERSION was set.
Made-with: Cursor
Changelog-None
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Uses a recognizable type or scope✓ Provides detailed explanatory context
This commit hardens four GitHub release workflows by moving user-controlled values (version strings and branch/tag names) out of shell command text and into environment variables. This closes a class of attack where a maliciously crafted version string or tag name could be interpreted as shell commands, potentially altering release artifacts or stealing repository secrets. The change is defensive and does not claim to fix an active vulnerability.
Security candidatechanneld: split the feerate we'll pay from the one we'll acceptby cdecker · 4e7fa317 · Aug 6, 2026 · 17 filesMessage 85 · StrongHigh 72Details
Commit message · cdecker
channeld: split the feerate we'll pay from the one we'll accept
The previous commit clamped our own fee source on the way in. This is the counterpart for the other side of the channel: our peer's estimator can be just as broken as ours, and we are the only one in a position to notice before their money is gone.
`splice_accepter` only rejected a remote `funding_feerate_perkw` below feerate_min; there was no upper bound at all. The downstream safeguard in check_balances only inspects the accepter's own fee contribution, and since accepter_relative is 0 our weight is nil, so that check never fires. A peer whose estimator has gone haywire can therefore drive a splice at an arbitrary feerate and we will cheerfully sign it, even though the fee comes out of their channel balance. Refusing costs us nothing and saves them from committing their funds to a transaction they did not mean to pay for.
Reject anything above feerate_max, and apply the same bound in handle_splice_init so that we extend the same courtesy in reverse: if our own estimator is the broken one, we catch it before we ask a peer to sign for it. handle_splice_init honours `splice_force_feerate` there, as check_balances already does: that flag is the user saying they meant it, and a policy limit should not override it.
feerate_max also needs a bound of its own, since it was derived purely from the estimates times config.max_fee_multiplier. But a single bound cannot serve both directions, because feerate_max gates what we accept in `update_fee` *and* what we propose ourselves. Set for the accept side it would have us paying absurd fees; set for the propose side it would pin our commitment feerate below what a congested chain demands, which is precisely when it has to confirm. So there are now two:
- FEERATE_CEILING (1000000 perkw, 4000 sat/vB) is the most we let a peer drive us to. Their estimator being broken is not by itself worth dropping a channel over, so this only has to exclude the absurd. - MAX_OUR_FEERATE_PER_KW (100000 perkw, 400 sat/vB) is the most we will pay: roughly 0.011 BTC for a bare anchor commitment. Declining to propose a feerate costs us nothing, so we can afford to be strict. our_feerate_max() applies it wherever the money is ours: default_feerate, splice_feerate, opening_feerate and dual-fund RBF.
Note this leaves the paths where we cannot decline -- mutual close, penalty and onchain resolution -- bounded only by the ceiling, which is the right answer for a feerate that has a deadline attached.
channeld needs both, so channeld_init and channeld_feerates carry our_feerate_max alongside feerate_max, and check_balances holds whichever side is ours to the stricter one. The multiplier is settable via --dev-max-fee-multiplier, so widen to u64 before multiplying.
Finally, remove the UINT_MAX sentinels. feerate_max returned UINT_MAX when there were no estimates at all, and lightningd overwrote the bound with 0xFFFFFFFF when fee limits were ignored. Both are the bound a peer's proposal is measured against, and we store what we accept -- a u32 that large overflows the 25/24 RBF calculation downstream. The unknown path now falls back to FEERATE_CEILING, exactly as feerate_min falls back to FEERATE_FLOOR, and ignore_fee_limits travels to channeld and openingd as an explicit flag which relaxes the policy bounds but never the ceiling. That last part makes a documented promise false, so the three places which say ignore-fee-limits means "any fee they want" now say what it actually means.
Changelog-Fixed: channeld: a peer can no longer initiate a splice at an arbitrarily high feerate; it is now bounded like other remote-proposed feerates. Changelog-Changed: lightningd: we no longer propose a feerate above 100000perkw (400 sat/vB) of our own accord, for channel opens, splices, commitment updates and dual-fund RBFs. Changelog-Changed: lightningd: `--ignore-fee-limits` and `setchannel`'s `ignorefeelimits` still drop our policy bounds, but no longer accept a feerate above 1000000perkw (4000 sat/vB). Changelog-Changed: JSON-RPC: `feerates` reports `max_acceptable` as the feerate ceiling rather than 4294967295 when no fee estimates are available. (cherry picked from commit 4a10d71822c277e381bf289202f494e64110b522)
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode
Why it was queued
access controlmemory safety
AI analysis · High 72/100
This commit fixes a bug in Core Lightning where a channel peer could trick or accidentally push the node into signing a Bitcoin transaction with an absurdly high transaction fee during a 'splice' operation. Before the fix, there was no upper limit on the fee rate a peer could propose for a splice, and an internal balance check did not catch it because the accepting side contributed no funds. The patch adds two separate fee ceilings: a sanity ceiling on what any peer can propose, and a stricter self-imposed limit on fees the node itself will pay for its own transactions. It also removes unsafe 'no limit' sentinel values that could overflow later calculations.
Lower-prioritylightningd: clamp estimatefees results to a sanity ceilingby cdecker · 448c703e · Aug 6, 2026 · 3 filesMessage 85 · StrongTriage 0Details
Commit message · cdecker
lightningd: clamp estimatefees results to a sanity ceiling
Nothing bounded the feerates we accept from the `estimatefees` plugin: `parse_feerate_ranges` only checks that block counts ascend and that rates do not increase with block count, and the conversion loop only applies a floor. A broken or misbehaving fee source could therefore push an arbitrary u32 into every downstream feerate calculation.
Clamp both the reported floor and each individual rate to FEERATE_CEILING once they have been converted to perkw, and log loudly when we do. We clamp rather than reject because `bitcoin_plugin_error` is fatal(), and because discarding the estimate entirely is worse than capping it: with no rates at all `feerate_max` falls into its "unknown" path and returns UINT_MAX.
The ceiling is deliberately not a policy limit. It sits at 4000 sat/vB, several times the highest the chain has ever seen, so that it only ever fires on a broken fee source. Picking a tighter bound would mean underestimating during genuine congestion, which is exactly when our unilateral close and HTLC timeout transactions need to confirm.
The conversion has to be widened for the ceiling to see anything at all. feerate_from_style() computed (feerate + 3) / 4 on a u32, so the top three perkb values wrapped to 0 or 1 perkw, slipped under the ceiling, and were then raised to the floor, hiding the whole thing. That is also the more dangerous direction, since it underpays our own unilateral close, and it applies equally to operator input like `feerate="4294967295perkb"`. feerate_to_style() right below already widened for the same reason; the asymmetry was an oversight.
Changelog-Fixed: lightningd: feerate estimates from the Bitcoin backend are now clamped to a sanity ceiling, so a misbehaving `estimatefees` plugin cannot feed absurd feerates into the rest of the daemon. Changelog-Fixed: lightningd: a feerate given in perkb near the top of the 32-bit range no longer wraps to a near-zero perkw feerate. (cherry picked from commit 2d80c3bfbf94cb54925f8178884e0e3089e4e06d)
85/100 · StrongMessage clarity
✓ Specific, descriptive subject✓ Names a concrete action or component✓ Provides detailed explanatory context✓ Explains rationale or failure mode