Security mailing lists by PureSourceCode

CVE-2024-24561

CRITICAL 9.8CVSS 3.1

Vyper's bounds check on built-in `slice()` function can be overflowed

Vyper is a pythonic Smart Contract Language for the ethereum virtual machine. In versions 0.3.10 and earlier, the bounds check for slices does not account for the ability for start + length to overflow when the values aren't literals. If a slice() function uses a non-literal argument for the start or length variable, this creates the ability for an attacker to overflow the bounds check. This issue can be used to do OOB access to storage, memory or calldata addresses. It can also be used to corrupt the length slot of the respective array.

Published
1 Feb 2024
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-119CWE-787
Also known as
GHSA-9x7f-gwxq-6f2cPYSEC-2024-149
Sources
NVDJSONOSV GHSA-9x7f-gwxq-6f2cJSONOSV PYSEC-2024-149JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV PyPA CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vyperlang vyper
cpe: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

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 1 Feb 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 1 Feb 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 1 Feb 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.