CVE-2023-46232: era-compiler-vyper First Immutable Variable Initialization vulnerability
Vulnerability summary
CVE-2023-46232 is a medium (CVSS 5.3) vulnerability in matter-labs era-compiler-vyper. EPSS estimates a 0.69% chance of exploitation in the next 30 days, higher than 52.9% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 25-10-2023PublishedVulnerability first disclosed.
- 10-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
EPSS trend
Probability
0.69%
Chance of exploitation in the next 30 days
Percentile
53%
Versus all other CVEs
30-day change
Increase +0.13 pp
From 0.56% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundEra Compiler Vyper
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Matter-labs2 products
- era-compiler-vyper< 1.3.10
- zkvyper< 1.3.10
1 vendor · 2 products
References
3 links- github.com/matter-labs/era-compiler-vyper/security/advisories/GHSA-h8jv-969m-94r4X Refsource CONFIRMExploitVendor Advisory
- github.com/matter-labs/era-system-contracts/blob/main/contracts/ImmutableSimulator.solX Refsource MISCProduct