high7.8
CVE-2022-21810
Command injection in smartctl
Impact
All versions of the package smartctl are vulnerable to Command Injection via the info method due to improper input sanitization.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | smartctl | <= 1.0.0 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Smartctl Project | Smartctl | All versions |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js%23L18
- https://security.snyk.io/vuln/SNYK-JS-SMARTCTL-3175613
- https://github.com/advisories/GHSA-69f2-4375-qv9h
- https://nvd.nist.gov/vuln/detail/CVE-2022-21810
- https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js#23L18