CVE-2020-26245: Systeminformation Prototype Pollution Vulnerability
MODERATECVE-2020-26245 is a MODERATE (CVSS 8.1) prototype pollution vulnerability (CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')) affecting Systeminformation libraries in the npm ecosystem. The issue involves prototype pollution in systeminformation. Remediation is available by upgrading affected packages to version 4.30.5.
CVE-2020-26245 at a Glance
Security Impact
CVSS: 8.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L).
How to Fix CVE-2020-26245
To remediate this vulnerability, upgrade all affected Systeminformation 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 systeminformation@4.30.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls systeminformation
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2020-26245, inspect your project dependencies using npm:
npm ls systeminformation
Analyze the terminal output to locate any version of Systeminformation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.30.5), your application is affected.
Note: The npm ls systeminformation 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-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection'), where the product constructs all or part of an os command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended os command when it is sent to a downstream component. In Systeminformation, 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-2020-26245 Affected Systeminformation Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
systeminformation
|
npm |
< 4.30.5
|
4.30.5
|
References
Frequently Asked Questions
What is CVE-2020-26245?
Which Systeminformation versions are affected?
What version fixes CVE-2020-26245?
Is systeminformation affected?
What is the CVSS score of CVE-2020-26245?
What CWE is associated with CVE-2020-26245?
How can I check npm dependencies for CVE-2020-26245?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-4v2w-h9jm-mqjg",
"modified" : "2021-01-07T22:40:03Z",
"published" : "2020-11-27T16:07:15Z",
"aliases" : [ "CVE-2020-26245" ],
"summary" : "Prototype Pollution in systeminformation",
"details" : "### Impact\ncommand injection vulnerability by prototype pollution\n\n### Patches\nProblem was fixed with a rewrite of shell sanitations to avoid prototyper pollution problems. Please upgrade to version >= 4.30.2\n\n### Workarounds\nIf you cannot upgrade, be sure to check or sanitize service parameter strings that are passed to si.inetChecksite()\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n* Open an issue in [systeminformation](https://github.com/sebhildebrandt/systeminformation/issues/new?template=bug_report.md)",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "systeminformation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.30.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-4v2w-h9jm-mqjg"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2020-26245"
}, {
"type" : "WEB",
"url" : "https://github.com/sebhildebrandt/systeminformation/commit/8113ff0e87b2f422a5756c48f1057575e73af016"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-471", "CWE-78" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2020-11-27T15:56:36Z",
"nvd_published_at" : null
}
}