已开启
CVE-2025-65106 #7
openeuler-ci-bot创建于  3月16日
openeuler-ci-bot
openeuler-ci-bot成员
3月16日 创建

一、漏洞信息
漏洞编号:CVE-2025-65106
漏洞归属组件:python-langchain
漏洞归属的版本:0.3.25
CVSS评分:
BaseScore:8.3 High
Vector:CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
漏洞简述:
LangChain is a framework for building agents and LLM-powered applications. From versions 0.3.79 and prior and 1.0.0 to 1.0.6, a template injection vulnerability exists in LangChain s prompt template system that allows attackers to access Python object internals through template syntax. This vulnerability affects applications that accept untrusted template strings (not just template variables) in ChatPromptTemplate and related prompt template classes. This issue has been patched in versions 0.3.80 and 1.0.7.
漏洞公开时间:2025-11-22 06:16:32
漏洞创建时间:2026-03-16 14:04:51
漏洞详情参考链接:
https://nvd.nist.gov/vuln/detail/CVE-2025-65106

更多参考(点击展开)
参考来源 参考链接 来源链接
https://github.com/langchain-ai/langchain/pull/34038
https://github.com/langchain-ai/langchain/security/advisories/GHSA-6qv9-48xg-fc7f
https://www.cve.org/CVERecord?id=CVE-2025-65106
https://www.mend.io/vulnerability-database/CVE-2025-65106
https://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00
https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a
https://github.com/advisories/GHSA-6qv9-48xg-fc7f
https://bugzilla.redhat.com/show_bug.cgi?id=2416504
https://nvd.nist.gov/vuln/detail/CVE-2025-65106
https://github.com/langchain-ai/langchain

漏洞分析指导链接:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
漏洞数据来源:
七彩瞬析开源风险感知平台
漏洞补丁信息:

详情(点击展开)
影响的包 修复版本 修复补丁 问题引入补丁 来源
langchain-ai/langchain https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a ljqc
langchain-ai/langchain https://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00 ljqc
https://github.com/langchain-ai/langchain/pull/34038 snyk
https://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00 osv
https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a osv

二、漏洞分析结构反馈
影响性分析说明:

openEuler评分:

受影响版本排查(受影响/不受影响):
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):

修复是否涉及abi变化(是/否):
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):

原因说明:
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):

likedislike
openeuler-ci-botopeneuler-ci-bot成员
3月16日 添加了label:CVE/UNFIXED
openeuler-ci-bot
openeuler-ci-bot成员
3月16日 评论:

issue处理注意事项:
1. 提交正常修复分支的修复PR时,必须关联当前issue,否则无法关闭当前issue;
2. 模板内容需要填写完整, 无论是受影响或者不受影响都需要填写完整内容;
3. 以下为模板中需要填写完整的内容, 请复制到评论区回复;
注: 内容的关键词(影响性分析说明, openEuler评分, 受影响版本排查(受影响/不受影响), 修复是否涉及abi变化(是/否), 原因说明)不能省略,省略后cve-manager将无法正常解析填写内容.


影响性分析说明:

openEuler评分: (评分和向量)

受影响版本排查(受影响/不受影响):
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):

修复是否涉及abi变化(是/否):
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):

原因说明:
1.master(0.3.25):
2.openEuler-20.03-LTS-SP4:
3.openEuler-22.03-LTS-SP4:
4.openEuler-24.03-LTS:
5.openEuler-24.03-LTS-Next(0.3.25):
6.openEuler-24.03-LTS-SP1:
7.openEuler-24.03-LTS-SP2(0.3.25):
8.openEuler-24.03-LTS-SP3(0.3.25):


原因说明填写请参考下方表格(注意:版本是否受影响和版本的原因说明必须对应,例如master版本分支受影响,那原因说明只能是受影响对应的原因之一!):

分支状态
原因说明 使用场景
受影响 正常修复 受影响且需要修复(包含升级版本修复)的漏洞;
受影响且已经修复的漏洞(历史修复PR也需要关联issue);
若因特殊原因无法修复,应修改原因说明为【不修复-特殊原因】,并在安委会备案相关情况。
受影响 暂不修复-漏洞仍在分析中 已关注到相关漏洞,正在处理,未明确漏洞影响和修复方案。
受影响 暂不修复-暂无解决方案或补丁 当前没有可用的修复或补救措施。【影响性分析】中应包含有关为什么没有修复或补救措施的详细说明、上游相关PR等。
受影响 不修复-超出修复范围 没有漏洞的修复计划。当版本停维、软件包宣布生命周期终止或弃用使用。
受影响 不修复-特殊原因导致不再修复 如存在其他特殊情况不修复相关漏洞,或评估后无法升级修复,应在openEuler社区安全委员会例会进行说明备案。
【影响性分析】中应包含不发布修复的详细说明、特殊情况还应有安委会会议纪要。
不受影响 不受影响-组件不存在 软件不受影响,因为易受攻击的组件不在产品中。
不受影响 不受影响-已有内置的内联控制或缓解措施 内置的内联控制或缓解措施可防止攻击者利用漏洞
不受影响 不受影响-漏洞代码不能被攻击者触发 易受攻击的组件存在,并且该组件包含易受攻击的代码。但是,易受攻击的代码的使用方式使得攻击者无法进行任何预期的攻击。
不受影响 不受影响-漏洞代码不在执行路径 易受影响的代码在执行过程中不可访问,包括产品的非预期状态。产品不使用也不执行的组件。
不受影响 不受影响-漏洞代码不存在 产品不受影响,因为漏洞背后的代码在产品中不存在。与component_not_present不同的是,有问题的组件存在,但由于某种原因(例如安全的编译器选项)使漏洞的特定代码不存在于组件中。

issue处理具体操作请参考:
https://atomgit.com/openeuler/cve-manager/blob/master/cve-vulner-manager/doc/md/manual.md
pr关联issue具体操作请参考:
https://docs.atomgit.com/docs/help/home/org_project/pullrequests/pr-related-issue

likedislike
openeuler-ci-botopeneuler-ci-bot成员
3月16日 添加了label:sig/sig-intelligence
openeuler-ci-bot
openeuler-ci-bot成员
3月16日 评论:

Welcome To openEuler Community

Hey @openeuler-ci-bot , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.

Contact Guide

If you have any questions, please contact the SIG: sig-intelligence ,
and any of the maintainers: @fromhsc, @gogoxiaoxiao, @huzhengce, @kaitiandu, @liumiao27, @lyhu, @wqianli ,
and any of the committers: @Shine_Ws, @hongyu-shi, @xiaocy1997, @zxstty .

likedislike
openeuler-ci-bot
openeuler-ci-bot成员
3月16日 评论:
参考网址 关联pr 状态 补丁链接
https://www.opencve.io/cve/CVE-2025-65106NoneNonehttps://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00
https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2025-65106
https://security-tracker.debian.org/tracker/CVE-2025-65106
http://www.cnnvd.org.cn/web/vulnerability/queryLds.tag?qcvCnnvdid=CVE-2025-65106
https://nvd.nist.gov/vuln/detail/CVE-2025-65106NoneNonehttps://github.com/langchain-ai/langchain/commit/fa7789d6c21222b85211755d822ef698d3b34e00
https://github.com/langchain-ai/langchain/commit/c4b6ba254e1a49ed91f2e268e6484011c540542a
https://ubuntu.com/security/CVE-2025-65106NoneNonehttps://discourse.ubuntu.com/c/project

说明:补丁链接仅供初步排查参考,实际可用性请人工再次确认,补丁下载验证可使用CVE补丁工具。
若补丁不准确,烦请在此issue下评论 '/report-patch 参考网址 补丁链接1,补丁链接2' 反馈正确信息,便于我们不断优化工具,不胜感激。
如 /report-patch https://security-tracker.debian.org/tracker/CVE-2021-3997 https://github.com/systemd/systemd/commit/5b1cf7a9be37e20133c0208005274ce4a5b5c6a1

likedislike
openeuler-ci-botopeneuler-ci-bot成员
3月17日 修改了issue 的描述
Cchenyanpan
4月19日 关联了pull request:Fix CVE-2024-0243, CVE-2024-10940, CVE-2024-1455, CVE-2024-2965, CVE-2024-3571, CVE-2024-5998, CVE-2024-8309, CVE-2025-2828, CVE-2025-65106, CVE-2026-26013, CVE-2026-34070, CVE-2026-40087
Cchenyanpan
4月22日 关联了pull request:Fix CVE-2024-0243, CVE-2024-10940, CVE-2024-1455, CVE-2024-2965, CVE-2024-3571, CVE-2024-5998, CVE-2024-8309, CVE-2025-2828, CVE-2025-65106, CVE-2026-26013, CVE-2026-34070, CVE-2026-40087
openeuler-ci-botopeneuler-ci-bot成员
4月30日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
5月1日 修改了issue 的描述
XXingSongSun
6月2日 关联了pull request:Fix CVE-2025-65106
Wwang-qi
6月4日 关联了pull request:Fix CVE-2025-65106
Iinfra_team
6月15日 关联了pull request:fix(cve): 修复 CVE-2025-65106 在 python-langchain 中的漏洞
openeuler-ci-botopeneuler-ci-bot成员
6月23日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
6月24日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
8月19日 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
8月20日 修改了issue 的描述