SecurityContext

CVE-2021-42257: check_smart - Path Traversal

  • Cve: CVE-2021-42257
  • Name: check_smart - Path Traversal
  • Description: check_smart before 6.9.1 allows unintended drive access by an unprivileged user because it only checks for a substring match of a device path (the /dev/bus substring and a number), aka an unanchored regular expression.
  • Impact: Unprivileged users can access drives they shouldn't, potentially leading to data tampering or information disclosure.
  • Remediation: Update to version 6.9.1 or later, fixing the regular expression matching issue.
  • Vulnerability type: path_traversal
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: logged_in
  • Requirements: Attacker needs unprivileged user access
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
  • Epss score: 0.00389
  • Epss percentile: 0.33514
  • Assignee: [email protected]
  • Published at: 2021-10-11T20:15:07Z
  • Age in days: 1870
  • Modified at: 2026-06-17T04:09:31Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 5
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-42257
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-20Improper Input Validation

Public exploits

UrlSourceAdded date
http://www.openwall.com/lists/oss-security/2021/10/14/2nvd2021-10-11
https://bugzilla.suse.com/show_bug.cgi?id=1183057nvd2021-10-11

References

Same in every row:

  • Source: nvd
UrlTags
https://bugzilla.suse.com/show_bug.cgi?id=1183057Exploit, Issue Tracking, Patch, Third Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/14/2Exploit, Third Party Advisory
https://www.claudiokuenzler.com/blog/1068/check_smart-6.9.1-security-fix-release-pseudo-device-pathThird Party Advisory
https://www.claudiokuenzler.com/monitoring-plugins/check_smart.phpThird Party Advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-42257

Products

ProductAffectedPlatform boundSourcesUrl
check_smart_project:check_smart< 6.9.1nonvd/v1/products/check_smart_project/check_smart

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2021-10-11
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts