Paper/Archive/CVE-2024-43366

CVE-2024-43366

matter-labs era-compiler-vyper — zkvyper ignored loop range bounds

Description · from the CVE record

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.

Affected

ProductAffectedFixed inSource
era-compiler-vyper>= 1.3.12, < 1.5.3–CNA
era-compiler-vyper1.3.12 – < 1.5.31.5.3CISA-ADP

Scores by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub_M (CNA)7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CISA ADPSSVCExploitation: poc · Automatable: yes · Technical impact: partial

References

refgithub.com/matter-labs/era-compiler-vyper/security/advisories/GHSA-8j77-7rrv-6pxx