Live threats

All CVEs / Vyperlang

CVE-2024-24560Vyperlang Vyper

Medium 5.3 No auth needed

Priority
47
CVSS 3.1
5.3
EPSS
0.6%
probability of exploitation in 30 days · percentile 42
Auth required
No
Published
Feb 2, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-119
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

What happens

Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. When calls to external contracts are made, we write the input buffer starting at byte 28, and allocate the return buffer to start at byte 0 (overlapping with the input buffer). When checking RETURNDATASIZE for dynamic types, the size is compared only to the minimum allowed size for that type, and not to the returned value's length. As a result, malformed return data can cause the contract to mistake data from the input buffer for returndata. When the called contract returns invalid ABIv2 encoded data, the calling contract can read different invalid data (from the dirty buffer) than the called contract returned.

Original NVD text.

What to do

  1. Apply the vendor's security update for Vyper.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI vyper < 0.4.0 0.4.0 pip install "vyper>=0.4.0"
PyPI vyper < 0.4.0b1 0.4.0b1 pip install "vyper>=0.4.0b1"

Per OSV / GitHub Advisories (GHSA-gp3w-2v2m-p686, PYSEC-2024-148). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
vyperlangvyper≤ 0.3.10

Official sources

References

Links published by the sources. Open them with care.