vyper performs incorrect topic logging in raw_log
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-32645
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 6 Nov 2026, 09:33 UTC · Revision 1
Source evidence
vyper performs incorrect topic logging in raw_log
core-osv · Original sourcePublished 25 Apr 2024, 17:18 UTC
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.
osv:CVE-2024-32645
Complete source record
{
"id": "0f4cf26e5b79e4338be09bab127f7a70d46c8eee2be56c6dc147db91e2267161",
"url": "https://osv.dev/vulnerability/CVE-2024-32645",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "vyper performs incorrect topic logging in raw_log",
"summary": "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.",
"evidence": "osv:CVE-2024-32645",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-32645",
"aliases": [
"CVE-2024-32645",
"GHSA-xchq-w5r3-4wg3",
"PYSEC-2024-206"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/vyperlang/vyper",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "e9db8d9f7486eae38f5b86531629019ad28f514e"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "0.3.10"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"cpe": "cpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "0.4.0"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"v0.4.0rc6",
"v0.4.0rc5",
"v0.4.0rc4",
"v0.4.0rc3",
"v0.4.0rc2",
"v0.4.0rc1",
"v0.4.0b6",
"v0.4.0b5",
"v0.4.0b4",
"v0.4.0b3",
"v0.4.0b2",
"v0.4.0b1",
"v0.3.10",
"v0.3.10rc5",
"v0.3.10rc4",
"v0.3.10rc3",
"v0.3.10rc2",
"v0.3.10rc1",
"v0.3.9",
"v0.3.8",
"v0.3.7",
"v0.3.6",
"v0.3.5",
"v0.3.4",
"pre-release",
"v0.3.3",
"v0.3.2",
"v0.3.1",
"v0.3.0",
"v0.2.16",
"v0.2.15",
"v0.2.14",
"v0.2.13",
"v0.2.12",
"v0.2.11",
"v0.2.10",
"v0.2.9",
"v0.2.8",
"v0.2.7",
"v0.2.6",
"v0.2.5",
"v0.2.4",
"v0.2.3",
"v0.2.2",
"v0.2.1",
"0.2.1",
"v0.2.0",
"v0.1.0-beta.17",
"v0.1.0-beta.16",
"v0.1.0-beta.15",
"v0.1.0-beta.14",
"v0.1.0-beta.13",
"v0.1.0-beta.12",
"v0.1.0-beta.11",
"v0.1.0-beta.10",
"v0.1.0-beta.9",
"v0.1.0-beta.8",
"v0.1.0-beta.7",
"v0.1.0-beta.6",
"v0.1.0-beta.5",
"v0.1.0-beta.3",
"v0.1.0-beta.2",
"v0.1.0-beta.1",
"v0.0.4"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-32645.json"
}
}
],
"modified": "2026-10-28T02:30:46.827696070Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32645.json",
"https://github.com/vyperlang/vyper/security/advisories/GHSA-xchq-w5r3-4wg3",
"https://nvd.nist.gov/vuln/detail/CVE-2024-32645"
],
"provider_metadata": {
"cwe_ids": [
"CWE-20"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/32xxx/CVE-2024-32645.json"
}
},
"related_cves": [
{
"value": "CVE-2024-32645",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 515088,
"published_at": "2024-04-25T17:18:27.026+00:00"
}