Vulnerability · Published May 27, 2024 · Assigned by GitHub_M
CVE-2024-35229ZKsync Era evaluation order of Yul function arguments
Medium 5.3
In plain English
A medium-severity security flaw in era-compiler-solidity from matter-labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities).
Official description
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.
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| matter-labs | era-compiler-solidity | < 1.3.10 |
Weakness: CWE-696 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N