CVE-2026-61618: CVE-2026-61618: Improper Input Validation of KZG Accumulator Limbs in snark-verifier
CVE-2026-61618: Improper Input Validation of KZG Accumulator Limbs in snark-verifier Vulnerability ID: CVE-2026-61618 CVSS Score: 6.9 Published: 2026-11-18 CVE-2026-61618 (GHSA-265x-v3qf-ff6p) is an improper input v
CVE-2026-61618: Improper Input Validation of KZG Accumulator Limbs in snark-verifier
Vulnerability ID: CVE-2026-61618
CVSS Score: 6.9
Published: 2026-11-18
CVE-2026-61618 (GHSA-265x-v3qf-ff6p) is an improper input validation vulnerability (CWE-20) in Axiom Crypto's snark-verifier library prior to version 0.2.5. The library decodes KZG accumulator public-instance limbs without enforcing canonical bit-width bounds prior to elliptic curve coordinate reconstruction. In the Ethereum Virtual Machine (EVM) loader path, the generated Yul bytecode validates that reconstructed affine coordinates lie on the elliptic curve, but fails to verify that the constituent limbs respect their allocated bit-widths, allowing non-canonical proof representations. In the native Rust execution path, accumulator decoding relies on unchecked assertions and unwraps, allowing malformed public instances to trigger an unhandled process panic.
TL;DR
Versions of snark-verifier prior to 0.2.5 fail to enforce canonical bit-width bounds when decoding KZG accumulator limbs from public instances. This allows proof representation malleability in generated EVM verifier contracts and causes denial-of-service panics in native Rust verification services.
Technical Details
- CVE / Advisory ID: CVE-2026-61618 / GHSA-265x-v3qf-ff6p
- Vulnerability Class: CWE-20: Improper Input Validation
- CVSS v4.0 Score: 6.9 Medium (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N)
- EPSS Score: 0.37% (31.62nd Percentile)
- Affected Component: axiom-crypto/snark-verifier (< 0.2.5)
- Primary Impact: Non-canonical KZG accumulator limb encodings (EVM) and unhandled thread panics (Native)
- Exploit / KEV Status: No known public exploits / Not listed in CISA KEV
Affected Systems
- axiom-crypto/snark-verifier
- snark-verifier (Rust Crate)
- snark-verifier-sdk (Rust Crate)
-
snark-verifier: < 0.2.5 (Fixed in:
0.2.5) -
snark-verifier-sdk: < 0.2.5 (Fixed in:
0.2.5)
Code Analysis
Commit: d6aaf66
Enforce canonical limb bounds in EVM loader and replace panicking native KZG accumulator decoding with checked validation.
diff --git a/snark-verifier/src/loader/evm/loader.rs b/snark-verifier/src/loader/evm/loader.rs
--- a/snark-verifier/src/loader/evm/loader.rs
+++ b/snark-verifier/src/loader/evm/loader.rs
@@ -100,6 +100,15 @@
+fn limb_bound_check_code(limb: &str, shift: usize, bits: usize) -> String {
+ let remaining_bits = 256usize.saturating_sub(shift);
+ let bound_bits = bits.min(remaining_bits);
+ if bound_bits == 0 {
+ format!("success := and(iszero({limb}), success)\n")
+ } else {
+ format!("success := and(lt({limb}, shl({bound_bits}, 1)), success)\n")
+ }
+}
+
@@ -250,6 +259,8 @@
+ assert!(BITS > 0);
for (idx, limb) in x_limbs.iter().enumerate() {
let limb_i = self.push(limb);
+ let shift = idx * BITS;
+ code.push_str(&limb_bound_check_code(&limb_i, shift, BITS));
Mitigation Strategies
- Upgrade snark-verifier and snark-verifier-sdk crates to version 0.2.5 or newer.
- Regenerate and redeploy all on-chain EVM verifier smart contracts generated with vulnerable versions of snark-verifier.
- Enforce strict in-circuit range constraints on KZG accumulator limbs within aggregation circuits.
- Add wrapper input validation in calling smart contracts or off-chain RPC endpoints if immediate contract redeployment is not feasible.
Remediation Steps:
- Update Cargo.toml to specify snark-verifier = "0.2.5" (or commit d6aaf66d4706f5317cf61d5dbe00c14e7fbdbb70) and run cargo update.
- Recompile native Rust verifier binaries and redeploy off-chain verification services.
- Execute the EVM verifier generation step to output updated Yul/Solidity verifier code containing limb_bound_check_code instructions.
- Audit the generated EVM assembly to verify that lt(limb, shl(bound_bits, 1)) checks precede coordinate shift-and-add operations.
- Deploy the regenerated verifier contracts to target EVM networks and update protocol registry pointers.
References
- GitHub Security Advisory GHSA-265x-v3qf-ff6p
- Fix Commit d6aaf66d4706f5317cf61d5dbe00c14e7fbdbb70
- snark-verifier Release v0.2.5
- CVE.org Record: CVE-2026-61618
- NVD Detail: CVE-2026-61618
- CVEProject cvelistV5 JSON Record: CVE-2026-61618
Read the full report for CVE-2026-61618 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.