CVE-2024-45056
`fold (xor (shl 1, x), -1) -> (rotl ~1, x)` misoptimization in zksolc
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.403% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 5.9 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Assessment source · checked 2026-11-19T12:57:17.551Z
CVSS 3.1 · 5.9 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Assessment source · checked 2026-11-19T16:52:35.868Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:57:17.551Z | CVE Program |
| epss | verified | 2026-11-19T16:04:39.116Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T12:57:17.551Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:57:17.551Z | CVE Program |
Affected versions and configuration
matter-labs era-compiler-solidity; default status: unknown: < 1.5.3 [affected; scheme: unspecified]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
Ubuntu Security · ubuntu-package · full conditions
[
{
"name": "llvm-toolchain-18",
"debian": "https://tracker.debian.org/pkg/llvm-toolchain-18",
"source": "https://ubuntu.com/security/cve?package=llvm-toolchain-18",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=llvm-toolchain-18",
"statuses": [
{
"pocket": "security",
"status": "DNE",
"component": null,
"description": "",
"release_codename": "jammy"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "focal"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "noble"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "upstream"
}
]
}
]Archived source JSONCVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "matter-labs",
"product": "era-compiler-solidity",
"versions": [
{
"status": "affected",
"version": "< 1.5.3"
}
]
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-45056",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "poc"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-08-29T17:13:59.519347Z"
}
}
}
],
"affected": [
{
"cpes": [
"cpe:2.3:a:matter-labs:era-compiler-solidity:*:*:*:*:*:*:*:*"
],
"vendor": "matter-labs",
"product": "era-compiler-solidity",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.5.3",
"versionType": "custom"
}
],
"defaultStatus": "unknown"
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-08-29T17:16:47.076Z"
}
}
]
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CVE ProgramConsulted: 2026-11-19T12:57:17.551ZArchived source JSON
Source publication: 2024-08-29T16:55:53.281Z
Source modification: 2024-08-29T17:16:47.076ZDocument fingerprint
944e3cb22f34fea21b7c19fd4553899b42b1a0857d805afcef7f2f686a415c43 - Ubuntu SecurityConsulted: 2026-11-19T16:52:35.868ZArchived source JSON
Source publication: 2024-08-29T17:15:00.000Z
Source modification: 2025-07-29T11:12:12.176ZDocument fingerprint
790cb70056d7ae82b6a9a2201c7fae6d0266ffafca57683f83e987ccfc602a6a - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - FIRST EPSSConsulted: 2026-11-19T16:04:39.116ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
9f0dcd79a206c1e9df7af3ccc3246b94763cde2daafc074aaa6c06dadb41d7a7
Official status history
- UNKNOWN → PUBLISHED · · evidence