CVE-2026-61447: Prompt Injection to Remote Code Execution in PraisonAI CodeAgent
- Vendor
- Praison
CVE-2026-61447 is a remote code execution vulnerability in PraisonAI versions before 1.6.78, affecting the praisonaiagents package. The CodeAgent._execute_python() method executes LLM-generated Python without AST validation, import restrictions, or sandbox enforcement. Its execution subprocess inherits the full parent-process environment, exposing secrets even when CodeConfig(sandbox=True) is configured. Attackers who influence generated code through prompt injection in agent inputs, tool results, or ingested content can execute arbitrary code with the CodeAgent process's privileges and exfiltrate accessible environment secrets.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation compromises the confidentiality, integrity, and availability of resources accessible to the CodeAgent process. Attacker-controlled code can read and exfiltrate environment variables containing API keys, database credentials, and cloud tokens; access files; establish network connections; and execute system commands. Depending on process privileges and available credentials, exploitation can lead to host compromise, service disruption, persistence, and unauthorized access to connected cloud services, databases, or APIs.
Mitigation
If you can’t patch tonight, do this now.
Until upgraded, avoid executing untrusted or LLM-generated Python through the vulnerable CodeAgent functionality. Restrict network exposure and exposure to untrusted agent inputs, tool results, and ingested content. Isolate the application from sensitive host resources and remove unnecessary secrets from its environment. Do not rely on CodeConfig(sandbox=True), because the vulnerable implementation does not enforce that isolation. Additional defensive controls include independently enforced execution sandboxing, AST validation, import restrictions, and monitoring for anomalous outbound connections; input sanitization alone should not be treated as an execution security boundary.
Remediation
Patch, then assume compromise.
Upgrade the praisonaiagents PyPI package to version 1.6.78 or later. If a vulnerable deployment processed untrusted input, rotate potentially exposed environment secrets and audit connected-service logs for unexpected access. Upgrading does not revoke credentials that may already have been stolen.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-61447 exploited in the wild?
- As of Nov 4, 2026, Mallory has no reports of CVE-2026-61447 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-61447?
- Yes. As of Nov 4, 2026, Mallory has reports of a public exploit for CVE-2026-61447.
- Is there a patch for CVE-2026-61447?
- Upgrade the praisonaiagents PyPI package to version 1.6.78 or later. If a vulnerable deployment processed untrusted input, rotate potentially exposed environment secrets and audit connected-service logs for unexpected access.
- What products are affected by CVE-2026-61447?
- Praisonai.
- How severe is CVE-2026-61447?
- CVE-2026-61447 has a CVSS v4 score of 10.0 (Critical) and an EPSS score of 2.5% (85th percentile) as of Nov 4, 2026.
Recent activity
18 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.