CVE-2025-6985 (CNNVD-202510-769)

HIGH
中文标题:
langchain-text-splitters 代码问题漏洞
英文标题:
XXE Vulnerability in langchain-ai/langchain
CVSS分数: 7.5
发布时间: 2025-10-06 17:58:29
漏洞类型: 代码问题
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

langchain-text-splitters是LangChain开源的一个Python包。 langchain-text-splitters 0.3.8版本存在代码问题漏洞,该漏洞源于HTMLSectionSplitter类允许使用任意XSLT样式表,可能导致XML外部实体攻击,攻击者可读取任意本地文件或执行外部HTTP请求。

英文描述:

The HTMLSectionSplitter class in langchain-text-splitters version 0.3.8 is vulnerable to XML External Entity (XXE) attacks due to unsafe XSLT parsing. This vulnerability arises because the class allows the use of arbitrary XSLT stylesheets, which are parsed using lxml.etree.parse() and lxml.etree.XSLT() without any hardening measures. In lxml versions up to 4.9.x, external entities are resolved by default, allowing attackers to read arbitrary local files or perform outbound HTTP(S) fetches. In lxml versions 5.0 and above, while entity expansion is disabled, the XSLT document() function can still read any URI unless XSLTAccessControl is applied. This vulnerability allows remote attackers to gain read-only access to any file the LangChain process can reach, including sensitive files such as SSH keys, environment files, source code, or cloud metadata. No authentication, special privileges, or user interaction are required, and the issue is exploitable in default deployments that enable custom XSLT.

CWE类型:
CWE-611
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
langchain-ai langchain-ai/langchain - ≤ latest - cpe:2.3:a:langchain-ai:langchain-ai_langchain:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
无标题 OTHER
cve.org
访问
CVSS评分详情
3.0 (cna)
HIGH
7.5
CVSS向量: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
机密性
HIGH
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-10-06 17:58:29
修改时间:
2025-10-06 18:10:28
创建时间:
2025-11-11 15:40:51
更新时间:
2025-11-11 16:00:21
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-6985 2025-11-11 15:23:35 2025-11-11 07:40:51
NVD nvd_CVE-2025-6985 2025-11-11 15:01:05 2025-11-11 07:48:37
CNNVD cnnvd_CNNVD-202510-769 2025-11-11 15:12:29 2025-11-11 08:00:21
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:21
vulnerability_type: 未提取 → 代码问题; cnnvd_id: 未提取 → CNNVD-202510-769; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 代码问题
  • cnnvd_id: 未提取 -> CNNVD-202510-769
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:37
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']