Vulnerability · Published Nov 17, 2025 · Assigned by GitHub_M
CVE-2025-64756glob CLI: Command injection via -c/--cmd executes matches with shell:true
High 7.5
In plain English
A high-severity OS command injection in node-glob from isaacs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.1% (higher than 88% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.22 | npm | 11.6.4-r0 | ALPINE-CVE-2025-64756 |
| npm | glob | 11.1.0 | GHSA-5j98-mcp5-4vw2 |
| npm | glob | 10.5.0 | GHSA-5j98-mcp5-4vw2 |
Affected products (as reported)
Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H