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

> Attackers can execute arbitrary commands via shell metacharacters in filenames when using the glob CLI's command option.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 17 Nov 2025
- **Updated:** 19 Nov 2025
- **Also known as:** BELL-CVE-2025-64756, CLEANSTART-2026-HY98415, CLEANSTART-2026-TH89899, CLSA-2026-1781830588, CLSA-2026-1781830590, ECHO-840f-d5ce-2603, GHSA-5j98-mcp5-4vw2, MINI-2459-hf3r-4v73, MINI-2mv9-8m4c-4r7f, MINI-5748-4rvf-8c83, MINI-5r94-9gvj-5r5v, MINI-68rg-7v88-q2ch, MINI-6w7m-9pfq-rcx3, MINI-9673-g3fg-pmh2, MINI-cfp5-87q2-f4hp, MINI-g2hq-g6c7-r9mx, MINI-ghwr-fx86-596c, MINI-j296-gmf7-fr5c, MINI-j2c5-vj5g-43xr, MINI-jj96-8mhh-vrx8, MINI-jqr7-j766-q252, MINI-q9vq-p8hj-62q6, MINI-vpfw-vgx8-w6jj, MINI-vqx6-4526-jjcr, MINI-wwc7-3mj2-xgc6, MINI-xf62-pcgr-q76c, MINI-xh62-4958-j2pp, ROOT-APP-NPM-CVE-2025-64756, openSUSE-SU-2025:15775-1

## What is CVE-2025-64756?

CVE-2025-64756 is a high-severity command injection vulnerability in isaacs node-glob, published on 17 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-78 (Improper Neutralization of Special Elements used in an OS Command)

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

4 open source packages ship an affected version, including glob. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `glob` | npm | From 10.2.0 | 10.5.0 |
| `glob` | npm | From 10.2.0 | 10.5.0 |
| `glob` | npm | From 11.0.0 | 11.1.0 |
| `glob` | npm | From 11.0.0 | 11.1.0 |
| `opa` | openSUSE:Tumbleweed | All versions | 1.11.0-1.1 |

Products: Isaacs Glob.

## How do I fix CVE-2025-64756?

Upgrade glob to a fixed version for your release line: 10.5.0 or 11.1.0.

## Is CVE-2025-64756 being exploited?

There is no known exploitation of CVE-2025-64756 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-64756 and fix it if it is affected.

What it is: CVE-2025-64756 is a high-severity command injection vulnerability in isaacs node-glob, published on 17 Nov 2025. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-64756 in the wild and no public exploit code.

Affected packages and fixed versions:
- glob (npm): affected from 10.2.0; fixed in 10.5.0
- glob (npm): affected from 10.2.0; fixed in 10.5.0
- glob (npm): affected from 11.0.0; fixed in 11.1.0
- glob (npm): affected from 11.0.0; fixed in 11.1.0

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2025-64756/ (Markdown: https://insights.sbomify.com/CVE-2025-64756/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-64756
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-64756
- OSV: https://osv.dev/vulnerability/CVE-2025-64756

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-64756/
Summaries are generated and may contain mistakes; the official description above is the record.
