paradigmxyz / reth · 20 September 2026
Detailed findings
paradigmxyz / reth · HACK-RETH-01
1. System calls accept a block when a 7002, 7251 or 8282 predeploy has no code
Affected
alloy-evm 0.39.0 src/block/system_calls/eip8282.rs:47-83
alloy-evm 0.39.0 src/block/system_calls/eip7002.rs:30-58
alloy-evm 0.39.0 src/block/system_calls/eip7251.rs:34-66
revm crates/handler/src/frame.rs:231-234
Why this severity
Rated high in this report. Recorded consequence: on a chain that activates Amsterdam (or Prague, for 7002/7251) without code at a system predeploy, alloy-evm 0.39.0 as pinned by reth 1136e114 accepts a self-consistent block that EELS and geth reject. Confidence: reproduced on EELS apply_body, EEST deploy_after_fork, geth evm blocktest 1.17.6 a5b90d2a, and EthBlockExecutor over empty CacheDB. The rating is conditional on empty predeploys at activation, which the prerequisites state.
Reachability. The recorded prerequisites require a genesis or activation state that omits the system contracts. They do not require a privileged caller on a correctly configured chain.
Prerequisites
Amsterdam (or Prague for 7002/7251) is active and at least one of WITHDRAWAL_REQUEST_PREDEPLOY_ADDRESS, CONSOLIDATION_REQUEST_PREDEPLOY_ADDRESS, BUILDER_DEPOSIT_CONTRACT_ADDRESS, or BUILDER_EXIT_CONTRACT_ADDRESS has no code. Mainnet and any chain that deployed those contracts before the fork do not meet this.
Impact
reth validators accept blocks EELS and geth reject. A reth builder on that network produces those blocks. Other clients refuse to build, so the network splits by client at the fork block. No live mainnet theft path was demonstrated.
What is wrong
transact_builder_deposit_requests_contract_call calls transact_system_call with no prior code check. revm maps empty bytecode to InstructionResult::Stop then Success. post_commit maps Success to an empty request list and the block continues. EELS process_checked_system_transaction raises InvalidBlock when the target has no code. geth evm blocktest on the same EEST fixtures reports empty system contract and pass: true.
Exploit scenario
An operator launches an Amsterdam (or Prague) network without deploying 7002, 7251, or 8282. Every post-execution system call in alloy-evm 0.39.0 hits an empty account. reth finishes the block as valid. EELS apply_body on an empty MPT fails at 7002 with System contract address ... does not contain code. geth blocktest on deploy_after_fork reports BAD BLOCK empty system contract at the 8282 deposit and exit addresses. A mixed-client network forks at the activation block.
Observation confidence and limits
Evidence class: Reproduced on EELS, EEST fill, geth blocktest, and alloy-evm EthBlockExecutor. Reachability-dependent.
How to reproduce
- 1Run vectors/eels_empty_predeploy.py against execution-specs forks/amsterdam d4c28bfe7. Expect BLOCK_ERR at 7002.
- 2Fill EEST tests/amsterdam/eip8282_builder_execution_requests/test_contract_deployment.py -k deploy_after_fork (8 passed). Fixtures carry expectException SYSTEM_CONTRACT_EMPTY.
- 3On geth evm 1.17.6-unstable a5b90d2a, run evm blocktest on those fixtures. Expect empty system contract at 0x0000bFF4...8282 and 0x000064D6...8282, JSON pass: true.
- 4Run vectors/c01_empty_predeploy_probe.rs on alloy-evm 0.39.0. Empty CacheDB: SYSTEM_OK then BLOCK_OK. REVERT at 7002: BLOCK_ERR. Fix precheck: PRECHECK_ERR.
50:60:alloy-evm-0.39.0/src/block/system_calls/eip8282.rs
match evm.transact_system_call(
SYSTEM_ADDRESS,
BUILDER_DEPOSIT_REQUEST_PREDEPLOY_ADDRESS,
Bytes::new(),
) {
Ok(res) => Ok(res),
Err(e) => Err(BlockValidationError::BuilderDepositRequestsContractCall {
message: format!("execution failed: {e}"),
}
.into()),
}
No code check before the system call. The 7002 and 7251 helpers are the same shape.
Short-term remediation
Before each of the four post-execution calls in alloy-evm finish, read the target account and return a dedicated error when code_hash is KECCAK_EMPTY or the account is absent. Extend alloy-rs/evm#400 ensure_contract_deployed from the two 8282 addresses to eip7002.rs and eip7251.rs. Pin the fixed alloy-evm in reth.
Long-term remediation
Treat empty system-contract code as a block-validity property of EthBlockExecutor::finish, asserted in tests against EEST deploy_after_fork, rather than a later mapper string. The EEST client_clis/clis/reth.py mapper already expects system contract .* has no code.
Expected-safe retest
Empty-predeploy fixtures must fail closed on reth with the same verdict as EELS InvalidBlock and geth empty system contract. A chain with the four predeploys deployed must still produce VALID blocks. Control: REVERT at 7002 must remain BLOCK_ERR.
Evidence: E01 alloy-evm empty-predeploy probe · E02 EELS apply_body · E03 EEST deploy_after_fork fill · E04 geth evm blocktest a5b90d2a
paradigmxyz / reth · HACK-RETH-02
2. BalWrites nets a second same-index commit against the wrong baseline
Category
State & Correctness
Affected
revm crates/state/src/bal/writes.rs:116-126
revm crates/state/src/bal/account.rs:251-268, 361-369
alloy-evm 0.39.0 src/eth/block.rs:170-186, 283-345
Why this severity
Rated medium in this report. Recorded consequence: if two EvmState commits land on the same field at one BlockAccessIndex with no earlier-index write, the rebuilt BAL omits or adds an entry relative to EIP-7928, which would split from EELS. Confidence: unit tests A/B/F fail on HEAD, spec writer passes, libFuzzer crash at 596 execs. Unreachable at HEAD: alloy-evm 0.39.0 commits each account once per index.
Reachability. The recorded prerequisites require a second commit at the same index without bump_bal_index. Nothing in the current block executor does that.
Prerequisites
A consumer of revm-state commits the same account or slot twice at one index. alloy-evm 0.39.0 does not: index 0 is 2935 then 4788 on disjoint accounts; tx indices are one commit per tx; index n+1 is four distinct predeploys then one aggregated increment_balances. A reth-shaped dump reports same-index-field-dups=0.
Impact
If reached, reth would reject blocks EELS accepts or build blocks EELS rejects. Not reachable with the current alloy-evm ordering. Case F (two withdrawals to one address) is merged upstream, so it cannot occur today.
What is wrong
update_with_key, when last.0 == index and len() == 1, takes original_subvalue from the commit being applied. On a second same-index commit that original is the first commit's post value, not the value before the index. Sequence A (10->20 then 20->20) yields [] instead of [(i,20)]. Sequence B (10->20 then 20->10) yields [(i,10)] instead of [].
Exploit scenario
A later executor change that commits twice at one index without bumping, for example withdrawals before system calls when a withdrawal targets a predeploy, or per-item withdrawal commits, would feed BalWrites the broken arm. libFuzzer minimized input [66, 10, 66, 10, 10, 2, 66] is index 10, 66->10 then 2->66: HEAD [(10, 66)], spec [].
Observation confidence and limits
Evidence class: Reproduced on the primitive. Unreachable on the current executor. libFuzzer HEAD-vs-spec crash.
How to reproduce
- 1cargo test in vectors/bal_netting_fix. spec_writer_matches_eip_7928 passes A-F. head_writer_fails_a_b_f fails only A, B, F. head_writer_matches_when_earlier_index_exists passes C, D, E.
- 2Run libFuzzer vectors/fuzz_bal_writes bal_writes against revm 4535a578. Crash at 596 execs. Minimized 7 bytes as above.
- 3Dump a rebuilt BAL from c01_empty_predeploy_probe after reth bump-after-pre-exec then finish. same-index-field-dups=0 on an empty Amsterdam block and on a 1 gwei withdrawal to the 8282 deposit predeploy.
115:131:revm/crates/state/src/bal/writes.rs
let (previous, last) = match self.writes.as_mut_slice() {
[.., previous, last] => (f(&previous.1), last),
[last] => (original_subvalue, last),
[] => {
if original_subvalue != f(&value) {
self.writes.push((index, value));
}
return;
}
};
if previous == f(&value) {
self.writes.pop();
return;
}
The [last] arm uses the current commit original. That is the first commit post-value on a second same-index write.
Short-term remediation
When last.0 == index and len() == 1, the baseline must be the value before the index. Record (index, original) for the first write, or merge all EvmStates for one index in BalState::commit before update. Add tests A, B, F with spec-expected results.
Long-term remediation
Document the one-commit-per-index-per-key precondition on BalWrites::update and debug_assert in BalState::commit_one that an account is not committed twice at the current index, so a future executor reorder fails closed in tests rather than silently netting.
Expected-safe retest
HEAD writer must match spec on A-F. libFuzzer HEAD-vs-spec must stop crashing. A reth-shaped empty block and a withdrawal-to-predeploy block must still report same-index-field-dups=0. A sealed-BAL round trip through the block executor remains unrun in this R1.
Evidence: E05 BalWrites unit tests · E06 libFuzzer HEAD-vs-spec · E01 reachability dump same-index-field-dups=0
paradigmxyz / reth · HACK-RETH-03
3. BlockAccessLists wire decoder allocates per item with no count bound
Affected
reth crates/net/eth-wire-types/src/block_access_lists.rs:54-85
reth crates/net/eth-wire-types/src/message.rs:30
reth crates/net/network/src/eth_requests.rs:62-65
Why this severity
Rated low in this report. Recorded consequence: a 10 MiB message of one-byte 0xc0 items decodes to 10,485,760 Option<Bytes> entries and 657 MB RSS, 64.2x, in 0.33 s. Confidence: measured on reth-eth-wire-types at 1136e114. The liveness row (node stall, OOM) was not reached on the test machine. One in-flight request per peer bounds concurrency.
Reachability. The recorded prerequisites do not require privilege. The node must have sent GetBlockAccessLists to the peer.
Prerequisites
A peer the node asked for BlockAccessLists answers with up to MAX_MESSAGE_SIZE (10 MiB) of tiny RLP items. Serving already caps at 1024; the receive side truncates after decode.
Impact
Per malicious peer, per request the node sent: a 657 MB transient allocation and 0.33 s of decode work on a 32-core WSL2 machine. BlockBodies with minimal items measures 24.2x (242 MB). No stall was observed.
What is wrong
BlockAccessLists::decode walks the outer list with no item cap and copies each item into Vec<Option<Bytes>>. item_length is checked against the remaining buffer, so there is no over-read. The only bound is the RLPx 10 MiB frame. full_block.rs truncates after the decode has completed. PR #26841 was closed unmerged.
Exploit scenario
A peer answering GetBlockAccessLists sends 10,485,760 one-byte 0xc0 list items filling the 10 MiB frame. reth allocates one Option<Bytes> per item before the caller discards extras. Peak RSS 669096 KiB versus 12160 KiB before decode.
Observation confidence and limits
Evidence class: Measured on the pinned crate. libFuzzer BlockAccessLists::decode 7,483,083 runs, 0 crashes (no panic; this is an amplification, not a crash).
How to reproduce
- 1Run vectors/bal_wire_probe.rs against reth-eth-wire-types at 1136e114. Expect input_bytes=10485764 items=10485760 decode_ms=333 hwm_after_kb=669096 amplification=64.2x.
- 2Same harness on BlockBodies: 24.2x, 242 MB, 0.11 s.
- 3cargo test -p reth-eth-wire-types at 1136e114: 203 + 2 passed (Vultr vhp-8c-16gb-amd).
66:85:reth/crates/net/eth-wire-types/src/block_access_lists.rs
let mut bals = Vec::new();
while !payload.is_empty() {
let item_start = payload;
let item_header = Header::decode(&mut payload)?;
let header_length = item_start.len() - payload.len();
let item_length = header_length + item_header.payload_length;
if item_length > item_start.len() {
return Err(alloy_rlp::Error::InputTooShort)
}
if item_header.list {
bals.push(Some(Bytes::copy_from_slice(&item_start[..item_length])));
} else if item_start[..item_length] == [EMPTY_STRING_CODE] {
bals.push(None);
}
No capacity hint and no cap. The loop runs until the 10 MiB payload is empty.
Short-term remediation
Cap decode at MAX_BLOCK_ACCESS_LISTS_SERVE (1024) and return ListLengthMismatch when exceeded. Better: pass the expected count from the request manager. Test that a 10 MiB 0xc0 message fails and that 1024 items succeed.
Long-term remediation
Apply the same receive-side cap to BlockBodies (24.2x on this harness) and Receipts. Those messages are outside EIP-7928 scope and are not extra findings here.
Expected-safe retest
A 10 MiB 0xc0 BlockAccessLists message must fail to decode. A valid 1024-item response must still decode. RSS during decode must stay in line with the requested count, not the frame size.
Evidence: E07 wire decode RSS probe · E08 reth-eth-wire-types cargo test · E09 libFuzzer BlockAccessLists::decode
paradigmxyz / reth · HACK-RETH-04
4. newPayloadV5 and forkchoiceUpdatedV4 accept pre-Amsterdam timestamps
Difficulty to reach
Medium
Affected
reth crates/payload/primitives/src/lib.rs:74-237, 552-596
reth crates/rpc/rpc-engine-api/src/engine_api.rs:270-283, 432, 1079
Why this severity
Rated low in this report. Recorded consequence: validate_payload_timestamp returns Ok for (V5, Payload) and (V4, PayloadAttributes) in the pre-Amsterdam window. The spec requires -38005 Unsupported fork. Confidence: vectors/l02_timestamp_probe.rs. No consensus effect on a correctly versioned CL. Reachability needs the CL to send an Amsterdam method for a pre-Amsterdam timestamp.
Reachability. The recorded prerequisites require a consensus client on the wrong Engine method version. The spec forbids that pairing.
Prerequisites
A CL calls engine_newPayloadV5 or engine_forkchoiceUpdatedV4 with a timestamp before Amsterdam. Presence checks may still return -32602 when the new fields are populated.
Impact
Wrong Engine API error contract. A misconfigured CL gets VALID/INVALID/SYNCING or a built payload instead of -38005. The block is still validated as a pre-Amsterdam block. No consensus split between two correct CLs.
What is wrong
The if-chain rejects (V5, Payload) only when !is_osaka and (V4, PayloadAttributes) only when !is_prague. For timestamps in [osaka, amsterdam) (payload) or [prague, amsterdam) (attributes) the function returns Ok(()). validate_amsterdam_staggered_version_restrictions never exercises that window.
Exploit scenario
A CL switches to V5/V4 early. newPayloadV5 with a null blockAccessList for an Osaka-era timestamp is processed as a normal pre-Amsterdam payload. forkchoiceUpdatedV4 without slotNumber builds a pre-Amsterdam payload. With the new fields present the node returns -32602 instead of -38005.
Observation confidence and limits
Evidence class: Executed if-chain probe on the pinned function body. Live engine_newPayloadV5 over RPC was not run (no reth binary, no hive).
How to reproduce
- 1Run vectors/l02_timestamp_probe.rs. Osaka at t=0, Amsterdam at t=1000. V5 Payload t=999 -> Ok. V4 PayloadAttributes t=999 -> Ok.
- 2Controls: V5 Payload t=0 with Osaka at 10000 -> UnsupportedFork. V6 Payload t=999 -> UnsupportedFork.
- 3JSON-RPC request shapes for the same cases are in vectors/newpayload_v5_pre_amsterdam.md. Those shapes were not sent to a live reth RPC in this R1.
74:78:reth/crates/payload/primitives/src/lib.rs
pub fn validate_payload_timestamp(
chain_spec: impl EthereumHardforks,
version: EngineApiMessageVersion,
timestamp: u64,
kind: MessageValidationKind,
) -> Result<(), EngineObjectValidationError> {
No arm matches (V5, Payload) && !is_amsterdam or (V4, PayloadAttributes) && !is_amsterdam. The is_v6 && !is_amsterdam arm exists.
Short-term remediation
Add an arm next to is_v6 && !is_amsterdam that returns UnsupportedFork for (V5, Payload) and (V4, PayloadAttributes) when !is_amsterdam. Optionally run timestamp validation before presence checks so the with-field cases are -38005 rather than -32602.
Long-term remediation
Unit-test the pre-Amsterdam V5/V4-attrs window. validate_bogota_fork_timeframe currently uses amsterdam_activated() at timestamp 0, so that window is never exercised.
Expected-safe retest
Chain spec with amsterdam at T: validate_payload_timestamp(V5, T-1, Payload) and (V4, T-1, PayloadAttributes) both UnsupportedFork; (V5, T, Payload) Ok. A live engine_newPayloadV5 still needs a reth binary.
Evidence: E10 timestamp if-chain probe · Engine API amsterdam.md:122,227
paradigmxyz / reth · HACK-RETH-05
5. BlockAccessIndex is u64 while the spec type is uint32
Affected
alloy-eip7928 0.4.10 src/block_access_index.rs:19-23
Why this severity
Rated informational. A received index of 2^32 or u64::MAX decodes and is rejected only by the rebuilt-hash compare after execution. No consensus miss: the hash compare still fails the block.
Reachability. Any builder can supply an oversized index. Cost is one execution.
Prerequisites
A payload whose BAL encodes a BlockAccessIndex wider than uint32.
Impact
Workers may install an oracle entry at an unrepresentable index. The rebuilt list is canonical and the header hash compare rejects the block. No accepted invalid block was observed.
What is wrong
BlockAccessIndex(pub u64) with RlpDecodableWrapper. Spec type is uint32 and index <= n+1. Neither bound is checked at decode. info_decode_probe.rs: 2^32 and u64::MAX RLP-decode to themselves.
Exploit scenario
A builder includes an index of 2^32. Decode succeeds. Parallel workers can read that entry if their index is higher. Canonical rebuild never emits uint32-illegal indices, so the hash compare fails.
Observation confidence and limits
Evidence class: Decode probe on alloy-eip7928 0.4.10.
How to reproduce
- 1Run vectors/info_decode_probe.rs. 2^32 and u64::MAX decode to themselves. No uint32 cut.
18:23:alloy-eip7928-0.4.10/src/block_access_index.rs
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
#[cfg_attr(feature = "rlp", derive(alloy_rlp::RlpEncodableWrapper, alloy_rlp::RlpDecodableWrapper))]
#[repr(transparent)]
pub struct BlockAccessIndex(pub u64);
RLP representation is the wrapped u64. No uint32 or n+1 check.
Short-term remediation
Reject indices above u32::MAX at decode, and reject index > n+1 once n is known, before workers install the oracle.
Long-term remediation
Keep the rebuilt-hash compare. Add the type-width check so execution is not spent on lists that cannot be canonical.
Expected-safe retest
RLP of 2^32 and u64::MAX must fail decode. A valid uint32 index at n+1 must still succeed.
Evidence: E11 info_decode_probe · checksum 1cb19c9d53b507960f649e5689f7098e556696023fe1b57b67f2181ed54bc5b7
paradigmxyz / reth · HACK-RETH-06
6. Withdrawal increment comment says zero withdrawals are skipped
Affected
alloy-evm 0.39.0 src/block/state_changes.rs:74-97
Why this severity
Rated informational. The comment is stale. The loop records zero-valued withdrawals, which is what EIP-7928 7928-16 and EEST bal_zero_withdrawal require.
Reachability. Documentation only. Consensus reads the loop, not the comment.
Prerequisites
A reader of the comment at state_changes.rs:74-80.
Impact
A later edit that 'fixes' the loop to match the comment would omit zero-withdrawal recipients from the BAL and split from EELS. The current code is correct.
What is wrong
Doc at :74-80 says zero-valued withdrawals are filtered out. Loop at :90-95 inserts increment 0. Empty-block dump with a zero withdrawal: recipient 0x11..11 present with empty lists.
Exploit scenario
No exploit. The defect is a comment that contradicts the loop that consensus uses.
Observation confidence and limits
Evidence class: Source plus rebuilt-BAL dump.
How to reproduce
- 1c01_empty_predeploy_probe.rs zero-withdrawal case. Recipient 0x11..11 present, empty lists.
74:95:alloy-evm-0.39.0/src/block/state_changes.rs
// comment claims zero withdrawals are skipped
// loop inserts increment 0 for them
See state_changes.rs:74-97 on alloy-evm 0.39.0. The dump is in the C-01 probe H-01 section.
Short-term remediation
Change the comment to state that zero-amount withdrawals still produce a BAL presence entry.
Long-term remediation
Add a unit test named after bal_zero_withdrawal so a later filter cannot land without failing CI.
Expected-safe retest
Zero-amount withdrawal recipient remains in the rebuilt BAL. Comment matches the loop.
Evidence: E01 zero-withdrawal dump
paradigmxyz / reth · HACK-RETH-07
7. ExecutionPayloadV4 from_block_unchecked fills blockAccessList with the hash
Affected
alloy crates/rpc-types-engine/src/payload.rs:1735-1750, 2403-2405
Why this severity
Rated informational. The helper writes 32 hash bytes into a field that must hold RLP BAL bytes. reth getPayloadV6 does not call this helper; it uses from_block_unchecked_with_bal.
Reachability. No Amsterdam production caller at HEAD.
Prerequisites
A caller uses ExecutionPayloadV4::from_block_unchecked without the _with_bal variant.
Impact
The resulting payload is not a decodable BAL. Current reth envelope construction does not use this path.
What is wrong
from_block_unchecked has no BAL parameter. It sets blockAccessList to header.block_access_list_hash bytes (or the empty-list hash). Grep at HEAD: production try_into_v6 uses from_block_unchecked_with_bal.
Exploit scenario
A future caller of the unchecked helper would advertise a 32-byte hash as BAL bytes. Decode would fail. Not reached in reth 1136e114 getPayloadV6.
Observation confidence and limits
Evidence class: Source grep at alloy 2.4.2 / reth 1136e114.
How to reproduce
- 1Grep ExecutionPayloadV4::from_block_unchecked. Confirm getPayloadV6 uses from_block_unchecked_with_bal. Read payload.rs:1739-1751.
1735:1750:alloy/crates/rpc-types-engine/src/payload.rs
// from_block_unchecked sets blockAccessList from header.block_access_list_hash
Dead on the production getPayloadV6 path. The hash-bytes fallback remains in the crate.
Short-term remediation
Remove the hash-bytes fallback or make from_block_unchecked require BAL bytes once Amsterdam is in the payload type.
Long-term remediation
Keep from_block_unchecked_with_bal as the only constructor the Engine envelope uses, and fail compilation if the hash-sized path is selected for V4.
Expected-safe retest
getPayloadV6 still emits decodable BAL bytes. A test that from_block_unchecked is unused on the V6 path remains green.
Evidence: E12 source grep from_block_unchecked
paradigmxyz / reth · HACK-RETH-08
8. BAL-derived state root skips accounts that do not change the state root
Difficulty to reach
Medium
Category
State & Correctness
Affected
reth crates/engine/tree/src/tree/payload_processor/prewarm.rs:690-694
reth crates/engine/tree/src/tree/state_root_strategy/mod.rs:44-50
Why this severity
Rated informational. The parallel path computes the state root from received BAL post-values and skips accounts whose entry does not change the state root. The unrepresentable case is EIP-161 deletion of a pre-existing empty account that still has storage. EIP-7523 declares that state absent from post-merge chains.
Reachability. None on mainnet or any correctly launched post-merge chain. Requires a network that violates EIP-7523 / EIP-7610.
Prerequisites
A pre-existing empty account (nonce 0, balance 0, no code) that still has storage, and a block that deletes it. EIP-7523 L21/L31/L45; tests containing that state are invalid.
Impact
Canonical State deletes the account. BAL-derived hashed state keeps it. The block is rejected on state root. Fail-closed on an illegal pre-state, not an accepted invalid block.
What is wrong
if !account_info.changes_state_root(account_changes) { return; } at prewarm.rs:692-694. Reads-only entries have changes_state_root=false. reth documents the EIP-7523 reliance at state_root_strategy/mod.rs:44-50 and prewarm.rs:765-766.
Exploit scenario
On a chain that still has EIP-161-deletable empty accounts with storage, a block that touches such an account can fail the BAL-derived root while the serial path would delete it. Mainnet post-merge state does not contain that account.
Observation confidence and limits
Evidence class: Source plus info_decode_probe changes_state_root cases. No chain with EIP-7523-illegal state was executed.
How to reproduce
- 1info_decode_probe.rs: reads-only changes_state_root=false; storage-write true. Read prewarm.rs:690-694 and the EIP-7523 comments.
690:694:reth/.../prewarm.rs
let account_info = account_changes.account_info();
if !account_info.changes_state_root(account_changes) {
return;
}
Accounts with no state-root-changing fields are omitted from the hashed overlay.
Short-term remediation
Keep the EIP-7523 assumption documented. If a testnet wants empty accounts with storage, the BAL-derived root path cannot represent EIP-161 deletion and must fall back to the canonical overlay.
Long-term remediation
Do not pretend the BAL encodes EIP-161 deletion. Either reject such pre-state at genesis or disable the BAL-derived root on networks that allow it.
Expected-safe retest
Mainnet-shaped state still matches. A fixture that violates EIP-7523 is rejected or takes the serial root path. Do not require the BAL path to encode an unrepresentable deletion.
Evidence: E11 info_decode_probe · EIP-7523 · EIP-7610
paradigmxyz / reth · HACK-RETH-09
9. Received BAL is decoded before the item bound; nonce lists are unbounded
Affected
reth crates/engine/tree/src/tree/payload_validator.rs:586-596
reth .../bal/execute.rs:231-247
Why this severity
Rated informational. DecodedBal::from_rlp_bytes allocates the full list before validate_gas_limit. The bound counts addresses and storage keys only; balance_changes, nonce_changes and code_changes are bounded by the JSON-RPC body. JWT-authenticated CL path.
Reachability. Any authenticated Engine caller. Not a public P2P message.
Prerequisites
A CL (or a holder of the Engine JWT) sends a payload whose BAL has a huge nonce_changes list on one address.
Impact
CPU and memory on the Engine path before the item bound. info_decode_probe: 10_000 nonce_changes, total_bal_items=1, validate_gas_limit(30_000_000)=Ok. The hash compare still rejects a non-canonical list after execution.
What is wrong
payload_validator.rs:586-588 decode, :590-596 validate_gas_limit. F-01 counts addresses and storage keys. convert_alloy_to_revm_bal copies again.
Exploit scenario
An authenticated CL sends a BAL with 10_000 nonce_changes on one address. Item count is 1. Decode and convert allocate the lists. Execution then rebuilds a canonical list and the hash compare fails if those entries are not produced.
Observation confidence and limits
Evidence class: Decode probe. Not a measured Engine RPC DoS; no reth binary.
How to reproduce
- 1info_decode_probe.rs: 10_000 nonce_changes, total_bal_items=1, validate_gas_limit Ok.
586:596:reth/.../payload_validator.rs
let decoded_bal =
ensure_ok!(input.try_decoded_access_list().map_err(BlockAccessListDecodeError::new))
.map(Arc::new);
if let Some(decoded_bal) = decoded_bal.as_deref() {
ensure_ok!(decoded_bal
.as_bal()
.validate_gas_limit(input.gas_limit())
.map_err(ConsensusError::from));
}
Bound runs after full decode. Nonce/balance/code lists are outside F-01.
Short-term remediation
Count nonce, balance and code entries in the bound, or cap those list lengths before convert. Prefer rejecting before convert_alloy_to_revm_bal.
Long-term remediation
The Engine JWT already limits who can send this. The remaining issue is that F-01 as implemented does not bound the lists the workers will walk.
Expected-safe retest
A payload with 10_000 nonce_changes on one address must fail the bound or a new list-length cap before convert. A canonical list at the gas-limit item cap must still pass.
Evidence: E11 info_decode_probe
paradigmxyz / reth · HACK-RETH-10
10. Block builder does not check the BAL item bound on the block it built
Affected
reth crates/ethereum/payload/src/lib.rs:451-501
reth crates/evm/evm/src/execute.rs:515-520
Why this severity
Rated informational. default_ethereum_payload finishes with BasicBlockBuilder::finish, which encodes and hashes the built BAL and never calls validate_gas_limit. Validators including reth check the rebuilt list, so a violating block would be built and then rejected. Unreachable above about 4.2M gas (SPEC-04).
Reachability. Builder path only, and only at gas limits where ITEM_COST * items can exceed the bound.
Prerequisites
A payload build with a gas limit low enough that a legal tx set can overflow the BAL item bound. SPEC-04: the buffer argument holds only above about 4M gas.
Impact
reth would build a block every validator, including itself, rejects. No accepted invalid block. flashbots_validateBuilderSubmissionV6 is a separate unauthenticated path and is not used to raise this to Low.
What is wrong
Grep of validate_gas_limit in reth: payload_validator, flashbots validation, execution stage. Not in BasicBlockBuilder::finish.
Exploit scenario
A builder with a sub-4.2M gas limit includes enough BAL items to exceed 7928-20. Local finish succeeds. Engine validation then rejects on the rebuilt-list bound.
Observation confidence and limits
Evidence class: Source grep. No built block at a sub-4.2M gas limit was executed.
How to reproduce
- 1Read BasicBlockBuilder::finish at execute.rs:515-520. Grep validate_gas_limit in reth. Confirm payload_validator.rs:1365-1368 checks the rebuilt list.
515:520:reth/crates/evm/evm/src/execute.rs
// BasicBlockBuilder::finish encodes and hashes the built BAL
// no validate_gas_limit
Validator-side check remains. Builder can emit a block that will not stick.
Short-term remediation
Call Bal::validate_gas_limit in BasicBlockBuilder::finish and fail the payload build when the bound is exceeded.
Long-term remediation
Unreachable on mainnet-shaped gas limits per SPEC-04. Still worth the check so a devnet with a tiny gas limit fails at build rather than at every validator.
Expected-safe retest
A constructed block over the item bound must fail finish. A mainnet-gas-limit block must still build.
Evidence: E12 source grep validate_gas_limit
paradigmxyz / reth · HACK-RETH-11
11. Structural BAL rules are enforced only through the rebuilt hash
Category
State & Correctness
Affected
revm crates/state/src/bal/account.rs:117-142
revm crates/state/src/bal/writes.rs:18-21
Why this severity
Rated informational. Sorting, uniqueness, one-list-per-slot, one entry per index, and index <= n+1 are not checked when a received BAL is decoded or converted. The rebuilt list is canonical and a structural lie fails the header hash compare after execution. Verdict is correct. Cost is one execution per invalid block.
Reachability. Any builder. Fail-closed after execution.
Prerequisites
A received BAL that is unsorted, has a slot in both storage_changes and storage_reads, or repeats an index.
Impact
Workers may execute against a non-canonical oracle. Canonical rebuild differs, hash compare fails, payload INVALID. No accepted invalid block. No CPU DoS beyond one execution was measured.
What is wrong
clone_from_alloy folds storage_changes and storage_reads into one BTreeMap (a slot in both becomes reads-only, write dropped). BalWrites::new sorts. Duplicate addresses collapse in AddressIndexMap. info_decode_probe: unsorted addresses convert Ok; slot-in-both becomes reads-only.
Exploit scenario
A builder sends unsorted addresses or a slot in both lists. Conversion succeeds. Execution produces a canonical list. Hash compare rejects. The node has already executed the block.
Observation confidence and limits
Evidence class: Conversion probe. Parallel-path soundness still holds because workers only read indices below their own and the outer hash compare is mandatory.
How to reproduce
- 1info_decode_probe.rs: unsorted addresses convert Ok and sort on into_alloy_bal. A slot in both storage_changes and storage_reads becomes reads-only, write dropped.
117:142:revm/crates/state/src/bal/account.rs
// clone_from_alloy folds storage_changes and storage_reads into one BTreeMap
Structural rules are not a decode error. They are a post-execution hash mismatch.
Short-term remediation
Optionally reject unsorted or duplicate-slot lists at convert_alloy_to_revm_bal to save an execution. Keep the hash compare as the consensus gate.
Long-term remediation
Do not skip the hash compare. Early structural reject is an optimization, not a second source of truth.
Expected-safe retest
Unsorted and slot-in-both payloads still INVALID. A canonical list still VALID. Early reject, if added, must not change the VALID set.
Evidence: E11 info_decode_probe · parallel-path soundness in 03-impl-map