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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)3.1%top 12.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Alpine:v3.22npm11.6.4-r0ALPINE-CVE-2025-64756
npmglob11.1.0GHSA-5j98-mcp5-4vw2
npmglob10.5.0GHSA-5j98-mcp5-4vw2

Affected products (as reported)

VendorProductVersions
isaacs node-glob >= 10.2.0, < 10.5.0>= 11.0.0, < 11.1.0

Weakness: CWE-78 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

References