VYPR

Era Compiler Solidity

by Matter Labs

Source repositories

CVEs (3)

  • CVE-2024-34704MedMay 14, 2024
    risk 0.38cvss 5.9epss 0.00

    era-compiler-solidity is the ZKsync compiler for Solidity. The problem occurred during instruction selection in the `DAGCombine` phase while visiting the XOR operation. The issue arises when attempting to fold the expression `!(x cc y)` into `(x !cc y)`. To perform this…

  • CVE-2024-35229MedMay 27, 2024
    risk 0.27cvss 5.3epss 0.00

    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…

  • CVE-2024-45056Aug 29, 2024
    risk 0.00cvss epss 0.00

    zksolc is a Solidity compiler for ZKsync. All LLVM versions since 2015 fold `(xor (shl 1, x), -1)` to `(rotl ~1, x)` if run with optimizations enabled. Here `~1` is generated as an unsigned 64 bits number (`2^64-1`). This number is zero-extended to 256 bits on EraVM target while…