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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-121749— nvm 任意版本 .nvmrc 文件读取漏洞

一分钟漏洞结论

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

Node Version Manager(nvm)是一个符合 POSIX 标准的 Shell 函数,用于管理多个 Node.js 版本。在 0.5.0 至 0.40.8 版本中,请求的版本模式在 、 和 函数中被作为裸参数直接传递给 ,未使用 选项。如果 文件的第一行以 开头(例如 ),该字符串会被解析为 的选项;在使用 GNU grep 时, 选项会递归搜索当前目录(并跟随符号链接),而非搜索版本列表。当执行裸 命令时,nvm 会将从这些文件中匹配到的字符串视为版本号,将其打印到终端,并基于配置的镜像源中的下载

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

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

漏洞信息

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

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

Vulnerability Title
nvm passes the version pattern to grep without -e, letting a .nvmrc inject grep options and read local files
来源: 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.5.0 through 0.40.8, the requested version pattern is passed to `grep` as a bare argument, without `-e`, in `nvm_ls_remote_index_tab`, `nvm_remote_version`, and `nvm_ls_cached`. A `.nvmrc` whose first line starts with `-`, such as `-Rohenpm_[A-Za-z0-9]*`, is parsed as grep options; with GNU grep, `-R` searches the current directory recursively (following symlinks) instead of the version list. On a bare `nvm install`, nvm then treats a matched string from those files as the version, prints it, and requests it from the configured mirror inside download URLs, so for example a repository containing a symlink to `../../.npmrc` can leak the user's npm token to the terminal and to the mirror's and any proxy's logs. The disclosure is read-only and limited to the characters `0-9A-Za-z._+-`. Version 0.41.0 passes every version pattern to grep with `-e`.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
参数注入或修改
来源: CVE Program / CVE List V5

受影响产品

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

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

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

未找到公开 POC。

登录以生成 AI POC

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

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

CVE-2026-121749 其他参考 (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-121750 3.1 LOW nvm 离线安装校验失败缓存漏洞
CVE-2026-121751 3.1 LOW nvm LTS 别名远程代码执行漏洞
CVE-2026-121745 2.5 LOW nvm curl/wget 命令暴露敏感信息漏洞

IV. Related Vulnerabilities