VDB
Sign up
—

PYSEC-2018-96

Quick fix

PYSEC-2018-96 — py-evm: upgrade to the fixed version with the command below.

pip install --upgrade 'py-evm>=0.2.0a33'

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."

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/py-evm
Introduced in: 0Fixed in: 0.2.0a33
Fixpip install --upgrade 'py-evm>=0.2.0a33'

References