Auditing your own system? Hackerbane runs blockchain infrastructure audits. Request an audit.
H
Hackerbane
HACK-AR-2026-RETH-EIP-7928
R1 · 20 September 2026
Cumulative security assessment

reth EIP-7928 BALs

At commit 1136e114 we reviewed paradigmxyz/reth Amsterdam block-level access lists (engine tree, eth/71 wire, alloy-evm system calls, revm BalWrites) against EIP-7928, the Engine API, EELS, and geth blocktest. This R1 baseline tests whether a received BAL, empty system predeploys, and the Engine timestamp contract still leave a safe consensus surface. Eleven findings remain open; evidence through 20 September 2026.

0Critical
1High
1Medium
2Low
7Informational
Review effort
Protocol review 19-20 September 2026
Spec matrix reused from the EIP-7928 audit
Review period
19 September 2026
to 20 September 2026
Prepared for
paradigmxyz / reth
Amsterdam BAL surface
Prepared by
Hackerbane
Findings
11 recorded
11 outstanding
Review commit
1136e1140023de2468e395a2633cf90cd3d03780
Report
HACK-AR-2026-RETH-EIP-7928
R1
Hackerbane · reth EIP-79281HACK-AR-2026-RETH-EIP-7928 R1
paradigmxyz / reth · 20 September 2026

Contents

  1. 01 Executive summaryVerdict, effort, limitations
  2. 02 Risk overview11 findings
  3. 03 Scope and methodology7 components
  4. 04 Scope boundaries and test treatment1 table
  5. 05 Security invariants and how they were assessed1 table
  6. 06 System surface3 tables
  7. 07 Coverage and what remains3 tables
  8. 08 Conditions for a defensible release decision2 tables
  9. 09 Codebase maturity8 dimensions
  10. 10 Summary of findings11 recorded
  11. 11 Detailed findings11 write-ups
  12. 12 Additional follow-through items4 not counted
  13. 13 Remediation priorities3 tiers
  14. 14 Retest record0 verified
  15. 15 Appendix A: Evidence register13 series
  16. 16 Appendix B: What held up4 controls
  17. 17 Appendix C: Reconciliation and traceable records5 tables
  18. 18 Appendix D: Document control and termsR1
paradigmxyz / reth · 20 September 2026

Executive summary

One outstanding High requires a code check before Amsterdam activation on any chain that might omit system predeploys; 11 of 11 recorded findings remain open.
11 findings recorded · 11 outstanding · 0 verified fixed · review 19-20 September 2026
11
Findings recorded
0
Critical
1
High
1
Medium
2
Low
7
Informational
0
Verified fixed

reth at 1136e114 does not split from EELS on any input reachable on a correctly configured Amsterdam chain. The 74 EIP-7928 rows, 12 Engine API rows and 29 spec-audit edge cases that were re-traced agree with EELS on the verdict and the BAL bytes, except where this report records a named divergence. The High is empty system predeploys (HACK-RETH-01): alloy-evm 0.39.0 never checks that the 7002, 7251 and 8282 contracts have code, so a chain that activates the fork without them accepts blocks EELS and geth reject. That rating is conditional on that genesis; each finding states its prerequisites. Mainnet and any chain that deployed those contracts before the fork do not meet them.

Hackerbane reviewed paradigmxyz/reth at 1136e1140023de2468e395a2633cf90cd3d03780. Report date is 20 September 2026. Scope is the Amsterdam BAL surface listed in section 3. Signing, snap-sync catch-up, eth_getBlockAccessList formatting, tracing, and era export were out of scope. The work reused the EIP-7928 spec matrix (EIP d2a64c2d, Engine API 465d1b98, EELS d4c28bfe7) and added implementation mapping, line review, probes, libFuzzer, geth blocktest, and reth package tests.

The findings concentrate in two patterns. The first is a missing validity check at the system-call boundary: empty 7002/7251/8282 code is Success in revm and the block continues (HACK-RETH-01). The second is that several BAL rules are true only after a rebuilt-hash compare: same-index netting is wrong on a double commit the executor does not perform (HACK-RETH-02), the eth/71 decoder has no item cap (HACK-RETH-03), and structural BAL rules are not checked at decode (HACK-RETH-11). Engine newPayloadV5 / forkchoiceUpdatedV4 miss a -38005 arm (HACK-RETH-04).

Parts of the design held up, with limits worth stating. Parallel workers execute against the received BAL before its hash is checked, and the rebuilt-list hash compare still rejects a lie; workers only read entries below their own index. Spec alignment on the 74 EIP rows holds except the named divergences. Passphrases and shell injection are not in this tree. Set against that, hive consume-engine and a live reth engine_newPayloadV5 were not run, and HACK-RETH-02 was not replayed as sealed BAL bytes through the block executor.

Limitations

This was a time-boxed review of the Amsterdam BAL surface against a single reth commit and the pinned crates. It is a best-effort assessment and no review of this shape can be exhaustive. Testing used EELS, EEST fill, crate probes, libFuzzer, geth evm blocktest 1.17.6 a5b90d2a, and reth package tests on throwaway Vultr hosts. No live chain, no reth node binary, no hive consume-engine, and no mainnet key were exercised. Besu, nethermind, and erigon were not run on the empty-predeploy fixture. Several ratings are conditional on genesis or on a future executor reorder, and those conditions are stated in each finding's prerequisites.

paradigmxyz / reth · 20 September 2026

Risk overview

11findings
Critical0
High1
Medium1
Low2
Informational7
Undetermined0

Counts exclude 0 withdrawn findings. Every number on this page is computed from the finding records; none is typed by hand. I-01 (missing BalWrites tests) is folded into HACK-RETH-02 and is not a twelfth card.

Severity against difficulty

Severity is what could happen. Difficulty is how hard the issue is to reach. They are scored separately because an easy low can outrank a hard high, and a single number hides that.

Severity ↓ / Difficulty →LowMediumHighUndeterminedTotal
High--1-1
Medium--1-1
Low11--2
Informational61--7

Findings by category

Consensus
1
State & Correctness
3
Availability
1
Input Validation
2
Encoding
2
Documentation
1
Configuration
1
paradigmxyz / reth · 20 September 2026

Scope and methodology

What was reviewed

ComponentPathRevision
Execution clientparadigmxyz/reth engine tree, payload validator, eth-wire-types, ethereum payload, consensus1136e1140023de2468e395a2633cf90cd3d03780
EVM / BAL builderbluealloy/revm state, database-interface, handler, interpreter4535a5786fb90b25eebe2d5bb49d3954f1e6d546
Block executor / system callsalloy-evm 0.39.0 crates.iochecksum 7b6bd5f7e5ce9858bac99275e3f548c3b63bb3e5806da0142dc0b2f518d3ec4a
BAL types and RLPalloy-eip7928 0.4.10 crates.iochecksum 1cb19c9d53b507960f649e5689f7098e556696023fe1b57b67f2181ed54bc5b7
EIP textEIP-7928d2a64c2d
Engine APIexecution-apis amsterdam.md465d1b98
ReferenceEELS forks/amsterdam, EEST filld4c28bfe7

What was actually built and run

A commit identifies what was written; it does not identify what was executed. The tree hashes and artifact digests below pin the state the findings were produced against.

RepositoryCommitTree
reth1136e1140023de2468e395a2633cf90cd3d037808300fa83216a67cf0c44af367eb40e9a0b333fee
revm4535a5786fb90b25eebe2d5bb49d3954f1e6d5469bb9576a8b4fcc0d3f75784bdfddf5e031effcd7
ArtifactSHA-256 / checksum
reth Cargo.lockcc123692864221a97cf1bc8ceb95e19a9086a3e64d4eab2c4772d2bff52e061f
alloy-evm 0.39.0 crates.io7b6bd5f7e5ce9858bac99275e3f548c3b63bb3e5806da0142dc0b2f518d3ec4a
alloy-eip7928 0.4.10 crates.io1cb19c9d53b507960f649e5689f7098e556696023fe1b57b67f2181ed54bc5b7
geth evm 1.17.6-unstablea5b90d2a (2026-09-18)

What was not reviewed

Snap-sync BAL catch-up (crates/snap-sync/, about 2,500 lines) beyond the decode bound. RPC eth_getBlockAccessList result formatting. Tracing / debug_ endpoints. Era export. Consensus-layer SSZ pruning (7928-64). Live mainnet. A reth node binary and hive consume-engine. Besu, nethermind, and erigon. Those absences are also listed in coverage.

Method

System overview

reth executes a received Amsterdam block on two paths. Worker threads execute transactions speculatively against the received BAL as a state oracle before its hash is validated. A canonical State with with_bal_builder() commits the worker results in transaction order and rebuilds the BAL. The outer payload validator hash-compares the rebuilt BAL against the header. Soundness of that design against a lying builder was the central review question.

Trust model

The consensus client is trusted to send Engine methods that match the fork table. Peers are not trusted on eth/71 BAL bodies. A builder is not trusted on received BAL contents; the rebuilt hash is. System predeploys are assumed present on a correctly launched chain; HACK-RETH-01 is the case where that assumption fails. revm BalWrites is trusted to net one commit per index; HACK-RETH-02 is the case where a second commit arrives.

Reproduction environment

Local WSL: 32 cores, 11 GB RAM, about 6-13 GB disk. Vultr vc2-4c-8gb for geth blocktest; vhp-8c-16gb-amd, rustc 1.95.0, for reth package tests. Both instances destroyed after the run. No mainnet key or live fund was touched.

Engagement timeline

DateEvent
19 September 2026Review start (00-setup 22:05Z). Pins frozen at reth 1136e114.
20 September 2026EELS, EEST, geth, libFuzzer, reth cargo tests. Evidence cut-off for this R1.
paradigmxyz / reth · 20 September 2026

Scope boundaries and test treatment

The assessed product is reth's Amsterdam BAL implementation at the pinned commit, plus the alloy-evm, alloy-eip7928 and revm crates that commit pins. GitHub identity was used for versioning.

How each boundary was treated

BoundaryTreatment
Primary scopereth BAL engine path, eth/71 decoder, alloy-evm system calls, revm BalWrites, alloy-eip7928 types, Engine timestamp arms.
Dependency integrationEELS and geth used as oracles on the empty-predeploy fixture. No full independent audit of geth, EELS, or alloy is claimed beyond the cited paths.
Permitted test settingOwned crate probes, EEST fill, libFuzzer, throwaway cloud VMs, disposable fixtures. No public-network peering.
ExcludedSnap-sync catch-up, RPC formatting, tracing, era export, hive, live Engine RPC, other ELs, host security.
Working-tree treatmentAudit vectors and this report live outside the frozen reth tree. No product remediation was performed for this report.
paradigmxyz / reth · 20 September 2026

Security invariants and how they were assessed

Requirements were taken from EIP-7928, the Engine API amsterdam.md, and EELS process_checked_system_transaction / apply_body. The threat model includes a lying builder, a malicious eth/71 peer, a mis-versioned CL, and a genesis that omits system contracts. Those prerequisites are not interchangeable.

Requirement / invariantAssessment resultRelated findings
R01 · Empty 7002/7251/8282 code makes every subsequent block invalid.Failed on alloy-evm 0.39.0. EELS InvalidBlock. geth empty system contract. reth-shaped executor BLOCK_OK.01
R02 · Rebuilt BAL hash matches the header; a lying received list cannot commit.Held on the traced path (validation.rs hash compare). Workers read only index < current.-
R03 · Same-index writes net against the pre-index value.Failed on the primitive; unreachable on alloy-evm 0.39.0 one-commit-per-index.02
R04 · eth/71 BlockAccessLists decode is bounded by the requested count.Failed: 64.2x RSS on a 10 MiB 0xc0 message. Serve-side 1024 cap is not mirrored.03
R05 · Amsterdam Engine methods return -38005 outside the fork window.Failed for V5 payload and V4 attributes in the pre-Amsterdam window.04
R06 · Decode enforces uint32 index and n+1.Failed at decode; hash compare still rejects.05, 11
R07 · Item bound applies to received and built lists, including nonce/balance/code.Partial: received bound after full decode, addresses+storage only. Builder does not check.09, 10
R08 · A release can be reproduced against hive / live newPayload.Incomplete: crate tests and geth blocktest recorded. No reth binary, no hive.coverage
paradigmxyz / reth · 20 September 2026

System surface

BAL execution paths

PathEntryEvidence and limitation
Parallel BALpayload_processor/bal/execute.rs execute_block_inner; workers State::with_balSource review. Soundness against a lying builder via rebuilt hash. hive not run.
Serial validationpayload_validator.rs with_bal_builder_if; validate_post_executionSize bound and hash compare read. Live newPayload not sent.
System calls n+1alloy-evm eth/block.rs finish: 7002, 7251, 8282 deposit, 8282 exit, withdrawalsEmpty CacheDB probe BLOCK_OK. EELS/geth reject.
eth/71 BAL bodiesBlockAccessLists::decodeRSS probe 64.2x. libFuzzer 0 crashes.
Engine V5/V4/V6validate_payload_timestamp; engine_api.rs new_payload_v5, fork_choice_updated_v4If-chain probe. No live RPC.

Commit contract per index (alloy-evm 0.39.0)

IndexCommitsAccounts
02935 then 4788Disjoint
1..=nOne commit per transactionTx touched set
n+17002, 7251, 8282 deposit, 8282 exit, then one increment_balancesFour predeploys plus aggregated withdrawal recipients

Engine methods in scope

MethodPurpose
engine_newPayloadV5Amsterdam payload including blockAccessList bytes
engine_forkchoiceUpdatedV4Amsterdam attributes including slotNumber
engine_getPayloadV6Built envelope requires BAL bytes
paradigmxyz / reth · 20 September 2026

Coverage and what remains

Coverage records are not attestations that the intended invariants held. A report can be finalized with failures and limitations; an incomplete work package is not silently marked complete.

Work packageWork completedRemaining / disposition
Spec matrix74+12+8+7+5 rows mapped. 1 MISSING → HACK-RETH-04.Complete for the frozen EIP/Engine pins.
Line review11,344 primary lines; secondary hunks; 0 Needs Attention.Snap-sync still out of scope.
Empty predeploysEELS, EEST fill, geth blocktest, alloy-evm probe, fix precheck control.hive / live reth newPayload not run. Besu/nethermind/erigon not run.
BalWrites nettingA-F tests, libFuzzer crash, reachability dump dups=0.Sealed BAL through the block executor not run.
Wire decodeRSS 64.2x; libFuzzer 7.48M runs 0 crashes; 203+2 crate tests.-
Engine timestampIf-chain probe V5/V4 Ok in the hole.Live RPC not run.
reth package testswire-types, payload, consensus, engine-api, evm-ethereum, engine-tree (197+1 retried MDBX flake).Wrong crate name reth-ethereum-evm recorded as absent. Full workspace test not run.
Static / advisoryclippy revm-state + alloy-eip7928 clean. cargo-audit 0.22.2: RUSTSEC-2026-0185 quinn-proto (QUIC, not BAL).Not a BAL finding.

Recorded case totals by evidence series

SeriesCasesInterpretation
E01 alloy-evm probeempty / REVERT / precheck / BAL dumpBLOCK_OK vs BLOCK_ERR vs PRECHECK_ERR. dups=0.
E02 EELS apply_body1 fixtureInvalidBlock at 7002.
E03 EEST fill8 passed, 16 deselectedSYSTEM_CONTRACT_EMPTY.
E04 geth blocktestdeposit + exit, zero and nonzero balanceempty system contract; pass: true.
E05 BalWrites tests3 tests / sequences A-FHEAD fails A,B,F.
E06 BalWrites fuzzcrash at 596; panic-only 2,855,492Minimized 7 bytes.
E07-E09 wireRSS + cargo test + libFuzzer 7.48M64.2x; 0 crashes.
E10 timestamp4 if-chain casesV5/V4 hole is Ok.

Focused remaining test plan

Priority / areaConcrete remaining casesEvidence required for closure
P0 · Empty predeploys on a reth nodehive consume engine or engine_newPayloadV5 with the EEST deploy_after_fork payload.reth INVALID with a system-contract-empty mapped error, matching EELS/geth.
P1 · BalWrites as sealed BALPatched executor that double-commits, encode BAL, hash-compare against spec writer.Mismatch on A/B/F; match after the writes.rs fix.
P1 · Other ELsSame empty-predeploy fixture on besu, nethermind, erigon.Named verdicts, not assumed.
P2 · Live Engine timestampnewPayloadV5 at T-1 against a running reth.-38005 after the arm is added.
paradigmxyz / reth · 20 September 2026

Conditions for a defensible release decision

Amsterdam is not a live mainnet fork at this pin (MAINNET has no Amsterdam timestamp). The gates below are for any network that would run this commit as an EL after Amsterdam activation. No risk acceptance is recorded.

StageRequired outcomeRelated items
1 · Empty system contracts fail closedalloy-evm rejects the block when 7002/7251/8282 have no code. EEST deploy_after_fork passes on reth for the right reason.HACK-RETH-01
2 · Netting matches the spec if a second commit appearsBalWrites A/B/F match spec. Optional sealed-BAL round trip.HACK-RETH-02
3 · Wire decode cannot amplify past the request cap10 MiB 0xc0 message fails decode. 1024 items succeed.HACK-RETH-03
4 · Engine method versions match the fork tableV5/V4 pre-Amsterdam return -38005.HACK-RETH-04
5 · Verify a nominated binaryhive or live newPayload on the exact pin and lockfile.Coverage R08

Retest record fields to complete after fixes

Required fieldCurrent status
Remediation ownerNot nominated. Findings remain open.
Fixed commit and artifact hashesNot supplied.
Original reproduction now fails safelyNot tested on a fixed version.
Residual risk decisionNo acceptance recorded.
Release recommendationDo not use this pin as the only EL on a network that might omit system predeploys. On a correctly configured chain the High is not reached.
paradigmxyz / reth · 20 September 2026

Codebase maturity

Each dimension is graded on its own, because a single overall score hides where to invest. Not applicable is a real result: it records that the dimension was examined and does not exist in this system.

DimensionAssessmentResult
Consensus validity vs EELSAligned on the traced matrix except empty system contracts. Parallel BAL path fail-closes on hash compare.Satisfactory
System-contract prechecksMissing in alloy-evm 0.39.0. Dominant High. alloy-rs/evm#400 covers 8282 only and is unmerged into this pin.Weak
BAL netting primitiveWrong on double same-index commit; unreachable at HEAD. Tests A/B/F missing in revm-state.Moderate
P2P decode boundseth/71 decoder has no item cap. Serve-side 1024 exists. Measured 64.2x, not OOM.Moderate
Engine API fork tablePattern matches prior forks and misses the newest -38005 arms.Moderate
Decode-time structural rulesDeferred to hash compare. Correct verdict, extra execution.Moderate
Supply chain (BAL crates)Pins and checksums verified. cargo-audit hit is quinn-proto, not BAL.Satisfactory
Authentication / keysNo operator API or key custody in this surface. Engine JWT assumed.Not applicable
paradigmxyz / reth · 20 September 2026

Summary of findings

All 11 recorded findings, in severity then priority order. Titles link to the full write-up.

IDFindingCategorySeverityDifficultyPriStatus
HACK-RETH-01System calls accept a block when a 7002, 7251 or 8282 predeploy has no codeConsensusHIGHHighP0Open
HACK-RETH-02BalWrites nets a second same-index commit against the wrong baselineState & CorrectnessMEDIUMHighP1Open
HACK-RETH-03BlockAccessLists wire decoder allocates per item with no count boundAvailabilityLOWLowP1Open
HACK-RETH-04newPayloadV5 and forkchoiceUpdatedV4 accept pre-Amsterdam timestampsInput ValidationLOWMediumP2Open
HACK-RETH-05BlockAccessIndex is u64 while the spec type is uint32EncodingINFORMATIONALLowP2Open
HACK-RETH-06Withdrawal increment comment says zero withdrawals are skippedDocumentationINFORMATIONALLowP2Open
HACK-RETH-07ExecutionPayloadV4 from_block_unchecked fills blockAccessList with the hashEncodingINFORMATIONALLowP2Open
HACK-RETH-08BAL-derived state root skips accounts that do not change the state rootState & CorrectnessINFORMATIONALMediumP2Open
HACK-RETH-09Received BAL is decoded before the item bound; nonce lists are unboundedInput ValidationINFORMATIONALLowP2Open
HACK-RETH-10Block builder does not check the BAL item bound on the block it builtConfigurationINFORMATIONALLowP2Open
HACK-RETH-11Structural BAL rules are enforced only through the rebuilt hashState & CorrectnessINFORMATIONALLowP2Open
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

Severity
High
Difficulty to reach
High
Category
Consensus
Finding ID
HACK-RETH-01
Remediation priority
P0
Status
Open
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
  1. 1Run vectors/eels_empty_predeploy.py against execution-specs forks/amsterdam d4c28bfe7. Expect BLOCK_ERR at 7002.
  2. 2Fill EEST tests/amsterdam/eip8282_builder_execution_requests/test_contract_deployment.py -k deploy_after_fork (8 passed). Fixtures carry expectException SYSTEM_CONTRACT_EMPTY.
  3. 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.
  4. 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

Severity
Medium
Difficulty to reach
High
Category
State & Correctness
Finding ID
HACK-RETH-02
Remediation priority
P1
Status
Open
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
  1. 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.
  2. 2Run libFuzzer vectors/fuzz_bal_writes bal_writes against revm 4535a578. Crash at 596 execs. Minimized 7 bytes as above.
  3. 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

Severity
Low
Difficulty to reach
Low
Category
Availability
Finding ID
HACK-RETH-03
Remediation priority
P1
Status
Open
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
  1. 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.
  2. 2Same harness on BlockBodies: 24.2x, 242 MB, 0.11 s.
  3. 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

Severity
Low
Difficulty to reach
Medium
Category
Input Validation
Finding ID
HACK-RETH-04
Remediation priority
P2
Status
Open
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
  1. 1Run vectors/l02_timestamp_probe.rs. Osaka at t=0, Amsterdam at t=1000. V5 Payload t=999 -> Ok. V4 PayloadAttributes t=999 -> Ok.
  2. 2Controls: V5 Payload t=0 with Osaka at 10000 -> UnsupportedFork. V6 Payload t=999 -> UnsupportedFork.
  3. 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

Severity
Informational
Difficulty to reach
Low
Category
Encoding
Finding ID
HACK-RETH-05
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Low
Category
Documentation
Finding ID
HACK-RETH-06
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Low
Category
Encoding
Finding ID
HACK-RETH-07
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Medium
Category
State & Correctness
Finding ID
HACK-RETH-08
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Low
Category
Input Validation
Finding ID
HACK-RETH-09
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Low
Category
Configuration
Finding ID
HACK-RETH-10
Remediation priority
P2
Status
Open
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
  1. 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

Severity
Informational
Difficulty to reach
Low
Category
State & Correctness
Finding ID
HACK-RETH-11
Remediation priority
P2
Status
Open
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
  1. 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

paradigmxyz / reth · 20 September 2026

Additional follow-through items

Items worth acting on for which no exploitable consequence was established in this R1. They are deliberately not counted as findings and do not appear in any severity total, because inflating a count with items that were not demonstrated would make every other number in this report harder to trust.

HACK-OBS-01 · hive consume-engine and live newPayloadV5 were not run

No reth node binary was built. Docker/hive was missing on the review host. HACK-RETH-01 is established on EELS, EEST, geth blocktest, and alloy-evm EthBlockExecutor. It is not established as a JSON-RPC Engine response from reth. Action. Run hive consume engine, or engine_newPayloadV5, on the EEST deploy_after_fork payload at this pin.

Evidence: E13 00-setup tooling table · reth binary missing

HACK-OBS-02 · HACK-RETH-02 was not replayed as sealed BAL bytes

The netting bug is demonstrated on BalWrites and libFuzzer. A patched double-commit executor that emits encoded BAL bytes and hash-compares against the spec writer was not run. Action. Add that round trip before calling the Medium reachable.

Evidence: E05 E06 · coverage remaining P1

HACK-OBS-03 · besu, nethermind, and erigon were not run on the empty-predeploy fixture

The second EL in this report is geth. Naming those other clients as agreeing would be an assumption. Action. Run the same EEST fixtures if a split-risk claim needs three EL oracles.

Evidence: E04 geth only

HACK-OBS-04 · snap-sync BAL catch-up remains out of scope

About 2,500 lines under crates/snap-sync/ were not reviewed beyond noting the decode bound. Action. Separate review if snap-sync BAL is enabled on a network.

Evidence: 00-setup out of scope

paradigmxyz / reth · 20 September 2026

Remediation priorities

Priority is derived from severity and difficulty together, so an easily reached low is scheduled ahead of a hard-to-reach high when the path is live. HACK-RETH-01 stays P0 because fork activation on a misconfigured genesis is a one-time split. HACK-RETH-02 is P1 because the primitive is wrong and the executor does not currently reach it.

P0 · 1P1 · 2P2 · 8

P0: Before any Amsterdam network that might omit predeploys

IDFindingSeverityStatus
HACK-RETH-01System calls accept a block when a 7002, 7251 or 8282 predeploy has no codeHIGHOpen

P1: Before relying on the BAL primitive or eth/71 BAL sync

IDFindingSeverityStatus
HACK-RETH-02BalWrites nets a second same-index commit against the wrong baselineMEDIUMOpen
HACK-RETH-03BlockAccessLists wire decoder allocates per item with no count boundLOWOpen

P2: Scheduled remediation

IDFindingSeverityStatus
HACK-RETH-04newPayloadV5 and forkchoiceUpdatedV4 accept pre-Amsterdam timestampsLOWOpen
HACK-RETH-05BlockAccessIndex is u64 while the spec type is uint32INFORMATIONALOpen
HACK-RETH-06Withdrawal increment comment says zero withdrawals are skippedINFORMATIONALOpen
HACK-RETH-07ExecutionPayloadV4 from_block_unchecked fills blockAccessList with the hashINFORMATIONALOpen
HACK-RETH-08BAL-derived state root skips accounts that do not change the state rootINFORMATIONALOpen
HACK-RETH-09Received BAL is decoded before the item bound; nonce lists are unboundedINFORMATIONALOpen
HACK-RETH-10Block builder does not check the BAL item bound on the block it builtINFORMATIONALOpen
HACK-RETH-11Structural BAL rules are enforced only through the rebuilt hashINFORMATIONALOpen
paradigmxyz / reth · 20 September 2026

Retest record

Verification is recorded in this document rather than sold as a separate report. Each row states what a passing retest must demonstrate, and what was observed when it ran.

0 retested · 11 awaiting fixes · 0 with no retest expectation recorded.

IDWhat a passing retest must showOutcome
HACK-RETH-01Empty-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.NOT TESTED
awaiting upstream fixes
HACK-RETH-02HEAD 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.NOT TESTED
awaiting upstream fixes
HACK-RETH-03A 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.NOT TESTED
awaiting upstream fixes
HACK-RETH-04Chain 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.NOT TESTED
awaiting upstream fixes
HACK-RETH-05RLP of 2^32 and u64::MAX must fail decode. A valid uint32 index at n+1 must still succeed.NOT TESTED
awaiting upstream fixes
HACK-RETH-06Zero-amount withdrawal recipient remains in the rebuilt BAL. Comment matches the loop.NOT TESTED
awaiting upstream fixes
HACK-RETH-07getPayloadV6 still emits decodable BAL bytes. A test that from_block_unchecked is unused on the V6 path remains green.NOT TESTED
awaiting upstream fixes
HACK-RETH-08Mainnet-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.NOT TESTED
awaiting upstream fixes
HACK-RETH-09A 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.NOT TESTED
awaiting upstream fixes
HACK-RETH-10A constructed block over the item bound must fail finish. A mainnet-gas-limit block must still build.NOT TESTED
awaiting upstream fixes
HACK-RETH-11Unsorted and slot-in-both payloads still INVALID. A canonical list still VALID. Early reject, if added, must not change the VALID set.NOT TESTED
awaiting upstream fixes
paradigmxyz / reth · 20 September 2026

Appendix A: Evidence register

Every finding cites this register by identifier.

IDSeriesSummaryKind
E01alloy-evm empty-predeploy probec01_empty_predeploy_probe.rs on alloy-evm 0.39.0. BLOCK_OK / REVERT BLOCK_ERR / PRECHECK_ERR. BAL dump dups=0. SHA-256 2818d7bdbc9bce6ce5c759bfc31e4ea114cfb73a821877400bc254d9c24ef3c4harness
E02EELS apply_bodyeels_empty_predeploy.py. InvalidBlock at 7002. SHA-256 f12494ac1bd97e9896ec5ea44033c3218fac20bc4fd5a6a414b7b25b4635833doracle
E03EEST filldeploy_after_fork 8 passed. SYSTEM_CONTRACT_EMPTY.fixture
E04geth blocktestevm 1.17.6 a5b90d2a. empty system contract; pass true. SUMMARY SHA-256 9701981b511052c70146f5063e2545d1f85b015194d02878850d71beafc263edoracle
E05BalWrites testsvectors/bal_netting_fix. SHA-256 2f09a18e0d31df8c817ee73b07830f58e286e1f03197fcdd09d8b9eddf7943c7harness
E06BalWrites libFuzzerCrash at 596 execs. Panic-only 2,855,492 / 0 panics.fuzz
E07Wire RSS probe64.2x / 657 MB / 0.33 s. BlockBodies 24.2x.harness
E08reth cargo testVultr rustc 1.95.0 pin 1136e114. SUMMARY SHA-256 97eb2504de7e9c3227800c3d1bbe40d2abae4f4f0bbe4b1706a8c4ce2acecda4transcript
E09Wire libFuzzerBlockAccessLists::decode 7,483,083 runs, 0 crashes. Bal::decode 14,370,072 runs, 0 crashes.fuzz
E10Timestamp probel02_timestamp_probe.rs. V5/V4 hole is Ok.harness
E11info_decode_probeu64 index, nonce_changes unbounded, unsorted, slot-in-both, changes_state_root.harness
E12Source grepfrom_block_unchecked; validate_gas_limit call sites; BalWrites::update callers.analysis
E13Setup / RUNLOG00-setup.md SHA-256 6ef646365ed783e48740b3cb4a5e21294d2d26d507421a47118b183ac517b4eb. RUNLOG SHA-256 23db246b6156e469302c68e8da81ef4a38396cff49d33313b19252f468dab39fanalysis
paradigmxyz / reth · 20 September 2026

Appendix B: What held up

Controls that were examined and did not produce a finding. Recorded because “we found four things” and “we looked at fourteen and four were wrong” are different statements.

Rebuilt BAL hash compare rejects a lying received list

Workers execute against the received BAL as an oracle. The canonical path rebuilds the list and compares hashes in consensus validation. A lie fails closed after execution. HACK-RETH-11 records that structural rules are not checked earlier; it does not undo the compare.

Workers only read entries below their own index

revm BalWrites::get returns the last write with index strictly less than the current index. A worker cannot read a later transaction's writes from the received list. That is the property that makes speculative execution compatible with the hash compare.

Spec alignment on the traced EIP-7928 matrix

Aside from the named divergences, the 74 EIP rows and the 29 spec-audit edge cases that were re-traced match EELS on verdict and BAL bytes. reth follows EELS on the 13 open spec-text ambiguities (report of the spec audit, readings in the prior HB-AR-2026.10 draft).

geth and EELS agree on empty system contracts

The High is a reth/alloy-evm miss relative to two independent oracles, not a three-way disagreement. EEST deploy_after_fork expects SYSTEM_CONTRACT_EMPTY. That is how HACK-RETH-01 was caught rather than assumed.

paradigmxyz / reth · 20 September 2026

Appendix C: Reconciliation and traceable records

Counting treatment

CategoryCountCounting treatment
Recorded findings11Cover tiles, chapter 2, chapter 10, chapter 11.
Folded test-gap row (I-01)1Absorbed into HACK-RETH-02. Not a twelfth card.
Follow-through observations4Outside severity totals.
Spec-text findings (prior audit)13EIP wording. Not reth defects. Listed in the spec audit.
cargo-audit RUSTSEC-2026-0185 quinn-proto1QUIC stack. Not a BAL finding. Not in the 11.

Finding reconciliation against the working papers

Working IDRetained subjectCurrent destination
C-01Empty system predeploysHACK-RETH-01 High
H-01BalWrites same-index nettingHACK-RETH-02 Medium
L-01eth/71 per-item allocHACK-RETH-03 Low
L-02V5/V4 timestamp armsHACK-RETH-04 Low
I-01Missing same-index testsFolded into HACK-RETH-02
I-02 … I-08Index width, comment, V4 helper, EIP-7523, decode order, builder bound, structural via hashHACK-RETH-05 … HACK-RETH-11

Evidence index with artifact hashes

IDArtifactSHA-256
E01c01_empty_predeploy_probe.rs2818d7bdbc9bce6ce5c759bfc31e4ea114cfb73a821877400bc254d9c24ef3c4
E02eels_empty_predeploy.pyf12494ac1bd97e9896ec5ea44033c3218fac20bc4fd5a6a414b7b25b4635833d
E04geth SUMMARY.txt9701981b511052c70146f5063e2545d1f85b015194d02878850d71beafc263ed
E04deposit blocktest.out46c91ea37c334dbc4a3b577c4a1081a0eac23ccef6a0920847bf3b93fceda8b6
E04exit blocktest.oute4468836a72b1aac2c25c7d8d484e9a8713903bfcd4258f355b4ed770d12acd3
E05bal_netting_fix/src/lib.rs2f09a18e0d31df8c817ee73b07830f58e286e1f03197fcdd09d8b9eddf7943c7
E08reth_cargo_test/SUMMARY.txt97eb2504de7e9c3227800c3d1bbe40d2abae4f4f0bbe4b1706a8c4ce2acecda4
E13RUNLOG.md23db246b6156e469302c68e8da81ef4a38396cff49d33313b19252f468dab39f
-reth Cargo.lockcc123692864221a97cf1bc8ceb95e19a9086a3e64d4eab2c4772d2bff52e061f
paradigmxyz / reth · 20 September 2026

Appendix D: Document control and terms

Version history

VersionDateChangeAuthor
R120 September 2026First cumulative baseline in this format. All findings open; no fixes verified.Hackerbane

Distribution

This document reports what was observed against the revisions named in Scope. Findings reflect that revision.

References

Terms

This assessment was performed by Hackerbane against the revisions named in Scope, within the effort stated on the cover. It reports what was observed. It is evidence of a time-boxed review and is not a certification, a warranty, or a statement that the system is free of defects. Findings reflect the reviewed revision; code changed after that revision was not examined.

Generated for print on 20 September 2026 from 11 validated finding records. ASCII apostrophes only.

The client is written in Rust. Rust smart contract audit.

hackerbane.com · hello@hackerbane.com · HACK-AR-2026-RETH-EIP-7928 R1