HIGH8.8
PYSEC-2018-155
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/evm-py
Introduced in:
0No fixed version published yet for evm-py (pip). Pin to a known-safe version or switch to an alternative.
References
- https://twitter.com/AlexanderFisher/status/1060923428641878019[ADVISORY]
- https://twitter.com/NettaLab/status/1060889400102383617[ADVISORY]
- https://www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx/[ADVISORY]
- https://github.com/ethereum/py-evm/issues/1448[EVIDENCE]