{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-18920","id":"CVE-2018-18920","title":"Py-EVM is vulnerable to arbitrary bytecode injection","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.\"","descriptionLong":"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":"2018-11-12T02:00:00.000Z","updated":"2026-10-20T10:51:34.628162772Z","reserved":"2018-11-03T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"vector":"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","rating":"high","source":"GitHub"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"py-evm","purl":"pkg:pypi/py-evm","ranges":["<=0.2.0a33","<0.2.0a33"],"fixed":["0.2.0a33"],"advisory":"GHSA-vqgp-4jgj-5j64"},{"ecosystem":"PyPI","name":"evm-py","purl":"pkg:pypi/evm-py","ranges":["<=0.2.0-alpha\\.33"],"fixed":[],"advisory":"PYSEC-2018-155"}],"cwes":["CWE-119"],"aliases":["GHSA-vqgp-4jgj-5j64","PYSEC-2018-155","PYSEC-2018-96"],"references":[{"url":"https://twitter.com/AlexanderFisher/status/1060923428641878019","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://github.com/ethereum/py-evm/issues/1448","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://twitter.com/NettaLab/status/1060889400102383617","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx/","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18920","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vqgp-4jgj-5j64","tags":["advisory"]},{"url":"https://github.com/ethereum/py-evm","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/evm-py/PYSEC-2018-155.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/py-evm/PYSEC-2018-96.yaml","tags":["web"]},{"url":"https://www.reddit.com/r/ethereum/comments/9vkk2g/netta_labs_claim_to_have_found_a_vulnerability_in/e9d3wyx","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.02926,"epssPercentile":0.87333,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-18920","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18920","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-18920","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-vqgp-4jgj-5j64","ok":true,"note":"GHSA-vqgp-4jgj-5j64"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-18920","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}