CVE-2024-24567
MEDIUM 5.3CVSS 3.1Vyper's raw_call `value=` kwargs not disabled for static and delegate calls
Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. Vyper compiler allows passing a value in builtin raw_call even if the call is a delegatecall or a staticcall. But in the context of delegatecall and staticcall the handling of value is not possible due to the semantics of the respective opcodes, and vyper will silently ignore the value= argument. If the semantics of the EVM are unknown to the developer, he could suspect that by specifying the value kwarg, exactly the given amount will be sent along to the target. This vulnerability affects 0.3.10 and earlier versions.
- Published
- 30 Jan 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-754
- Also known as
- GHSA-x2c2-q32w-4w6mPYSEC-2024-151
- Sources
- NVDJSONOSV GHSA-x2c2-q32w-4w6mJSONOSV PYSEC-2024-151JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vyperlang | vypercpe:2.3:a:vyperlang:vyper:*:*:*:*:*:python:*:* |
<= 0.3.10 | |
| OSV | PyPI | vyper | < 0.4.0 | 0.4.0 |
| OSV | PyPI | vyper | < 0.4.0b1 | 0.4.0b1 |
References
- https://github.com/vyperlang/vyper/blob/9136169468f317a53b4e7448389aa315f90b95ba/vyper/builtins/functions.py#L1100 · Exploit, WEB, EVIDENCE
- https://github.com/vyperlang/vyper/security/advisories/GHSA-x2c2-q32w-4w6m · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2024-24567 · ADVISORY
- https://github.com/vyperlang/vyper/pull/3755 · WEB
- https://github.com/vyperlang/vyper/commit/a2df08888c318713742c57f71465f32a1c27ed72 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/vyper/PYSEC-2024-151.yaml · WEB
- https://github.com/vyperlang/vyper · PACKAGE
History
- 25 Nov 2026 20:54 UTC · NVD: first stored (published 30 Jan 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jan 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jan 2024)