CVE-2026-61433: PraisonAI: code injection via unsafe config codegen

GHSA-79fv-7hq9-w7xgHIGHPoC AVAILABLE
Published July 15, 2026
CISO Take

PraisonAI, an AI agent orchestration framework, fails to safely encode configuration values (deploy.api.host, agents_file) when it generates the Python source code for API deployment servers, letting an attacker smuggle arbitrary Python expressions into that generated code. The CVSS 7.8 score reflects full confidentiality, integrity, and availability impact once the injected code runs, which matters most for any team that builds agent deployment pipelines where config values can originate from a lower-trust source, such as a self-service agent builder, CI job, or multi-tenant platform. There is no EPSS score, no CISA KEV listing, no public exploit, and no Nuclei template for this CVE, and exploitation requires local access plus user interaction, so this is not an internet-mass-exploitation scenario today — but the blast radius is a full code-execution primitive on whatever host runs the generated server. Patch to PraisonAI 4.6.78 or later (fix commit 1620b49 referenced in the GHSA advisory); until then, treat deploy.api.host and agents_file as untrusted input, validate/allowlist them before deployment generation, and review generated server source before executing it.

Sources:NVDGitHub AdvisoryATLASvulncheck.com

What is the risk?

Moderate risk in the near term, high risk in specific deployment patterns. The CVSS 7.8 (AV:L/AC:L/PR:N/UI:R/C:H/I:H/A:H) means exploitation is technically easy once an attacker can influence the two config parameters, and no privileges are required — but the attack vector is local and requires a user to trigger the generated server, which caps mass exploitability. No EPSS percentile, KEV listing, public exploit, or scanner template exists, indicating this is not yet weaponized in the wild. Risk rises sharply for organizations that expose PraisonAI's deployment/config generation to less-trusted input paths (multi-tenant agent builders, self-service developer portals, automated CI/CD that consumes external config), where the "local" and "user interaction" barriers effectively evaporate.

How does the attack unfold?

Config injection
Attacker supplies a malicious value for deploy.api.host or agents_file in the PraisonAI deployment configuration.
AML.T0081
Unsafe code generation
PraisonAI generates Python source for the API server, embedding the unsanitized config value directly into executable code.
AML.T0050
Triggered execution
A user or admin runs the generated server, or the server handles an incoming request, causing the injected Python expression to execute.
AML.T0011
Impact
The attacker gains arbitrary code execution on the host, with full confidentiality, integrity, and availability compromise of the agent deployment.

What systems are affected?

PackageEcosystemVulnerable RangePatched
PraisonAIpip—No patch
1 dependents61% patched~23d to patchFull package profile →
PraisonAIpip<= 4.6.774.6.78
1 dependents61% patched~23d to patchFull package profile →

How severe is it?

CVSS 3.1
7.8 / 10
EPSS
0.2%
chance of exploitation in 30 days
Higher than 11% of all CVEs
Exploitation Status
Exploit Available
Exploitation: MEDIUM
Sophistication
Moderate
Exploitation Confidence
medium
○Public PoC indexed (trickest/cve)
Composite signal derived from CISA KEV, VulnCheck KEV, CISA SSVC, EPSS, Metasploit, Exploit-DB, trickest/cve, Nuclei templates, and inthewild.io exploitation reports.

What is the attack surface?

AVACPRUISCIA
AVLocal
ACLow
PRNone
UIRequired
SUnchanged
CHigh
IHigh
AHigh

What should I do?

1 step
  1. Upgrade to PraisonAI 4.6.78 or later (fix referenced in commit 1620b49 on GHSA-79fv-7hq9-w7xg). Until patched: never accept deploy.api.host or agents_file values from untrusted or external sources without strict validation/allowlisting; treat any generated Python server source as untrusted output and review it before execution; restrict who can invoke PraisonAI's deployment/codegen feature (principle of least privilege); and add detection for anomalous process spawns or unexpected outbound connections originating from PraisonAI-generated API server processes.

What does CISA's SSVC say?

DecisionTrack
Exploitationnone
AutomatableNo
Technical Impacttotal

Source: CISA Vulnrichment (SSVC v2.0). Decision based on the CISA Coordinator decision tree.

How is it classified?

Which compliance frameworks are affected?

This CVE is relevant to:

EU AI Act
Article 15-Accuracy, robustness and cybersecurity
NIST AI RMF
MANAGE-2.3-Third-party AI system risks are managed
OWASP LLM Top 10
LLM02-Insecure Output Handling

Frequently Asked Questions

What is CVE-2026-61433?

PraisonAI, an AI agent orchestration framework, fails to safely encode configuration values (deploy.api.host, agents_file) when it generates the Python source code for API deployment servers, letting an attacker smuggle arbitrary Python expressions into that generated code. The CVSS 7.8 score reflects full confidentiality, integrity, and availability impact once the injected code runs, which matters most for any team that builds agent deployment pipelines where config values can originate from a lower-trust source, such as a self-service agent builder, CI job, or multi-tenant platform. There is no EPSS score, no CISA KEV listing, no public exploit, and no Nuclei template for this CVE, and exploitation requires local access plus user interaction, so this is not an internet-mass-exploitation scenario today — but the blast radius is a full code-execution primitive on whatever host runs the generated server. Patch to PraisonAI 4.6.78 or later (fix commit 1620b49 referenced in the GHSA advisory); until then, treat deploy.api.host and agents_file as untrusted input, validate/allowlist them before deployment generation, and review generated server source before executing it.

Is CVE-2026-61433 actively exploited?

Proof-of-concept exploit code is publicly available for CVE-2026-61433, increasing the risk of exploitation.

How to fix CVE-2026-61433?

Upgrade to PraisonAI 4.6.78 or later (fix referenced in commit 1620b49 on GHSA-79fv-7hq9-w7xg). Until patched: never accept deploy.api.host or agents_file values from untrusted or external sources without strict validation/allowlisting; treat any generated Python server source as untrusted output and review it before execution; restrict who can invoke PraisonAI's deployment/codegen feature (principle of least privilege); and add detection for anomalous process spawns or unexpected outbound connections originating from PraisonAI-generated API server processes.

What systems are affected by CVE-2026-61433?

This vulnerability affects the following AI/ML architecture patterns: agent frameworks, agent deployment pipelines, API server generation.

What is the CVSS score for CVE-2026-61433?

CVE-2026-61433 has a CVSS v3.1 base score of 7.8 (HIGH). The EPSS exploitation probability is 0.21%.

What is the AI security impact?

Affected AI Architectures

agent frameworksagent deployment pipelinesAPI server generation

MITRE ATLAS Techniques

AML.T0011User Execution
AML.T0050Command and Scripting Interpreter
AML.T0081Modify AI Agent Configuration

Compliance Controls Affected

EU AI Act: Article 15
NIST AI RMF: MANAGE-2.3
OWASP LLM Top 10: LLM02

What are the technical details?

Original Advisory

PraisonAI before 4.6.78 fails to safely encode deployment configuration values when generating Python source code for API servers. Attackers can inject arbitrary Python expressions through the deploy.api.host and agents_file configuration parameters that execute when the generated server starts or handles requests.

Exploitation Scenario

A developer or tenant on a platform that exposes PraisonAI's deployment configuration submits a crafted value for deploy.api.host — or points agents_file at a config containing an embedded Python expression. PraisonAI's code generator writes this value directly into the Python source of the generated API server without sanitization. When an administrator later runs that generated server (satisfying the user-interaction requirement) or when the server processes an inbound request that reaches the tainted code path, the injected expression executes with the privileges of the server process, giving the attacker arbitrary code execution and a foothold to access agent credentials, connected tools, or the underlying host.

Weaknesses (CWE)

CWE-116 — Improper Encoding or Escaping of Output: The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.

  • [Architecture and Design] Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid. For example, consider using the ESAPI Encoding control [REF-45] or a similar tool, library, or framework. These will help the programmer encode outputs in a manner less prone to error. Alternately, use built-in functions, but consider using wrappers in case those functions are discovered to have a vulnerability.
  • [Architecture and Design] If available, use structured mechanisms that automatically enforce the separation between data and code. These mechanisms may be able to provide the relevant quoting, encoding, and validation automatically, instead of relying on the developer to provide this capability at every point where output is generated. For example, stored procedures can enforce database query structure and reduce the likelihood of SQL injection.

Source: MITRE CWE corpus.

CVSS Vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Timeline

Published
July 15, 2026
Last Modified
October 8, 2026
First Seen
July 15, 2026

Related Vulnerabilities