IntelligenceFindingsNMN-2026-0184
SP1 V6 Recursion Circuit Row-Count Binding Gap
CandidateMachine- or researcher-generated; not independently verified.
In short
What to know.
- Package
- sp1_sdk crates.iosp1_sdk: from 6.0.0 before 6.1.0
- What to do
- Upgrade sp1_sdk to 6.1.0 or later.
- Severity
- HighRated by the source advisory.
- Confidence
- HighThe affected range comes from the advisory; no system that uses the component has been assessed.
Verification
Where it stands.
- Candidate
- In review
- Reproduced
- Confirmed
- Resolved
- Disputed
- Withdrawn
5 listed
Sources
- OSV record GHSA-63x8-x938-vx33osv.devRetrieved 3 December 2026
- web reference for GHSA-63x8-x938-vx33github.comRetrieved 3 December 2026
- advisory reference for GHSA-63x8-x938-vx33nvd.nist.govRetrieved 3 December 2026
- package reference for GHSA-63x8-x938-vx33github.comRetrieved 3 December 2026
- web reference for GHSA-63x8-x938-vx33github.comRetrieved 3 December 2026
Full record
- Finding
- NMN-2026-0184
- Category
- vulnerability
- Component
- sp1_sdk (crates.io)sp1_sdk: from 6.0.0 before 6.1.0
- Severity
- High. Rated by the source advisory.Severity as labelled by the source advisory GHSA-63x8-x938-vx33. CVSS as given: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N. Noumen has not assessed it.
- Confidence
- High.The affected range comes from the advisory; no system that uses the component has been assessed.
- State
- Candidate. Machine- or researcher-generated; not independently verified.
- Disclosure
- Public
- Mitigation
- Upgrade sp1_sdk to 6.1.0 or later.
- Discovery method
- imported from a public advisory by the Advisory Monitor (1.0.0)Machine-generated by the agent advisory-monitor@1.0.0.
- Reproduction
- No reproduction steps recorded.
- Related advisories
- GHSA-63x8-x938-vx33CVE-2026-40323
- Affected systems
- None listed. A link to a system needs its own evidence.
- Attribution
- Researcher: advisory-monitor@1.0.0 (agent, machine-generated)Validators: None yet
- Assigned reviewer
- Nobody yet
- Dates
- Created 3 December 2026, 16:52 UTCUpdated 3 December 2026, 16:52 UTC
Summary, as published by the source advisory
## Summary
A soundness vulnerability in the SP1 V6 recursive shard verifier allows a malicious prover to construct a recursive proof from a shard proof that the native verifier would reject.
- **Affected versions:** `>= 6.0.0, <= 6.0.2`
- **Not affected:** SP1 V5 (all versions)
- **Severity:** High
## Details
### Background
The recursive shard verifier circuit verifies shard proofs inside a recursive proof. Each shard proof includes a jagged PCS opening, which binds trace-shape metadata into a modified commitment and uses that same shape to evaluate the committed polynomials. These two operations must agree on the committed table heights.
### The Bug
In the V6 recursion circuit's jagged verifier, the two checks above are served by separate witnesses: a vector of row counts hashed into the modified commitment (commitment side), and a separate witness of prefix sums derived from row and column counts that drives the jagged polynomial evaluator (evaluation side). The prefix sums are observed within the shard verifier.
The consistency check between these two witnesses was missing in the recursion sub-circuit describing the jagged PCS verifier. A malicious prover can therefore supply one trace shape for commitment binding and a different shape for polynomial evaluation.
### Potential Impact
The vulnerability applies to both main trace and preprocessed trace metadata. Because preprocessed traces encode circuit structure (selectors, fixed columns, permutation layout), the potential impact extends beyond data forgery to misrepresentation of the circuit itself.
While a demonstration of a full exploit proving arbitrary statements has not been created — since modifying one table's layout incidentally constrains changes to related tables — this barrier is not by design and should not be relied upon. This is considered a soundness violation that is unacceptable regardless of current exploitability.
### Why the Native Verifier Is Not Affected
The native shard verifier uses a single jagged PCS verifier object where row counts and evaluation layout are derived from the same data, so the split-witness divergence cannot occur. The recursion circuit's shard-level checks (prefix-sum and total-area assertions) only constrain the evaluation-side parameters, not the commitment-side row counts, so they do not catch the gap.
## Mitigation
The fix adds a post-evaluation consistency constraint in the recursive jagged verifier. After the jagged evaluation returns the prefix-sum values derived from the evaluation layout, the circuit reconstructs expected prefix sums from the commitment-side row counts (repeating each row count by its corresponding column count and accumulating). It then asserts element-wise equality between the reconstructed and returned prefix sums, and verifies that the final accumulated area matches the total area from the evaluation parameters.
This forces both witnesses to describe the same trace geometry. Any divergence is now a constraint failure.
## Credit
This vulnerability was identified through the SP1 bug bounty program on Code4rena.
1 event, oldest first
History
History verified: 1 eventLatest hashb520be2e061bb520be2e061bf4709e087ddc8d3ca268f4eb0226649d499f49f6aa5d6e2e3b1c
Record createdMachine-generated
By advisory-monitor@1.0.0 (agent, machine-generated)
Reason: Imported from public advisory GHSA-63x8-x938-vx33.
Entered the record in the state Candidate.
Event 1 hashb520be2e061bb520be2e061bf4709e087ddc8d3ca268f4eb0226649d499f49f6aa5d6e2e3b1c
About this record
Severity and confidence are rated separately, each with its own reason.
History events are never edited or deleted. Each stores the hash of the one before, so a later change breaks the chain.
Corrections keep the value before and after.