# CVE-2022-21810: Command injection in smartctl

- Severity: High 7.4 (CVSS:3.1, scored by snyk) `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.18%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-01-25T05:00:03.902Z
- Modified: 2026-06-17T04:27:01.767Z
- Also known as: GHSA-69f2-4375-qv9h
- Weaknesses: CWE-77, CWE-78
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: snyk

## Description

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

(As written by CVE List.)

## Affected

- smartctl: before *
- smartctl (npm): up to 1.0.0
- smartctl_project smartctl: no versions given

## Every score

- snyk: CVSS:3.1 7.4 High `CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H/E:P`
- GitHub: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://security.snyk.io/vuln/SNYK-JS-SMARTCTL-3175613> (exploit, third-party-advisory, web)
- <https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js%23L18> (broken-link, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-21810> (advisory)
- <https://github.com/baslr/node-smartctl/blob/f61266084d5b3e4baae9bd85f67ec4ec6a716736/index.js#23L18> (web)

## Sources

- CVE List: [CVE-2022-21810](https://www.cve.org/CVERecord?id=CVE-2022-21810), CVE Terms of Use, modified 2025-04-01
- GitHub Advisory Database: [GHSA-69f2-4375-qv9h](https://github.com/advisories/GHSA-69f2-4375-qv9h), CC-BY-4.0, modified 2025-04-01
- NVD: [CVE-2022-21810](https://nvd.nist.gov/vuln/detail/CVE-2022-21810), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21810 · Whole record: https://cve.day/CVE-2022-21810.json · Rebuilt by cve.day 2026-11-25T22:58:18.324Z
