{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43366 exists.","fix":"No fix has been published for CVE-2024-43366 yet. Limit exposure of the affected software until one is available.","what":"CVE-2024-43366 is a high-severity vulnerability in matter-labs era-compiler-vyper, published on 15 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-43366 and fix it if it is affected.\n\nWhat it is: CVE-2024-43366 is a high-severity vulnerability in matter-labs era-compiler-vyper, published on 15 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-43366 exists.\n\nAffected product: matter-labs era-compiler-vyper. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-43366/ (Markdown: https://insights.sbomify.com/CVE-2024-43366/index.md)","id":"CVE-2024-43366","markdown":"https://insights.sbomify.com/CVE-2024-43366/index.md","name":"CVE-2024-43366","record":{"aliases":["GHSA-8j77-7rrv-6pxx"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Vyper compiler","requires_auth":"none","summary":"A flaw in the zkvyper compiler could cause incorrect loop execution, potentially leading to loss of funds in smart contracts.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"zkvyper","vendor":"matter-labs"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-835","name":"Loop with Unreachable Exit Condition"}],"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.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"zkvyper ignored loop range bounds","id":"CVE-2024-43366","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"other","year":"2024"},"n_packages":0,"n_references":1,"next":{"headline":"Boa has an uncaught exception when transitioning the state of `AsyncGenerator` objects","id":"CVE-2024-43367"},"packages":[],"prev":{"headline":"Stored Cross-site Scripting (XSS) when creating external links in Cacti","id":"CVE-2024-43365"},"products":["era-compiler-vyper"],"published":"2024-08-15","related":[{"cvss_score":5.3,"headline":"era-compiler-vyper First Immutable Variable Initialization vulnerability","id":"CVE-2023-46232","kev_date_added":null,"published":"2023-10-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-08-16","vendors":["matter-labs"]},"summary":"A flaw in the zkvyper compiler could cause incorrect loop execution, potentially leading to loss of funds in smart contracts.","url":"https://insights.sbomify.com/CVE-2024-43366/"}