CVE-2018-18920Ethereum Py-evm
High 8.8 No auth needed
Follow: this CVE · Ethereum · Ethereum Py-evm We alert you by email or Slack (account required).
- Priority
- 68
- CVSS 3.0
- 8.8
- EPSS
- 2.9% probability of exploitation in 30 days · percentile 88
- Auth required
- No
- Published
- Nov 12, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-119
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
What happens
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."
What to do
- Apply the vendor's security update for Py-evm.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | evm-py |
all |
no fixed version | — |
| PyPI | py-evm |
≤ 0.2.0a33 |
no fixed version | — |
| PyPI | py-evm |
< 0.2.0a33 |
0.2.0a33 |
pip install "py-evm>=0.2.0a33" |
Per OSV / GitHub Advisories (PYSEC-2018-155, GHSA-vqgp-4jgj-5j64, PYSEC-2018-96). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| ethereum | py-evm | 0.2.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory
- twitter.com Third Party Advisory
- twitter.com Third Party Advisory
- www.reddit.com Third Party Advisory