Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. smartctl
  4. ›
  5. CVE-2022-21810

CVE-2022-21810: Command injection in smartctl

January 26, 2023 (updated April 1, 2025)

All versions of the package smartctl are vulnerable to Command Injection via the info method due to improper input sanitization.

References

  • github.com/advisories/GHSA-69f2-4375-qv9h
  • github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js
  • github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js%23L18
  • nvd.nist.gov/vuln/detail/CVE-2022-21810
  • security.snyk.io/vuln/SNYK-JS-SMARTCTL-3175613

Code Behaviors & Features

Detect and mitigate CVE-2022-21810 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 1.0.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.4 HIGH

CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/smartctl/CVE-2022-21810.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:12 +0000.