nday
CVE-2026-40111 GHSA-v7px-3835-7gjx

PraisonAIAgents has an OS Command Injection via shell=True in Memory Hooks Executor (memory/hooks.py)

MervinPraison / PraisonAIAgents

披露于 。已有补丁记录,修复版本是 praisonaiagents 1.5.128。四个 PoC 来源都还没有收录。尚未列入 CISA KEV。

标签 漏洞类型command injection 攻击途径本地无需用户交互 软件包生态PyPI
这些标签的依据

这些标签由 nday 按固定规则从下列事实自动推导,不是 NVD、编号分配方或其他来源给出的。全部标签和规则见 ~/tags。

command injection
CWE-78(来源:编号分配方 GitHub_M、NVD(转录自 [email protected])、GitHub 公告 GHSA-v7px-3835-7gjx)
本地
编号分配方 GitHub_M 给出的 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H(CVSS 4.0)中的 AV:L
无需用户交互
编号分配方 GitHub_M 给出的 CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H(CVSS 4.0)中的 UI:N
PyPI
GHSA-v7px-3835-7gjx:pip 包 praisonaiagents
当前阶段
PAT
披露
CVSS
9.3 CRITICAL v4.0

生命周期

横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
04-09T21:14Z
PAT补丁
praisonaiagents 1.5.128
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录

摘要

PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, he memory hooks executor in praisonaiagents passes a user-controlled command string directly to subprocess.run() with shell=True at src/praisonai-agents/praisonaiagents/memory/hooks.py. No sanitization is performed and shell metacharacters are interpreted by /bin/sh before the intended command executes. Two independent attack surfaces exist. The first is via pre_run_command and post_run_command hook event types registered through the hooks configuration. The second and more severe surface is the .praisonai/hooks.json lifecycle configuration, where hooks registered for events such as BEFORE_TOOL and AFTER_TOOL fire automatically during agent operation. An agent that gains file-write access through prompt injection can overwrite .praisonai/hooks.json and have its payload execute silently at every subsequent lifecycle event without further user interaction. This vulnerability is fixed in 1.5.128.

以上是 CVE 记录(cvelist)中的原文,未经改写。

利用条件

按 CVSS 向量说明攻击需要的条件。
攻击途径 AV:L
本地:需要本地或 SSH 会话,或诱使用户在本机上操作
攻击复杂度 AC:L
低:不需要绕过目标特有的安全防护
攻击前提 AT:N
无:能否成功与目标的部署和运行条件无关
所需权限 PR:L
低:普通用户权限
用户交互 UI:N
无:除攻击者外不需要任何人配合

CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

CVSS 4.0 向量,来自 CVE 记录,由 CNA GitHub_M 评定。

事件记录

+DIS披露

CVE 记录发布,编号分配方是 GitHub_M。CVSS 9.3,严重。CISA 的 SSVC 评估中利用状态为 poc。

来源 cvelist · 本站 批量导入 · 原始记录
{
  "id": 19107,
  "type": "disclosed",
  "source": "cvelist",
  "url": "https://www.cve.org/CVERecord?id=CVE-2026-40111",
  "occurred_at": "2026-04-09T21:14:55.352Z",
  "observed_at": "2026-11-12T15:03:42.190415Z",
  "is_backfill": true,
  "dedupe_key": "",
  "detail": {
    "cvss": {
      "source": "cna",
      "vector": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
      "version": "4.0",
      "base_score": 9.3,
      "base_severity": "CRITICAL"
    },
    "ssvc": {
      "timestamp": "2026-04-13T15:29:58.666017Z",
      "automatable": "no",
      "exploitation": "poc",
      "technical_impact": "total"
    },
    "state": "PUBLISHED",
    "date_published": "2026-04-09T21:14:55.352Z",
    "assigner_short_name": "GitHub_M"
  }
}
时间未知来源未给出时间
+PAT补丁发布

公告给出修复版本 praisonaiagents 1.5.128。公告本身发布于 ,补丁实际发布时间没有记录。

来源 ghsa GHSA-v7px-3835-7gjx · 本站 批量导入 · 原始记录
{
  "id": 19033,
  "type": "patch_released",
  "source": "ghsa",
  "url": "https://github.com/advisories/GHSA-v7px-3835-7gjx",
  "occurred_at": null,
  "observed_at": "2026-11-12T15:03:36.174798Z",
  "is_backfill": true,
  "dedupe_key": "GHSA-v7px-3835-7gjx",
  "detail": {
    "cvss": {
      "cvss_v3": {
        "score": 0.0,
        "vector_string": null
      },
      "cvss_v4": {
        "score": 9.3,
        "vector_string": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
      }
    },
    "cwes": [
      {
        "name": "Improper Neutralization of Special Elements used in an OS Command",
        "cwe_id": "CWE-78"
      }
    ],
    "ghsa_id": "GHSA-v7px-3835-7gjx",
    "packages": [
      {
        "name": "praisonaiagents",
        "ecosystem": "pip",
        "first_patched_version": "1.5.128",
        "vulnerable_version_range": "<= 1.5.126"
      }
    ],
    "severity": "critical",
    "references": [
      "https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-v7px-3835-7gjx",
      "https://nvd.nist.gov/vuln/detail/CVE-2026-40111",
      "https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-487.yaml",
      "https://pypi.org/project/praisonaiagents",
      "https://github.com/advisories/GHSA-v7px-3835-7gjx"
    ],
    "fix_commit_urls": [],
    "github_reviewed_at": "2026-04-10T19:21:54Z",
    "advisory_updated_at": "2026-11-16T16:01:28Z",
    "source_code_location": "https://github.com/MervinPraison/PraisonAI",
    "advisory_published_at": "2026-04-10T19:21:54Z"
  }
}

纠错

报告错误或缺失

页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。

研究员讨论

近 7 天有 0 位研究员提到

研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。

尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。

讨论

0 条评论

还没有评论。