Known exploited vulnerability
CVE-2021-21315
The short answer
CVE-2021-21315 affects sebhildebrandt systeminformation and is rated high (CVSS 7.8). CISA added it to the Known Exploited Vulnerabilities catalog on 2022-01-18: attackers are using it, so patch it first. Fixed versions are published for systeminformation (5.3.1).
What it is
The System Information Library for Node.JS (npm package "systeminformation") is an open source collection of functions to retrieve detailed hardware, system and OS information. In systeminformation before version 5.3.1 there is a command injection vulnerability. Problem was fixed in version 5.3.1. As a workaround instead of upgrading, be sure to check or sanitize service parameters that are passed to si.inetLatency(), si.inetChecksite(), si.services(), si.processLoad() ... do only allow strings, reject any arrays. String sanitation works as expected.
Weakness: CWE-78.
Severity
7.8 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Exploited (CISA KEV)
Yes, since Jan 18, 2022
Federal due date Feb 1, 2022
EPSS, next 30 days
91%
Higher than 100% of scored CVEs
How it can be exploited
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
What CISA says to do
Apply updates per vendor instructions.
Affected packages and fixed versions
| Package | Ecosystem | Fixed in | Advisory |
|---|---|---|---|
| systeminformation | npm | 5.3.1 | GHSA-2m8v-572m-ff2v |
Is it in your code? Drop your lockfile into the free vulnerability check, or let vulnerability watch check your repository every day and open the upgrade as a pull request.
Affected products
systeminformation. NVD's record lists the exact affected versions.
References
- github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525 Patch
- github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v Third Party Advisory
- lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E Issue TrackingMailing List
- security.netapp.com/advisory/ntap-20210312-0007/ Third Party Advisory
- www.npmjs.com/package/systeminformation Product
- github.com/sebhildebrandt/systeminformation/commit/07daa05fb06f24f96297abaa30c2ace8bfd8b525 Patch
- github.com/sebhildebrandt/systeminformation/security/advisories/GHSA-2m8v-572m-ff2v Third Party Advisory
- lists.apache.org/thread.html/r8afea9a83ed568f2647cccc6d8d06126f9815715ddf9a4d479b26b05%40%3Cissues.cordova.apache.org%3E Issue TrackingMailing List
- security.netapp.com/advisory/ntap-20210312-0007/ Third Party Advisory
- www.npmjs.com/package/systeminformation Product
- www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-21315 US Government Resource
Questions
Is CVE-2021-21315 being exploited?
Yes. CISA added CVE-2021-21315 to its Known Exploited Vulnerabilities catalog on 2022-01-18, with a federal remediation due date of 2022-02-01.
How do I fix CVE-2021-21315?
Upgrade to a fixed version: systeminformation (npm) 5.3.1. CISA's required action: Apply updates per vendor instructions.
From NVD, CISA KEV, FIRST EPSS and OSV.dev, checked . Status on NVD: Analyzed. The description is NVD's text, quoted as published.
Related
Latest CVEs this week
Critical and High CVEs from the last 7 days, with KEV and EPSS.
Exploited vulnerabilities by vendor
Every vendor in CISA's KEV catalog, with its count.
Npm package exploited vulnerabilities
Everything CISA lists as exploited for Npm package.
Vulnerability watch
A briefing and a fix pull request when an advisory hits your dependencies.
Know the day a CVE lands in your code
Connect a GitHub repository and ZeusQA checks its dependencies daily, briefs each advisory and opens the fix. Three test runs free, no card.