# CVE-2021-27185: Command injection in samba-client

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- 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): 4.89%, higher than 92% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-02-10T21:04:28.000Z
- Modified: 2026-06-17T03:44:25.553Z
- Also known as: GHSA-r3j7-x2g5-9gx6
- Weaknesses: CWE-74, CWE-77, CWE-78
- Assigned by: mitre

## Description

The samba-client package before 4.0.0 for Node.js allows command injection because of the use of process.exec.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- samba-client (npm): before 4.0.0
- samba-client_project samba-client: before 4.0.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://advisory.checkmarx.net/advisory/CX-2021-4302> (exploit, third-party-advisory, web)
- <https://github.com/eflexsystems/node-samba-client/releases/tag/4.0.0> (release-notes, third-party-advisory, web)
- <https://github.com/eflexsystems/node-samba-client/commit/5bc3bbad9b8d02243bc861a11ec73f788fbb1235> (patch, third-party-advisory, web)
- <https://www.npmjs.com/package/samba-client> (product, third-party-advisory, web)
- <https://security.netapp.com/advisory/ntap-20210319-0002/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-27185> (advisory)
- <https://github.com/eflexsystems/node-samba-client> (package)
- <https://security.netapp.com/advisory/ntap-20210319-0002> (web)

## Sources

- CVE List: [CVE-2021-27185](https://www.cve.org/CVERecord?id=CVE-2021-27185), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-r3j7-x2g5-9gx6](https://github.com/advisories/GHSA-r3j7-x2g5-9gx6), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-27185](https://nvd.nist.gov/vuln/detail/CVE-2021-27185), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-27185 · Whole record: https://cve.day/CVE-2021-27185.json · Rebuilt by cve.day 2026-11-25T22:57:59.901Z
