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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 4.50% (percentile 92, 2026-11-26)
- **CWE:** CWE-78
- **Aliases:** GHSA-5j98-mcp5-4vw2
- **Published:** 2025-11-17T17:29:08.029Z
- **Modified:** 2026-10-07T21:10:00.200Z

## Who should check

- Projects that depend on npm package glob (\>= 11.0.0, \< 11.1.0)
- Anyone running isaacs node-glob \>= 10.2.0, \< 10.5.0; \>= 11.0.0, \< 11.1.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.

## Affected and fixed versions

- npm `glob`: affected \>= 11.0.0, \< 11.1.0; fixed 11.1.0, 10.5.0 (osv)
- isaacs node-glob: \>= 10.2.0, \< 10.5.0; \>= 11.0.0, \< 11.1.0 (cvelist)

## Mitigation

- Upgrade glob to one of 11.1.0, 10.5.0 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-64756. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-64756.md
Affected: glob >= 11.0.0, < 11.1.0
Fixed in: 11.1.0, 10.5.0

Steps:
1. Search this machine and project for glob (npm), isaacs node-glob: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-64756 being exploited?

There is no confirmed exploitation: CVE-2025-64756 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 4.50% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-64756?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2025-64756?

glob \>= 11.0.0, \< 11.1.0.

### Is there a fix for CVE-2025-64756?

Yes. Fixed in 11.1.0, 10.5.0. Upgrade glob to one of 11.1.0, 10.5.0 (or later in the same release line).

### How do I check if I'm affected by CVE-2025-64756?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-64756>
- patch: <https://github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f>
- patch: <https://github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146>
- other: <https://github.com/isaacs/node-glob>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-64756>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-5j98-mcp5-4vw2> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-64756> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-64756>
