CVE-2024-35229 MEDIUM

CVE-2024-35229: ZKsync Era evaluation order of Yul function arguments

Vendor Matter-Labs
Product era-compiler-solidity
Weakness CWE-696
Published May 27, 2024
Last update September 3, 2024

CVSS base score

5.3/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality None
Integrity Low

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 27, 2024 CVE published
September 3, 2024 Record updated

Related vulnerabilities

04Related CVE