{"cve":"CVE-2024-24560","nvd":{"published":"2024-02-02T17:15:11.720","modified":"2026-06-17T07:14:36.490","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3},"cwes":["CWE-119"],"references":["https://github.com/vyperlang/vyper/security/advisories/GHSA-gp3w-2v2m-p686","https://github.com/vyperlang/vyper/security/advisories/GHSA-gp3w-2v2m-p686"],"products":["vyperlang:vyper"],"source":"nvd","synced_at":"2026-10-19T21:44:57.175229480+00:00"},"epss":{"cve":"CVE-2024-24560","score":0.00526,"percentile":0.44574,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-gp3w-2v2m-p686","url":"https://osv.dev/vulnerability/GHSA-gp3w-2v2m-p686","summary":"Vyper's external calls can overflow return data to return input buffer","modified":"2026-09-10T03:50:05.649839578Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0"],"fixed":["0.4.0"]}]},{"id":"PYSEC-2024-148","url":"https://osv.dev/vulnerability/PYSEC-2024-148","summary":"","modified":"2024-11-21T14:57:09.929094Z","packages":[{"ecosystem":"PyPI","name":"vyper","purl":"pkg:pypi/vyper","ranges":["<0.4.0b1"],"fixed":["0.4.0b1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}