CVE-2024-24559

    Dashboard / Vulnerabilities / CVE-2024-24559

    CVE-2024-24559

    Published: 5 Feb 2024Last Modified: 28 Oct 2026

    Summary: Vyper SHA3 code generation bug

    Details: Vyper is a Pythonic Smart Contract Language for the EVM. There is an error in the stack management when compiling the `IR` for `sha3_64`. Concretely, the `height` variable is miscalculated. The vulnerability can't be triggered without writing the `IR` by hand (that is, it cannot be triggered from regular vyper code). `sha3_64` is used for retrieval in mappings. No flow that would cache the `key` was found so the issue shouldn't be possible to trigger when compiling the compiler-generated `IR`. This issue isn't triggered during normal compilation of vyper code so the impact is low. At the time of publication there is no patch available.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    v0.3.10
    v0.3.10rc5
    v0.3.10rc4
    v0.3.10rc3
    v0.3.10rc2
    v0.3.10rc1
    v0.3.9
    v0.3.8
    v0.3.7
    v0.3.6
    v0.3.5
    v0.3.4
    v0.3.3
    v0.3.2
    v0.3.1
    v0.3.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2024-24559 | CVE-DB