EventPast event
Langflow validate_code 装饰器致认证 RCE 漏洞
Start here
AI overview
Langflow 的 /api/v1/validate/code 接口在 validate_code 函数中用 exec() 执行用户提交的 FunctionDef 节点,而 Python 会在定义时立即求值装饰器,攻击者借此以任意认证用户身份在服务器上执行任意代码。该接口在 v1.7.2 之前完全无认证,v1.7.2 至 v1.10.0 需有效会话但仍可触发,AUTO_LOGIN 下任意用户亦可利用。漏洞已在 v1.10.1 修复。
Generated by AI from reports · Updated 5 days ago
Latest update
Langflow 修复 validate_code 装饰器导致的认证远程代码执行漏洞Progress timeline
Oct 6
- GitHub 安全公告SelectedLangflow 修复 validate_code 装饰器导致的认证远程代码执行漏洞
Langflow 的 /api/v1/validate/code 接口在 validate_code 函数中用 exec() 执行用户提交的 FunctionDef 节点,而 Python 会在定义时立即求值装饰器,攻击者借此以任意认证用户身份在服务器上执行任意代码。该接口在 v1.7.2 之前完全无认证,v1.7.2 至 v1.10.0 需有效会话但仍可触发,AUTO_LOGIN 下任意用户亦可利用。漏洞已在 v1.10.1 通过 PR #13696 修复,validate_code() 不再 exec() 提交的函数定义,仅做 compile() 以暴露语法错误,同时解决了重复公告 GHSA-xjq8-cqrm-7m4x 中通过默认参数求值触发的同类利用。
Related discussion
Attention trend
New sources per day
- Oct 6: 1 new sources (1 outlets, 0 accounts)
- Oct 7: 0 new sources (0 outlets, 0 accounts)
- Oct 8: 0 new sources (0 outlets, 0 accounts)
- Oct 9: 0 new sources (0 outlets, 0 accounts)
- Oct 10: 0 new sources (0 outlets, 0 accounts)
- Oct 11: 0 new sources (0 outlets, 0 accounts)
- Oct 12: 0 new sources (0 outlets, 0 accounts)
- Oct 13: 0 new sources (0 outlets, 0 accounts)
- Oct 14: 0 new sources (0 outlets, 0 accounts)