CVE-2018-18920
HIGH 8.8CVSS 3.0Py-EVM is vulnerable to arbitrary bytecode injection
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."
- Published
- 12 Nov 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-119
- Also known as
- GHSA-vqgp-4jgj-5j64PYSEC-2018-155PYSEC-2018-96
- Sources
- NVDJSONOSV GHSA-vqgp-4jgj-5j64JSONOSV PYSEC-2018-155JSONOSV PYSEC-2018-96JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | ethereum | py-evmcpe:2.3:a:ethereum:py-evm:0.2.0:alpha.33:*:*:*:*:*:* |
= 0.2.0 | |
| OSV | PyPI | py-evm | <= 0.2.0a33 | |
| OSV | PyPI | evm-py | <= 0.2.0-alpha\.33 | |
| OSV | PyPI | py-evm | < 0.2.0a33 | 0.2.0a33 |
References
- https://github.com/ethereum/py-evm/issues/1448 · Exploit, Third Party Advisory, WEB, EVIDENCE, REPORT
- https://twitter.com/AlexanderFisher/status/1060923428641878019 · Third Party Advisory, WEB, ADVISORY
- https://twitter.com/NettaLab/status/1060889400102383617 · Third Party Advisory, WEB, ADVISORY
- https://www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx/ · Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2018-18920 · ADVISORY
- https://github.com/advisories/GHSA-vqgp-4jgj-5j64 · ADVISORY
- https://github.com/ethereum/py-evm · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/evm-py/PYSEC-2018-155.yaml · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/py-evm/PYSEC-2018-96.yaml · WEB
History
- 25 Nov 2026 20:21 UTC · NVD: first stored (published 12 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 12 Nov 2018)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 21 Nov 2018)