Skip to content
High 7.8

OS Command Injection in praisonai

CVE-2026-57142 First seen on SecPulse

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-57142 has been found in praisonai.
Attackers can target a specific entry point like TEMPLATE.yaml over the network to misuse the product.
Successful exploitation can lead to full system takeover.
What to do: upgrade praisonai to 4.6.61 or later.
If unsure, ask your IT team or search "praisonai CVE-2026-57142" on the vendor's site.

CVE-2026-57142 (praisonai) — CWE-78
Attack vector: local / unauthenticated
Attack surface: TEMPLATE.yaml / requires.tools / workflow.yaml / YAMLWorkflowParser
Patched: 4.6.61 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

OS command injection (CWE-78) exists in praisonai. Attackers reach the vulnerable code path via TEMPLATE.yaml without authentication.

Affected scope

Check the vendor advisory for the affected versions of praisonai. Attack surface: TEMPLATE.yaml / requires.tools / workflow.yaml / YAMLWorkflowParser.

Severity

Severity: ?. Successful exploitation can lead to full system takeover.

How to fix

Update to 4.6.61.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'praisonai' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'praisonai' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で praisonai を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patchpatch
    Upgrade praisonai to 4.6.61

    ステージング環境で 4.6.61 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
pippraisonai
< 4.6.61→ 4.6.61
PyPIpraisonai
≥ 4.5.87, < 4.6.61→ 4.6.61
MervinPraisonPraisonAI —
Original description The description as published by the source.

Summary

PraisonAI recipe execution has a dangerous-tool policy that is supposed to block default-denied tools unless the caller explicitly passes allow_dangerous_tools=True. That policy only checks tools declared in TEMPLATE.yaml requires.tools.

For steps-based recipes, the actual execution path loads workflow.yaml with YAMLWorkflowParser. That parser resolves agent-level tools: declarations and preserves top-level approve:. Workflow.start() then installs those YAML-approved tools into the approval context.

As a result, an untrusted recipe can omit execute_command from TEMPLATE.yaml requires.tools, declare it in workflow.yaml agents.*.tools, and add top-level approve: [execute_command]. The caller did not set allow_dangerous_tools=True, but the recipe policy allows the recipe and the workflow approval path self-approves the critical shell tool.

The local PoV uses a harmless printf canary and explicitly unsets PRAISONAI_AUTO_APPROVE.

Technical Details

recipe.run() checks the recipe policy unless options["allow_dangerous_tools"] is true. _check_tool_policy() gets the required tool list from recipe_config.get_required_tools(), which is backed by TEMPLATE.yaml requires.tools.

The steps workflow execution path is separate:

  1. _execute_steps_workflow() parses the workflow file with YAMLWorkflowParser.
  2. YAMLWorkflowParser resolves agents.*.tools.
  3. The same parser reads top-level approve: and stores it on `workflow…

Source: GitHub Security Advisories (Global) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details