{"cve":"CVE-2024-24559","nvd":{"published":"2024-02-05T21:15:12.127","modified":"2026-06-17T07:14:36.370","status":"Modified","description":"Vyper is a Pythonic Smart Contract Language for the EVM. There is an error in the stack management when compiling the `IR` for `sha3_64`. Concretely, the `height` variable is miscalculated. The vulnerability can't be triggered without writing the `IR` by hand (that is, it cannot be triggered from regular vyper code). `sha3_64` is used for retrieval in mappings. No flow that would cache the `key` was found so the issue shouldn't be possible to trigger when compiling the compiler-generated `IR`. This issue isn't triggered during normal compilation of vyper code so the impact is low. At the time of publication there is no patch available.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-327"],"references":["https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586","https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv","https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586","https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv"],"products":["vyperlang:vyper"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-24559","score":0.00255,"percentile":0.1717,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-6845-xw22-ffxv","url":"https://osv.dev/vulnerability/GHSA-6845-xw22-ffxv","summary":"Vyper sha3 codegen bug","modified":"2026-09-10T03:50:09.814041Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0"],"fixed":["0.4.0"]}]},{"id":"PYSEC-2024-147","url":"https://osv.dev/vulnerability/PYSEC-2024-147","summary":"","modified":"2024-11-21T14:57:09.681968Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0b1"],"fixed":["0.4.0b1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}