{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-24559","id":"CVE-2024-24559","title":"Vyper SHA3 code generation bug","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` w","descriptionLong":"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.","published":"2024-02-05T21:04:42.056Z","updated":"2026-10-28T02:30:35.774355169Z","reserved":"2024-01-25T15:09:40.208Z","status":"Modified","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},"metrics":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"github.com"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"}],"rating":"low","products":["vyperlang vyper"],"affectedProducts":[{"vendor":"vyperlang","product":"vyper","defaultStatus":null,"versions":[{"version":"<= 0.3.10","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0","<0.4.0b1"],"fixed":["0.4.0","0.4.0b1"],"advisory":"GHSA-6845-xw22-ffxv"}],"cwes":["CWE-327"],"aliases":["GHSA-6845-xw22-ffxv","PYSEC-2024-147"],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web"]},{"url":"https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586","tags":["x_refsource_MISC","x_transferred","Product","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/24xxx/CVE-2024-24559.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24559","tags":["advisory"]},{"url":"https://github.com/vyperlang/vyper/pull/4063","tags":["web"]},{"url":"https://github.com/vyperlang/vyper/commit/d9f9fdadd81a148cbc68f02dbbbcdc0c92fad652","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-147.yaml","tags":["web"]},{"url":"https://github.com/vyperlang/vyper","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00255,"epssPercentile":0.17339,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-24559","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-24559","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-24559","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-6845-xw22-ffxv","ok":true,"note":"GHSA-6845-xw22-ffxv"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-24559","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}