What’s Vulnerable › Vulnerabilities
CVE-2025-64756: glob CLI: Command injection via -c/--cmd executes matches with shell:true
- Severity: high (CVSS 7.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 3.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-11-17 · updated 2026-10-07
- Weakness: CWE-78
Description
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.
Affected products
- isaacs node-glob: from 10.2.0 before 10.5.0; from 11.0.0 before 11.1.0 — fixed in 10.5.0, 11.1.0
How to fix
Upgrade to a fixed version: isaacs node-glob 10.5.0, 11.1.0. Check the vendor advisory for mitigations.
References
- https://github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f
- https://github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146
- https://github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2
Get alerted when CVE-2025-64756 or the next vulnerability affects your stack