---
cve: "CVE-2026-1665"
severity: "MEDIUM"
cvss: 5.4
epss: "0.7%"
vendor: "nvm-sh"
kev: false
exploited: false
published: "2026-01-29 23:16:11"
tags: [cve, security, medium]
source: tsecurity.de CVE-Dossier
exported: "2026-09-23T06:22:02+02:00"
---

# CVE-2026-1665

> 5.4 MEDIUM · 🧪 PoC

## Beschreibung

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

## CVSS-Vektor

```
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
```

| Metrik | Wert | Bewertung |
|---|---|---|
| AV Angriffsvektor | Lokal | good |
| AC Komplexität | Gering | bad |
| PR Privilegien | Gering | warn |

## Patch verfügbar (OSV)

- 44e2590cdf257faf7d885e4470be8dc66cec9506 (Commit)
- 62387b8f92aa012d48202747fd75c40850e5e261 (Commit)

## Referenzen

- <https://github.com/nvm-sh/nvm/commit/44e2590cdf257faf7d885e4470be8dc66cec9506>
- <https://github.com/nvm-sh/nvm/releases/tag/v0.40.4>
- <https://github.com/nvm-sh/nvm>
- <https://github.com/nvm-sh/nvm/pull/3380>

---
_Exportiert aus dem [tsecurity.de CVE-Dossier](https://tsecurity.de/cve?cve=CVE-2026-1665) · Datenquellen: EUVD (ENISA), NVD, OSV, CISA KEV, FIRST EPSS, Exploit-DB, BSI BITS_
