Approved changes feed: RSS · Atom

cpe:2.3:a:matter-labs:zksolc:*:*:*:*:*:*:*:*

part: a version: * update: *

VendorMatter Labs (a83ac4d1-d12e-5ff8-a089-b4523fd52ee1)
ProductZksolc (c0f31432-f26e-5675-b057-8b607807b840)
Edition*
Language*
Software edition*
Target software*
Target hardware*
Other*
NotesImported from purl2cpe mapping

PURL mappings

PURLSourceLast updated
pkg:github/matter-labs/era-compiler-solidity purl2cpe 2026-06-01 10:13:43.479255

Vulnerability references

IdentifiercpeApplicabilitySubmitteddb.gcve.eu detailsRationale
CVE:CVE-2024-45056 vulnerable 2026-06-08 06:45:54.470410 `fold (xor (shl 1, x), -1) -> (rotl ~1, x)` misoptimization in zksolc
MEDIUM (5.9)
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 it should have been sign-extended. Thus instead of producing `roti 2^256 - 1, x` the compiler produces `rotl 2^64 - 1, x`. Analysis has shown that no contracts were affected by the date of publishing this advisory. This issue has been addressed in version 1.5.3. Users are advised to upgrade and redeploy all contracts. There are no known workarounds for this vulnerability.
Published: 2024-08-29T16:55:53.281Z
Updated: 2024-08-29T17:16:47.076Z
Reference links
Imported from gcve-enriched-dumps CVE data

Contribute

You can submit an edit proposal for this CPE entry or suggest a related product/vendor addition using the action button above.