{"answers":{"affected":"2 open source packages ship an affected version, including systeminformation. It affects 2 products.","exploited":"Yes. Attackers have exploited CVE-2021-21315 in the wild since at least 18 Jan 2022.","fix":"Upgrade systeminformation to 5.3.1 or later. US federal agencies must fix it by 1 Feb 2022.","what":"CVE-2021-21315 is a high-severity vulnerability in sebhildebrandt systeminformation, published on 16 Feb 2021."},"fix_prompt":"Check this codebase for CVE-2021-21315 and fix it if it is affected.\n\nWhat it is: CVE-2021-21315 is a high-severity vulnerability in sebhildebrandt systeminformation, published on 16 Feb 2021. \nExploitation: Yes. Attackers have exploited CVE-2021-21315 in the wild since at least 18 Jan 2022.\n\nAffected packages and fixed versions:\n- systeminformation (npm): affected all versions; fixed in 5.3.1\n- systeminformation (npm): affected all versions; fixed in 5.3.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-21315/ (Markdown: https://insights.sbomify.com/CVE-2021-21315/index.md)","id":"CVE-2021-21315","markdown":"https://insights.sbomify.com/CVE-2021-21315/index.md","name":"CVE-2021-21315","record":{"aliases":["GHSA-2m8v-572m-ff2v"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"cordova","vendor":"apache"},{"product":"systeminformation","vendor":"systeminformation"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"description":"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2021-03-01","github_poc":6,"max_poc_stars":160,"metasploit":0,"nuclei":1,"refs":[{"date":"2021-03-01T18:52:41Z","kind":"github_poc","ref":"https://github.com/ForbiddenProgrammer/CVE-2021-21315-PoC","stars":160,"title":"CVE 2021-21315 PoC"},{"date":"2021-09-07T14:31:20Z","kind":"github_poc","ref":"https://github.com/alikarimi999/CVE-2021-21315","stars":4,"title":null},{"date":"2021-11-10T06:40:17Z","kind":"github_poc","ref":"https://github.com/G01d3nW01f/CVE-2021-21315","stars":1,"title":"rust noob tried write easy exploit code with rust lang"},{"date":"2021-07-18T01:18:31Z","kind":"github_poc","ref":"https://github.com/MazX0p/CVE-2021-21315-exploit","stars":0,"title":"systeminformation"},{"date":"2021-11-14T14:52:25Z","kind":"github_poc","ref":"https://github.com/xMohamed0/CVE-2021-21315-POC","stars":0,"title":null},{"date":"2026-09-28T08:22:28Z","kind":"github_poc","ref":"https://github.com/jimahub/scenario-d-kev","stars":0,"title":"Thesis scenario test (research only): Scenario D: KEV override path - systeminformation@5.3.0 CVE-2021-21315"},{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-21315.yaml","stars":null,"title":"Node.JS System Information Library \u003c5.3.1 - Remote Command Injection"}],"tier":"exploited"},"has_fix":true,"headline":"System Information Library for Node.JS Command Injection","id":"CVE-2021-21315","indexable":true,"kev":{"dateAdded":"2022-01-18","dueDate":"2022-02-01","knownRansomwareCampaignUse":"Unknown","product":"System Information Library for Node.JS","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Npm package","vulnerabilityName":"System Information Library for Node.JS Command Injection"},"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2021"},"n_packages":2,"n_references":5,"next":{"headline":"Arbitrary code execution in less-openui5","id":"CVE-2021-21316"},"packages":[{"ecosystem":"npm","fixed":["5.3.1"],"introduced":["0"],"last_affected":[],"package":"systeminformation","purl":null,"source":"GHSA-2m8v-572m-ff2v"},{"ecosystem":"npm","fixed":["5.3.1"],"introduced":["0"],"last_affected":[],"package":"systeminformation","purl":"pkg:npm/systeminformation","source":"GHSA-2m8v-572m-ff2v"}],"prev":{"headline":"XSS injection on ticket update","id":"CVE-2021-21314"},"products":["systeminformation"],"published":"2021-02-16","related":[{"cvss_score":9.8,"headline":"Cross-site scripting in n/a","id":"CVE-2014-0073","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":7.5,"headline":"Security feature bypass in n/a","id":"CVE-2014-0072","kev_date_added":null,"published":"2017-10-30"},{"cvss_score":7.5,"headline":"Information Exposure in cordova-android","id":"CVE-2016-6799","kev_date_added":null,"published":"2017-05-09"},{"cvss_score":7.4,"headline":"Supply chain in Apache Cordova Android","id":"CVE-2017-3160","kev_date_added":null,"published":"2018-02-01"},{"cvss_score":6.4,"headline":"Other in n/a","id":"CVE-2014-3500","kev_date_added":null,"published":"2014-11-15"},{"cvss_score":5.3,"headline":"Misconfiguration in n/a","id":"CVE-2015-1835","kev_date_added":null,"published":"2017-10-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"active","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["sebhildebrandt"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-21315/"}