Skip to content
OpenAdvisories
High · 8.8 CVE-2018-18920 EUVD-2018-0118GHSA-vqgp-4jgj-5j64PYSEC-2018-155PYSEC-2018-96

Py-EVM is vulnerable to arbitrary bytecode injection

Published Nov 12, 2018 · Updated Aug 5, 2024 · Assigned by mitre

Description

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

EcosystemPackageAffectedFixedRecord
PyPI evm-py <= 0.2.0-alpha\.33 — PYSEC-2018-155
PyPI py-evm <= 0.2.0a33 — GHSA-vqgp-4jgj-5j64
PyPI py-evm < 0.2.0a33 0.2.0a33 PYSEC-2018-96

References