PraisonAI CodeAgent Remote Code Execution (CVE‑2026‑61447)

PraisonAI 8.4k-star framework ships a CodeAgent that runs LLM‑generated Python code.

The agent executes the code in a subprocess, copying the entire host environment.

It never validates the abstract syntax tree, nor restricts imports or file access.

An attacker can inject malicious prompts, causing the agent to read every environment variable.

The PoC prints all variables, exposing API keys, database passwords, and cloud tokens.

The vulnerability affects PraisonAI versions before 1.6.78; upgrading fixes the issue.

NVD lists CVE‑2026‑61447 with a CVSS 4.0 base score of 10.0, denoting critical severity.

GitHub advisory GHSA‑2xv2‑w8cq‑5gxw confirms the lack of sandbox enforcement in executepython.

VulnCheck reports that the flaw enables full credential theft and arbitrary code execution.

Mitigation steps include upgrading, disabling CodeAgent, and limiting environment exposure.

Citations

  1. NVD: https://nvd.nist.gov/vuln/detail/cve-2026-61447
  2. GitHub Advisory: https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-2xv2-w8cq-5gxw
  3. VulnCheck Advisory: https://www.vulncheck.com/advisories/praisonai-before-remote-code-execution-via-codeagent
  4. CVE Record: https://www.cve.org/CVERecord?id=CVE-2026-61447
  5. CIRCL Lookup: https://vulnerability.circl.lu/vuln/cve-2026-61447

Suggested title

PraisonAI CodeAgent Remote Code Execution (CVE‑2026‑61447) – Critical 10.0 Vulnerability

Word count

123

Fact‑check notes

Verify version range and patch version in PraisonAI repo. Confirm CVSS vector from NVD. Check that PoC reproduces secret leak.