{"id":"CVE-2024-32645","published":"2024-04-25T17:18:27Z","modified":"2024-08-02T02:13:40Z","title":"vyper performs incorrect topic logging in raw_log","vendor":"vyperlang","product":"vyper","tier":"tail","description":{"text":"Vyper is a pythonic Smart Contract Language for the Ethereum virtual machine. In versions 0.3.10 and prior, incorrect values can be logged when `raw_log` builtin is called with memory or storage arguments to be used as topics. A contract search was performed and no vulnerable contracts were found in production. The `build_IR` function of the `RawLog` class fails to properly unwrap the variables provided as topics. Consequently, incorrect values are logged as topics. As of time of publication, no fixed version is available.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00451,"percentile":0.40104,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"}],"references":[{"url":"https://github.com/vyperlang/vyper/security/advisories/GHSA-xchq-w5r3-4wg3","tags":["x_refsource_CONFIRM"]}],"priority":{"score":11.7,"factors":[{"name":"EPSS percentile","points":8.02},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"vyperlang","affectedVersions":[{"vendor":"vyperlang","product":"vyper","versions":["<= 0.3.10"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-03T17:10:02.463026Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vyper","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-xchq-w5r3-4wg3","PYSEC-2024-206"],"provenance":"source"}],"summary":{"text":"The vulnerability is in the vyper smart contract language (vyperlang/vyper), in the build_IR function of its RawLog class, which fails to properly unwrap memory or storage variables passed as topics to the raw_log builtin, so incorrect values are logged as topics. An attacker can cause contracts to emit wrong topic values, and this requires only network access to a contract that calls raw_log with memory or storage topic arguments, with no authentication or user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:47Z"},"euvd":{"id":"EUVD-2024-0182","exploited":false,"provenance":"source"}}