Command injection in samba-client
The samba-client package before 4.0.0 for Node.js allows command injection because of the use of process.exec.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | samba-client | < 4.0.0 | 4.0.0 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-27185
- https://github.com/eflexsystems/node-samba-client/commit/5bc3bbad9b8d02243bc861a11ec73f788fbb1235
- https://advisory.checkmarx.net/advisory/CX-2021-4302
- https://github.com/eflexsystems/node-samba-client
- https://github.com/eflexsystems/node-samba-client/releases/tag/4.0.0
- https://security.netapp.com/advisory/ntap-20210319-0002
- https://www.npmjs.com/package/samba-client
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-74, CWE-77, CWE-78- Platform
- npm
- Package
samba-client- Disclosed
- 11.02.2021
- Updated
- 11.10.2026 10:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-r3j7-x2g5-9gx6 - CC BY 4.0
Vulnerability history: samba-client
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.