Description
PraisonAI before 1.6.78 contains a remote code execution vulnerability in CodeAgent._execute_python() that executes LLM-generated Python code without AST validation, import restrictions, or sandbox enforcement. Attackers can influence LLM output through prompt injection to exfiltrate all environment secrets and execute arbitrary code on the host system.
Published: 2026-07-11
Score: 10 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability permits attackers to execute arbitrary Python code on the host system. By influencing the chosen LLM’s output through prompt injection, an attacker can cause the embedded CodeAgent._execute_python() call to run LLM‑generated scripts without any AST validation, import restrictions, or sandbox enforcement, allowing full access to environment secrets and system resources.

Affected Systems

MervinPraison’s PraisonAI product is impacted. All releases prior to version 1.6.78 are affected; later versions contain the fix.

Risk and Exploitability

This issue carries a CVSS score of 10, marking it as a severely dangerous flaw. The EPSS score of less than 1% indicates that exploitation is unlikely to be widespread, but the absence of input validation makes exploitation practically trivial once an attacker can influence the LLM’s output. The most likely entry point is through a remote API or web interface that accepts user prompts, although the vulnerability is currently not listed in the CISA KEV catalog.

Generated by OpenCVE AI on August 1, 2026 at 11:26 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 1.6.78 or later. This patch removes the unsafe code execution path.
  • If an upgrade cannot be performed immediately, disable or remove the CodeAgent._execute_python() function so no LLM‑generated Python code can be run. Use administrative controls to prevent execution of external scripts.
  • Implement network hardening by limiting access to the LLM endpoint to trusted hosts only, enforce strict input validation or prompt whitelisting, and monitor logs for unexpected code execution activity.

Generated by OpenCVE AI on August 1, 2026 at 11:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 13 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Sat, 11 Jul 2026 13:30:00 +0000

Type Values Removed Values Added
Description PraisonAI before 1.6.78 contains a remote code execution vulnerability in CodeAgent._execute_python() that executes LLM-generated Python code without AST validation, import restrictions, or sandbox enforcement. Attackers can influence LLM output through prompt injection to exfiltrate all environment secrets and execute arbitrary code on the host system.
Title PraisonAI before 1.6.78 Remote Code Execution via CodeAgent
First Time appeared Praison
Praison praisonai
Weaknesses CWE-94
CPEs cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*
Vendors & Products Praison
Praison praisonai
References
Metrics cvssV3_1

{'score': 10, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 10, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H'}


Subscriptions

Praison Praisonai
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-13T15:21:34.593Z

Reserved: 2026-07-09T14:06:14.016Z

Link: CVE-2026-61447

cve-icon Vulnrichment

Updated: 2026-07-13T15:21:10.333Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-01T11:30:05Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')