Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. glob
  4. ›
  5. CVE-2025-64756

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

November 17, 2025 (updated November 19, 2025)

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

References

  • github.com/advisories/GHSA-5j98-mcp5-4vw2
  • github.com/isaacs/node-glob
  • github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f
  • github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146
  • github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2
  • nvd.nist.gov/vuln/detail/CVE-2025-64756

Code Behaviors & Features

Detect and mitigate CVE-2025-64756 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 10.2.0 before 10.5.0, all versions starting from 11.0.0 before 11.1.0

Fixed versions

  • 11.1.0
  • 10.5.0

Solution

Upgrade to versions 10.5.0, 11.1.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

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

Source file

npm/glob/CVE-2025-64756.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 19 Nov 2025 12:20:06 +0000.