Live threats

All CVEs / Vyperlang

CVE-2024-22419Vyperlang Vyper

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.0%
probability of exploitation in 30 days · percentile 62
Auth required
No
Published
Jan 18, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-120, CWE-787
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:H/I:H/A:H

What happens

Vyper is a Pythonic Smart Contract Language for the Ethereum Virtual Machine. The `concat` built-in can write over the bounds of the memory buffer that was allocated for it and thus overwrite existing valid data. The root cause is that the `build_IR` for `concat` doesn't properly adhere to the API of copy functions (for `>=0.3.2` the `copy_bytes` function). A contract search was performed and no vulnerable contracts were found in production. The buffer overflow can result in the change of semantics of the contract. The overflow is length-dependent and thus it might go unnoticed during contract testing. However, certainly not all usages of concat will result in overwritten valid data as we require it to be in an internal function and close to the return statement where other memory allocations don't occur. This issue has been addressed in 0.4.0.

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.3.0 < 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-2q8v-3gqq-4f8p, PYSEC-2024-103). 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.