Skip to content

CVE-2024-43366 zkvyper ignored loop range bounds

CriticalCVSS 9.1 EPSS 0.51%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: partial

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
matter-labs era-compiler-vyper = >= 1.3.12, < 1.5.3; >= 1.3.12, < 1.5.3 1.5.3 Fixed
matter-labs zkvyper >= 1.3.12, < 1.5.3 1.5.3 Fixed

Affected products

ProductAffected versionsFixed in
matter-labs era-compiler-vyper = >= 1.3.12, < 1.5.3 No fix listed
matter-labs era-compiler-vyper >= 1.3.12, < 1.5.3 1.5.3
matter-labs zkvyper >= 1.3.12, < 1.5.3 1.5.3

References