Skip to content

Translation in progress Some entries still include text in the original language.

EventPast event

Langflow validate_code 装饰器致认证 RCE 漏洞

1 reports1 reporting sourcesLatest report

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

Progress timeline

Oct 6
  1. GitHub 安全公告Selected
    Langflow 修复 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

No discussion links have been collected for this event yet.

Attention trend

New sources per day

1 in 9 days·most 1 (Oct 6)·today 0

  • 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)

Hourly attention

Current attention 56·Peak in the comparable period 57 (Oct 7 12:00)·Change over the comparable past 24 hours 0%

0204060Oct 712:00Oct 910:00Oct 1108:00Oct 1306:00