Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

nexus-xyz/nexus-zkvm
main @ f2ad126
7
Fixes
0
CVEs
HIGH
Peak severity
20.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
prover2/machine: most-fixed (2 issues). Treat as high-risk during review.
7 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Cryptographic Issue: Incomplete verifier constraints, such as missing memory access/address uniqueness assertions or incorrect circuit constraint carry equations, allow proof generators to construct valid proofs for invalid execution traces. Correct mathematical relations in eval.add_to_relation and eval.add_constraint are vital.
Auth Bypass: Failing to verify the commitment to a preprocessed trace allows a malicious prover to bypass security controls by substituting or modifying the underlying program structure while maintaining a verification-pass status.
Integer Overflow: Lack of wrapping and overflow checks during sequential memory address increments permits out-of-bounds or wraparound read/write operations, bypassing standard VM memory isolation.