ZKsync Era evaluation order of Yul function arguments
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
ZKsync Era is a layer 2 rollup that uses zero-knowledge proofs to scale Ethereum. Prior to version 1.3.10, there is a very specific pattern `f(a(),b()); check_if_a_executed_last()` in Yul that exposes a bug in evaluation order of Yul function arguments. This vulnerability has been fixed in version 1.3.10. As a workaround, update and redeploy affected contracts.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matter-labs | era-compiler-solidity | before 1.3.10 | 1.3.10 | Patch available | CNA |
- era-compiler-solidity Vendormatter-labs Affected before 1.3.10 Fixed in 1.3.10 Patch available CNA
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:matter-labs:era-compiler-solidity:*:*:*:*:*:*:*:* | — | — | matter-labs |
- cpe:2.3:a:matter-labs:era-compiler-solidity:*:*:*:*:*:*:*:* Versions — — ·matter-labs
Remediation
- Fix · CNA era-compiler-solidity (matter-labs) Fixed in 1.3.10
Timeline
- 2026-10-02 Threatist record created from CVE-2024-35229
References
More matter-labs vulnerabilities
- TI-2024-29017 zkvyper ignored loop range bounds CVSS 3.1CRITICAL 9.1
- TI-2024-30167 `fold (xor (shl 1, x), -1) -> (rotl ~1, x)` misoptimization in zksolc CVSS 3.1MEDIUM 5.9
- TI-2024-23002 era-compiler-solidity contains a `xor(zext(cmp), -1)` misoptimization CVSS 3.1MEDIUM 5.9
- TI-2024-25768 ZKsync Era invalid stack addressing conversion CVSS 3.1MEDIUM 6.5
- TI-2023-24859 era-compiler-vyper First Immutable Variable Initialization vulnerability CVSS 3.1MEDIUM 5.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences