GHSA-vqgp-4jgj-5j64

    Dashboard / Vulnerabilities / GHSA-vqgp-4jgj-5j64

    GHSA-vqgp-4jgj-5j64

    Published: 21 Nov 2018Last Modified: 5 Jun 2026

    Summary: Py-EVM is vulnerable to arbitrary bytecode injection

    Details: Py-EVM v0.2.0-alpha.33 allows attackers to make a vm.execute_bytecode call that triggers computation._stack.values with '"stack": [100, 100, 0]' where b'\x' was expected, resulting in an execution failure because of an invalid opcode. This is reportedly related to "smart contracts can be executed indefinitely without gas being paid."

    Affected packages

    Package

    Name: py-evm

    Purl: pkg:pypi/py-evm

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    Affected versions

    0.2.0a1
    0.2.0a10
    0.2.0a11
    0.2.0a12
    0.2.0a13
    0.2.0a14
    0.2.0a15
    0.2.0a16
    0.2.0a17
    0.2.0a18
    0.2.0a19
    0.2.0a20
    0.2.0a21
    0.2.0a22
    0.2.0a24
    0.2.0a25
    0.2.0a26
    0.2.0a28
    0.2.0a29
    0.2.0a3
    0.2.0a30
    0.2.0a31
    0.2.0a32
    0.2.0a33
    0.2.0a5
    0.2.0a7
    0.2.0a8
    0.2.0a9

    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