{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-24559","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","state":"PUBLISHED","assignerShortName":"GitHub_M","dateReserved":"2024-01-25T15:09:40.208Z","datePublished":"2024-02-05T21:04:42.056Z","dateUpdated":"2024-08-26T18:13:59.422Z"},"containers":{"cna":{"title":"Vyper SHA3 code generation bug","problemTypes":[{"descriptions":[{"cweId":"CWE-327","lang":"en","description":"CWE-327: Use of a Broken or Risky Cryptographic Algorithm","type":"CWE"}]}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":3.7,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}}],"references":[{"name":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv","tags":["x_refsource_CONFIRM"],"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv"},{"name":"https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586","tags":["x_refsource_MISC"],"url":"https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586"}],"affected":[{"vendor":"vyperlang","product":"vyper","versions":[{"version":"<= 0.3.10","status":"affected"}]}],"providerMetadata":{"orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","shortName":"GitHub_M","dateUpdated":"2024-02-05T21:04:42.056Z"},"descriptions":[{"lang":"en","value":"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."}],"source":{"advisory":"GHSA-6845-xw22-ffxv","discovery":"UNKNOWN"}},"adp":[{"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2024-08-01T23:19:52.942Z"},"title":"CVE Program Container","references":[{"name":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv","tags":["x_refsource_CONFIRM","x_transferred"],"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-6845-xw22-ffxv"},{"name":"https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586","tags":["x_refsource_MISC","x_transferred"],"url":"https://github.com/vyperlang/vyper/blob/c150fc49ee9375a930d177044559b83cb95f7963/vyper/ir/compile_ir.py#L585-L586"}]},{"affected":[{"vendor":"vyperlang","product":"vyper","cpes":["cpe:2.3:a:vyperlang:vyper:0.3.10:*:*:*:*:python:*:*"],"defaultStatus":"unknown","versions":[{"version":"0.3.10","status":"affected"}]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-02-06T17:47:59.401665Z","id":"CVE-2024-24559","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-08-26T18:13:59.422Z"}}]}}