CVE-2025-64756
HIGH 7.5CVSS 3.1glob CLI: Command injection via -c/--cmd executes matches with shell:true
Glob matches files using patterns the shell uses. Starting in version 10.2.0 and prior to versions 10.5.0 and 11.1.0, the glob CLI contains a command injection vulnerability in its -c/--cmd option that allows arbitrary command execution when processing files with malicious names. When glob -c <command> <patterns> are used, matched filenames are passed to a shell with shell: true, enabling shell metacharacters in filenames to trigger command injection and achieve arbitrary code execution under the user or CI account privileges. This issue has been patched in versions 10.5.0 and 11.1.0.
- Published
- 17 Nov 2025
- Last modified
- 7 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-78
- Also known as
- GHSA-5j98-mcp5-4vw2
- Sources
- NVDJSONOSV GHSA-5j98-mcp5-4vw2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | isaacs | globcpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:* |
>= 10.2.0, < 10.5.0 | 10.5.0 |
| NVD | isaacs | globcpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:* |
>= 11.0.0, < 11.1.0 | 11.1.0 |
| OSV | npm | glob | >= 11.0.0, < 11.1.0 | 11.1.0 |
| OSV | npm | glob | >= 10.2.0, < 10.5.0 | 10.5.0 |
References
- https://github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f · Patch, WEB
- https://github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146 · Patch, WEB
- https://github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2 · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-64756 · ADVISORY
- https://github.com/isaacs/node-glob · PACKAGE
History
- 25 Nov 2026 20:59 UTC · NVD: first stored (published 17 Nov 2025)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 17 Nov 2025)