Command Injection in nvm via NVM_AUTH_HEADER in wget code path
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| nvm-sh | nvm | unaffected |
|
No data.
No data.
| Vendor | Product | Versions |
|---|---|---|
| Nvm-sh | Nvm | — |
Vendor Solution
Upgrade to nvm version 0.40.4 or later, which sanitizes NVM_AUTH_HEADER in the wget code path using nvm_sanitize_auth_header().
No CVSS v3.1
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.779% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Nvm-sh
Nvm-sh nvm |
|
| Vendors & Products |
Nvm-sh
Nvm-sh nvm |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | A command injection vulnerability exists in nvm (Node Version Manager) versions 0.40.3 and below. The nvm_download() function uses eval to execute wget commands, and the NVM_AUTH_HEADER environment variable was not sanitized in the wget code path (though it was sanitized in the curl code path). An attacker who can set environment variables in a victim's shell environment (e.g., via malicious CI/CD configurations, compromised dotfiles, or Docker images) can inject arbitrary shell commands that execute when the victim runs nvm commands that trigger downloads, such as 'nvm install' or 'nvm ls-remote'. | |
| Title | Command Injection in nvm via NVM_AUTH_HEADER in wget code path | |
| Weaknesses | CWE-78 CWE-95 |
|
| References |
| |
| Metrics |
cvssV4_0
|