CVE-2025-24959 (CNNVD-202502-213)

LOW
中文标题:
zx 代码注入漏洞
英文标题:
Environment Variable Injection for dotenv API in zx
CVSS分数: 1.0
发布时间: 2025-02-03 20:48:16
漏洞类型: 代码注入
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

zx是Google开源的一个编写脚本的工具。 zx 8.3.1版本存在代码注入漏洞,该漏洞源于存在环境变量注入漏洞,会导致命令执行或异常行为。

英文描述:

zx is a tool for writing better scripts. An attacker with control over environment variable values can inject unintended environment variables into `process.env`. This can lead to arbitrary command execution or unexpected behavior in applications that rely on environment variables for security-sensitive operations. Applications that process untrusted input and pass it through `dotenv.stringify` are particularly vulnerable. This issue has been patched in version 8.3.2. Users should immediately upgrade to this version to mitigate the vulnerability. If upgrading is not feasible, users can mitigate the vulnerability by sanitizing user-controlled environment variable values before passing them to `dotenv.stringify`. Specifically, avoid using `"`, `'`, and backticks in values, or enforce strict validation of environment variables before usage.

CWE类型:
CWE-94
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
google zx >= 8.3.0, < 8.3.2 - - cpe:2.3:a:google:zx:>=_8.3.0,_<_8.3.2:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/google/zx/security/advisories/GHSA-qwp8-x4ff-5h87 x_refsource_CONFIRM
cve.org
访问
https://github.com/google/zx/pull/1094 x_refsource_MISC
cve.org
访问
CVSS评分详情
4.0 (cna)
LOW
1.0
CVSS向量: CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
机密性
LOW
完整性
LOW
可用性
LOW
后续系统影响 (Subsequent):
机密性
NONE
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-02-03 20:48:16
修改时间:
2025-02-12 20:51:25
创建时间:
2025-11-11 15:40:15
更新时间:
2025-11-11 15:59:32
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-24959 2025-11-11 15:23:10 2025-11-11 07:40:15
NVD nvd_CVE-2025-24959 2025-11-11 15:00:41 2025-11-11 07:48:06
CNNVD cnnvd_CNNVD-202502-213 2025-11-11 15:12:33 2025-11-11 07:59:32
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:59:32
vulnerability_type: 未提取 → 代码注入; cnnvd_id: 未提取 → CNNVD-202502-213; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 代码注入
  • cnnvd_id: 未提取 -> CNNVD-202502-213
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:06
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']