era-compiler-vyper 第一个不可变变量初始化漏洞 (CVE-2023-46232)

admin 2023-11-29 18:29:44 Ali_nvd 来源:ZONE.CI 全球网 0 阅读模式
era-compiler-vyper 第一个不可变变量初始化漏洞 (CVE-2023-46232)

CVE编号

CVE-2023-46232

利用情况

暂无

补丁情况

N/A

披露时间

2023-10-26
漏洞描述
era-compiler-vyper is the EraVM Vyper compiler for zkSync Era, a layer 2 rollup that uses zero-knowledge proofs to scale Ethereum. Prior to era-compiler-vype version 1.3.10, a bug prevented the initialization of the first immutable variable for Vyper contracts meeting certain criteria. The problem arises when there is a String or Array with more 256-bit words allocated than initialized. It results in the second word’s index unset, that is effectively set to 0, so the first immutable value with the actual 0 index is overwritten in the ImmutableSimulator. Version 1.3.10 fixes this issue by setting all indexes in advance. The problem will go away, but it will get more expensive if the user allocates a lot of uninitialized space, e.g. `String[4096]`. Upgrading and redeploying affected contracts is the only way of working around the issue.
解决建议
建议您更新当前系统或软件至最新版,完成漏洞的修复。
参考链接
https://github.com/matter-labs/era-compiler-vyper/commit/8be305a1b9c68d0fd47d...
https://github.com/matter-labs/era-compiler-vyper/security/advisories/GHSA-h8...
https://github.com/matter-labs/era-system-contracts/blob/main/contracts/Immut...
受影响软件情况
# 类型 厂商 产品 版本 影响面
1
运行在以下环境
应用 matter-labs zkvyper * Up to (excluding) 1.3.10
CVSS3评分 5.3
  • 攻击路径 网络
  • 攻击复杂度 低
  • 权限要求 无
  • 影响范围 未更改
  • 用户交互 无
  • 可用性 无
  • 保密性 无
  • 完整性 低
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
CWE-ID 漏洞类型
NVD-CWE-noinfo
- avd.aliyun.com
weinxin
版权声明
本站原创文章转载请注明文章出处及链接,谢谢合作!
N/A Ali_nvd

N/A

N/ACVE编号 CVE-2024-9120利用情况 暂无补丁情况 N/A披露时间 2024-09-23漏洞描述Use after free in Dawn
评论:0   参与:  0