NVD Vulnerability Detail
Search Exploit, PoC
CVE-2024-45056
Summary

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.

Publication Date Aug. 30, 2024, 2:15 a.m.
Registration Date Aug. 30, 2024, 5 a.m.
Last Update Sept. 4, 2024, 12:14 a.m.
CVSS3.1 : MEDIUM
スコア 5.9
Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
攻撃元区分(AV) ネットワーク
攻撃条件の複雑さ(AC)
攻撃に必要な特権レベル(PR) 不要
利用者の関与(UI) 不要
影響の想定範囲(S) 変更なし
機密性への影響(C) なし
完全性への影響(I)
可用性への影響(A) なし
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:matter-labs:zksolc:*:*:*:*:*:*:*:* 1.5.3
Related information, measures and tools
Common Vulnerabilities List

JVN Vulnerability Information
matter-labs の zksolc における計算の誤りに関する脆弱性
Title matter-labs の zksolc における計算の誤りに関する脆弱性
Summary

matter-labs の zksolc には、計算の誤りに関する脆弱性が存在します。

Possible impacts 情報を改ざんされる可能性があります。
Solution

ベンダアドバイザリまたはパッチ情報が公開されています。参考情報を参照して適切な対策を実施してください。

Publication Date Aug. 29, 2024, midnight
Registration Date Sept. 4, 2024, 3:29 p.m.
Last Update Sept. 4, 2024, 3:29 p.m.
Affected System
matter-labs
zksolc 1.5.3 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
その他
Change Log
No Changed Details Date of change
1 [2024年09月04日]
  掲載
Sept. 4, 2024, 3:29 p.m.