Skip to content
Critical 9.9

Vulnerability in praisonaiagents

CVE-2026-47392 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-47392 has been found in praisonaiagents.
Attackers can target a specific entry point like print.__self__ over the network to misuse the product.
Successful exploitation can lead to full system takeover. CVSS score: 9.9/10.
What to do: upgrade praisonaiagents to 1.6.40 or later.
If unsure, ask your IT team or search "praisonaiagents CVE-2026-47392" on the vendor's site.

CVE-2026-47392 (praisonaiagents) — CWE-184 / CVSS v3 9.9
Attack vector: remote (network-reachable) / no user interaction
Attack surface: print.__self__ / builtins / __import__ / type.__getattribute__
Patched: 1.6.40 — 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

A vulnerability (CWE-184) exists in praisonaiagents. Attackers reach the vulnerable code path via print.__self__.

Affected scope

Check the vendor advisory for the affected versions of praisonaiagents. Attack surface: print.__self__ / builtins / __import__ / type.__getattribute__.

Severity

Severity: Critical (CVSS 9.9/10). Successful exploitation can lead to full system takeover.

How to fix

Update to 1.6.40.

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 'praisonaiagents' . 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 'praisonaiagents' . | grep -v node_modules

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

  2. 2
    Apply patchpatch
    Upgrade praisonaiagents to 1.6.40

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

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

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

Affected packages

PackageAffected → Fixed
pippraisonaiagents
< 1.6.40→ 1.6.40
pipPraisonAI
< 4.6.40→ 4.6.40
PyPIpraisonaiagents
< 1.6.40→ 1.6.40
PyPIpraisonai
< 4.6.40→ 4.6.40
Original description The description as published by the source.

PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, execute_code() in praisonaiagents/tools/python_tools.py (v1.6.37, subprocess sandbox mode) can be fully bypassed using print.__self__ to retrieve the real Python builtins module, from which __import__ can be extracted via vars() and runtime string construction. This achieves arbitrary OS command execution on the host, completely defeating the sandbox. This is a novel bypass that survives all patches for CVE-2026-39888 (frame traversal), CVE-2026-34938 (str subclass), and CVE-2026-40158 (type.__getattribute__ trampoline). PraisonAI version 4.6.40 and praisonaiagents version 1.6.40 contain an updated fix.

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