Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. py-evm
  4. ›
  5. CVE-2018-18920

CVE-2018-18920: Py-EVM is vulnerable to arbitrary bytecode injection

November 21, 2018 (updated June 5, 2026)

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.”

References

  • github.com/advisories/GHSA-vqgp-4jgj-5j64
  • github.com/ethereum/py-evm/issues/1448
  • github.com/pypa/advisory-database/tree/main/vulns/evm-py/PYSEC-2018-155.yaml
  • github.com/pypa/advisory-database/tree/main/vulns/py-evm/PYSEC-2018-96.yaml
  • nvd.nist.gov/vuln/detail/CVE-2018-18920
  • twitter.com/AlexanderFisher/status/1060923428641878019
  • twitter.com/NettaLab/status/1060889400102383617
  • www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx

Code Behaviors & Features

Detect and mitigate CVE-2018-18920 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.2.0-a.33

Solution

Unfortunately, there is no solution available yet.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

pypi/py-evm/CVE-2018-18920.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:00 +0000.