CVE-2023-46232

Public Exploit
era-compiler-vyper First Immutable Variable Initialization vulnerability

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.

Category

5.3
CVSS
Severity: Medium
CVSS 3.1 •
EPSS 0.31%
Vendor Advisory github.com
Affected: matter-labs era-compiler-vyper
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-46232?
CVE-2023-46232 has been scored as a medium severity vulnerability.
How to fix CVE-2023-46232?
To fix CVE-2023-46232, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-46232 being actively exploited in the wild?
It is possible that CVE-2023-46232 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-46232?
CVE-2023-46232 affects matter-labs era-compiler-vyper.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.