Critical RCE in PraisonAI CodeAgent Enables Host Compromise via Prompt Injection
Emerging Technology Risk · 2 sources · Updated 5mo ago · First seen Jul 11, 2026

A critical remote code execution flaw, CVE-2026-61447, was disclosed in the PraisonAI AI agent framework, affecting versions before 1.6.78. The vulnerability lies in CodeAgent._execute_python(), which executes LLM-generated Python without AST validation, import restrictions, or sandbox enforcement, allowing attackers to use prompt injection to make the agent run arbitrary code on the host. The issue received the maximum severity rating of CVSS 10.0 under both v3.1 and v4.0.
Successful exploitation can result in full host compromise and theft of sensitive data, including API keys, cloud credentials, database passwords, and other environment secrets, with potential pivoting into connected services. PraisonAI 1.6.78 fixes the issue, and defenders are being urged to upgrade immediately, reduce network exposure, rotate potentially exposed secrets, and monitor for anomalous outbound connections; no confirmed in-the-wild exploitation had been reported at disclosure time.
Why it matters
Impact assessment
CVE-2026-61447 is a critical host-compromise risk for organizations running PraisonAI CodeAgent, especially agentic deployments that process untrusted external content such as web pages, documents, emails, and tool output. Successful exploitation can lead to arbitrary code execution, theft of environment secrets, and follow-on compromise of connected cloud, database, and API services.
The impact is severe because the flaw is remotely exploitable, requires no authentication, requires no user interaction, and is rated CVSS 10.0 under both v3.1 and v4.0. Exposure is potentially broad across any environment using vulnerable PraisonAI versions before 1.6.78, but no confirmed in-the-wild exploitation was reported at disclosure time.
Affected entities and exposure
- Product: PraisonAI AI agent framework
- Vulnerable package: praisonaiagents pip package
- Affected versions: all versions before 1.6.78
- Fixed version: 1.6.78
- Most exposed use cases: AI agents that ingest untrusted external data and allow CodeAgent execution
Business and operational consequences
- Full host compromise is possible
- Theft of sensitive data from environment variables is possible
- Exposed secrets may include API keys, cloud credentials, and database passwords
- Attackers may pivot into connected cloud services, databases, and external APIs
- Follow-on actions may include backdoors, reverse shells, or ransomware deployment
- Potential impacts include operational disruption, financial loss, and reputational damage
Known exploitation status
- No confirmed active exploitation in the wild was reported at disclosure time


