Description
PraisonAI versions before 4.6.78 contain a code injection vulnerability in deploy/api.py where the agents_file parameter is directly interpolated into an f-string without sanitization. Attackers can inject arbitrary Python code that executes when the generated server code runs via subprocess.Popen().
Published: 2026-07-10
Score: 9.4 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

PraisonAI versions prior to 4.6.78 contain a code injection flaw in deploy/api.py. The agents_file parameter is directly interpolated into an f-string without any sanitization, and the resulting string is executed via subprocess.Popen(). This allows an attacker to inject arbitrary Python code that runs with the privileges of the server process. The weakness is classified as CWE‑94, which describes code injection vulnerabilities.

Affected Systems

The affected products are PraisonAI from MervinPraison. All releases earlier than version 4.6.78 are vulnerable. The software is generally used for deploying AI agents through an API endpoint.

Risk and Exploitability

The vulnerability has a CVSS score of 9.4, indicating a critical risk level. The EPSS score is < 1%, indicating a very low but non‑zero probability of exploitation, while the lack of a KEV listing does not negate the high severity. The typical attack path is likely through the public or remote API that accepts the agents_file parameter, enabling arbitrary code execution when an attacker crafts a malicious value. Successful exploitation would give the attacker full control of the host executing the server code.

Generated by OpenCVE AI on July 29, 2026 at 10:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.6.78 or later to remove the vulnerable f‑string logic.
  • If an upgrade cannot be performed immediately, limit exposure by restricting network access to the API endpoint to trusted administrators only or by disabling the vulnerable functionality until a fix can be applied.
  • Implement input validation or sanitization on the agents_file parameter to prevent arbitrary code injection. This could involve whitelisting acceptable file paths or removing f‑string usage entirely until the issue is resolved.

Generated by OpenCVE AI on July 29, 2026 at 10:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 10 Jul 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 10 Jul 2026 14:45:00 +0000

Type Values Removed Values Added
Description PraisonAI versions before 4.6.78 contain a code injection vulnerability in deploy/api.py where the agents_file parameter is directly interpolated into an f-string without sanitization. Attackers can inject arbitrary Python code that executes when the generated server code runs via subprocess.Popen().
Title PraisonAI before 4.6.78 Code Injection via f-string
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': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.4, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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-10T20:30:58.059Z

Reserved: 2026-07-09T14:05:47.929Z

Link: CVE-2026-61444

cve-icon Vulnrichment

Updated: 2026-07-10T20:29:41.305Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-29T11:00:13Z

Weaknesses
  • CWE-94

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