目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-121751— nvm LTS 别名远程代码执行漏洞

一分钟漏洞结论

影响对象
nvm-sh nvm
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Node Version Manager (nvm) 是一个符合 POSIX 标准的 Shell 函数,用于管理多个 Node.js 版本。在 0.39.6 至 0.40.8 版本中, (以及其他用于刷新远程 LTS 别名的命令)会将镜像服务器 文件中的“版本列”内容直接存储到 目录下,而未进行任何验证。随后, 函数会在 Shell 算术表达式 中对 形式的值进行求值。 在 Bash 和 Zsh 环境中,算术求值过程会展开数组下标中的命令替换(command substitution)。因此,若存储的值为类似 的恶

CVSS 3.1 · Low
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-121751 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
nvm evaluates a malicious mirror's index.tab version strings as shell arithmetic via stored LTS aliases
来源: CVE Program / CVE List V5
Vulnerability Description
Node Version Manager (nvm) is a POSIX-compliant shell function for managing multiple node.js versions. In versions 0.39.6 through 0.40.8, `nvm ls-remote` (and other commands that refresh remote LTS aliases) store the version column of the mirror's `index.tab` in `$NVM_DIR/alias/lts/` without validating it, and `nvm_normalize_lts` later evaluates any suffix of an `lts/-N` value inside shell arithmetic `$((N+1))`. Under bash and zsh, arithmetic evaluation expands command substitutions in array subscripts, so a stored value such as `lts/-10*path[$(cmd)1]` runs `cmd` as the user when the alias is later resolved by purely local commands (`nvm ls`, `nvm alias`, `nvm use --lts`, `nvm which lts/`), and in every new shell when the `default` alias is `lts/*`. Exploitation requires the victim to use a hostile mirror -- via a compromised mirror or CDN, a network man-in-the-middle of an `http://` mirror, or a maliciously configured `NVM_NODEJS_ORG_MIRROR` -- and to run an affected command. The same sink is also reachable from a project `.nvmrc`, which is treated as hardening. dash is not affected. Version 0.41.0 only passes an all-digit `lts/-N` offset to arithmetic and drops `index.tab` rows whose version is not a valid version string.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
nvm-sh nvm 0.39.6 ~ 0.41.0 -

二、漏洞 CVE-2026-121751 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-121751 的情报信息

请登录查看更多情报信息。

CVE-2026-121751 其他参考 (2)

同批安全公告 · nvm-sh · 2026-11-04 · 共 7 条

CVE-2026-121746 5.5 MEDIUM nvm 通过符号链接 .nvmrc 覆盖任意文件漏洞
CVE-2026-121747 5.5 MEDIUM nvm 任意文件读取漏洞
CVE-2026-121748 3.6 LOW nvm 远程代码执行漏洞
CVE-2026-121749 3.3 LOW nvm 任意版本 .nvmrc 文件读取漏洞
CVE-2026-121750 3.1 LOW nvm 离线安装校验失败缓存漏洞
CVE-2026-121745 2.5 LOW nvm curl/wget 命令暴露敏感信息漏洞

IV. Related Vulnerabilities