zkvyper ignored loop range bounds
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-835.
Summary
zkvyper is a Vyper compiler. Starting in version 1.3.12 and prior to version 1.5.3, since LLL IR has no Turing-incompletness restrictions, it is compiled to a loop with a much more late exit condition. It leads to a loss of funds or other unwanted behavior if the loop body contains it. However, more real-life use cases like iterating over an array are not affected. No contracts were affected by this issue, which was fixed in version 1.5.3. Upgrading and redeploying affected contracts is the only way to avoid the vulnerability.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| matter-labs | era-compiler-vyper | 1.3.12 to before 1.5.3 | 1.5.3 | Patch available | CNA |
- era-compiler-vyper Vendormatter-labs Affected 1.3.12 to before 1.5.3 Fixed in 1.5.3 Patch available CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:matter-labs:zkvyper:*:*:*:*:*:*:*:* | 1.3.12 to before 1.5.3 | Vulnerable | matter-labs |
- cpe:2.3:a:matter-labs:zkvyper:*:*:*:*:*:*:*:* Versions 1.3.12 to before 1.5.3 Vulnerable ·matter-labs
Remediation
- Fix · CNA era-compiler-vyper (matter-labs) Fixed in 1.5.3
Timeline
- 2026-10-02 Threatist record created from CVE-2024-43366
References
More matter-labs Zkvyper vulnerabilities
- TI-2023-24859 era-compiler-vyper First Immutable Variable Initialization vulnerability CVSS 3.1MEDIUM 5.3
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences