CVE-2018-19183: Ethereumjs vm Denial of Service Vulnerability
HIGHCVE-2018-19183 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer) affecting Ethereumjs vm libraries in the npm ecosystem. The issue involves denial of service in ethereumjs-vm. Remediation is available in the latest vendor maintenance releases.
CVE-2018-19183 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2018-19183
To remediate this vulnerability, upgrade all affected Ethereumjs vm dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ethereumjs-vm@Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ethereumjs-vm
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2018-19183, inspect your project dependencies using npm:
npm ls ethereumjs-vm
Analyze the terminal output to locate any version of Ethereumjs vm in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The npm ls ethereumjs-vm command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer, where the product performs operations on a memory buffer, but it reads from or writes to a memory location outside the buffer's intended boundary. this may result in read or write operations on unexpected memory locations that could be linked to other variables, data structures, or internal program data. In Ethereumjs vm, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-19183 Affected Ethereumjs vm Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ethereumjs-vm
|
npm |
≤ 2.4.0
|
|
References
Frequently Asked Questions
What is CVE-2018-19183?
Which Ethereumjs vm versions are affected?
What version fixes CVE-2018-19183?
Is ethereumjs-vm affected?
What is the CVSS score of CVE-2018-19183?
What CWE is associated with CVE-2018-19183?
How can I check npm dependencies for CVE-2018-19183?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2mw7-wggm-m6w3",
"modified" : "2022-09-14T22:05:59Z",
"published" : "2018-11-21T22:22:46Z",
"aliases" : [ "CVE-2018-19183" ],
"summary" : "Denial of Service in ethereumjs-vm",
"details" : "ethereumjs-vm 2.4.0 allows attackers to cause a denial of service (vm.runCode failure and REVERT) via a \"code: Buffer.from(my_code, 'hex')\" attribute.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ethereumjs-vm"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "2.4.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-19183"
}, {
"type" : "WEB",
"url" : "https://github.com/ethereumjs/ethereumjs-vm/issues/386"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-2mw7-wggm-m6w3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ethereumjs/ethereumjs-vm"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-119" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2020-06-16T20:52:41Z",
"nvd_published_at" : null
}
}