Skip to main content

PraisonAI EUVDEUVD-2026-94521

| CVE-2026-62176 CRITICAL
Code Injection (CWE-94)
2026-10-07 https://github.com/MervinPraison/PraisonAI GHSA-g6j7-pffp-8whg
9.1
CVSS 3.1 · Vendor: https://github.com/MervinPraison/PraisonAI
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Control agents_file value via CLI/config/pipeline
  2. Exploit
    Inject Python via f-string string-breakout
  3. Execution
    Code written to server/Dockerfile and executed via subprocess.Popen
  4. Impact
    Arbitrary code execution on deploy host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to control the agents_file parameter consumed by PraisonAI's deploy code-generation path in src/praisonai/praisonai/deploy/api.py (and the equivalent Dockerfile generation in deploy/docker.py) - supplied as a CLI argument, from a configuration file, or from an upstream API - and the praisonai deploy command must actually be executed, at which point the generated file is run via subprocess.Popen(['python', server_file]). This is NOT remote-unauthenticated exploitation against a running default web service; it is a build/deploy-time injection. Limiting factors: the attacker must be able to set or tamper with deploy-time input (high privilege / supply-chain position per PR:H), the injected code only runs when someone invokes the deploy command, and impact is confined to the host and account running that command. The primary realistic exposure is CI/CD or shared-pipeline scenarios where agents_file originates from externally-influenced configuration.

Impact

This is a CWE-94 Python code-injection flaw in PraisonAI's deploy tooling where the unsanitized agents_file value is interpolated into an f-string that is written out and executed via subprocess.Popen(). Signals conflict and must be weighed carefully. The supplied CVSS vector (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H = 9.1 Critical) asserts a network attack vector, but the description and PoC describe a build/deploy-time injection where the attacker must already control the agents_file argument via CLI, a local configuration file, or an upstream pipeline - this is far closer to a local/config-dependent flaw than remote-unauthenticated RCE, so AV:N likely overstates real-world reachability (verify with vendor/GHSA scope). PR:H in the vector correctly reflects that the attacker needs the ability to supply deploy parameters, which already implies privileged access to the deployment process. POC status is YES (a working breakout string is published in the GHSA advisory and CVE description), but there is no CISA KEV listing and no EPSS score was provided, so there is no evidence of active or widespread exploitation - the real risk is primarily a supply-chain/CI-CD concern (malicious or attacker-tampered config feeding the deploy command) rather than opportunistic internet-facing mass exploitation. Net: a genuinely impactful RCE primitive once the precondition is met, but the 9.1 'Critical, network, high-automatable' framing overstates practical risk for most deployments; realistic priority is elevated-but-conditional, highest for users who build/deploy PraisonAI agents from untrusted or externally-influenced configuration.

Exploit ScenarioDerived

In a CI/CD pipeline that runs praisonai deploy, an attacker who can influence the agents_file value (e.g., via a poisoned config file, a pull request, or an upstream API supplying the parameter) sets it to a string such as "); import os; os.system("id"); # which breaks out of the f-string and injects Python that PraisonAI then writes to a server file and runs via subprocess.Popen(). A working proof-of-concept breakout string is published in the GHSA advisory, so no exploit development is required. The injected code executes with the privileges of the account running the deploy command.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 07, 2026

Python code injection in PraisonAI's deploy tooling (all versions up to and including 4.6.77) lets a high-privileged actor who controls the agents_file value break out of an f-string and execute arbitrary code on the host running the deploy command. The flaw is triggered at build/deploy time: the unsanitized value is interpolated into generated server or Dockerfile source in deploy/api.py and deploy/docker.py, written to disk, and then launched via subprocess.Popen(['python', server_file]), so the primary realistic exposure is CI/CD pipelines or shared build environments where agents_file originates from externally influenced configuration. The vendor advisory includes a proof-of-concept demonstrating the string-breakout payload and a fix is available in 4.6.78; no CISA KEV entry or other confirmation of active exploitation was present in the source data, and this is not a remotely reachable flaw in a default running service - exploitation requires the attacker to already be positioned to set or tamper with deploy-time input and for someone to invoke the deploy command.

RemediationAI

The primary fix is to upgrade PraisonAI to the vendor-released patched version, 4.6.78 or later, which removes the direct f-string interpolation of agents_file in both deploy/api.py and deploy/docker.py; installs should be pinned by exact version in requirements files, lockfiles, and container base images so that CI rebuilds pick up the fixed release rather than resolving back to a vulnerable pin. Because the vulnerable path is only reachable at deploy/generation time, compensating controls are viable where immediate upgrading is not possible: treat agents_file as untrusted input and never populate it from externally influenced configuration, pipeline variables, or upstream API payloads - instead hard-code or allow-list the accepted agent file paths, which stops the breakout entirely at the cost of less flexible deploys; restrict who may set the agents_file argument or commit the invoking configuration (per the assessed PR:H privilege requirement, only trusted maintainers should hold that ability), accepting the operational overhead of stricter contributor controls; run praisonai deploy in a least-privilege, network-restricted build container with no access to production credentials, which limits blast radius and supply-chain reach but does not prevent the code from executing; and inspect the generated server file or Dockerfile produced by the deploy command before it is executed, which is a manual review step that is only practical for low-volume or release-gated pipelines. Two of these - the advisory PoC and the assessed local, high-privilege attack vector - confirm the flaw is reachable by anyone who can influence deploy input, so removing untrusted write access to that parameter should be treated as the highest-value interim measure. Note that this assessment reflects no CISA KEV listing; the independent evaluation classifies this as a local, high-privilege build/deploy-time code injection rather than a remotely exploitable web-service flaw, so remediation efforts should be prioritized around CI/CD trust boundaries as much as around the version bump itself.

Affected VersionsENISA

PraisonAI < 4.6.78

Affected Packages

pypi praisonai fix: 4.6.78

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The root cause is CWE-94 (Improper Control of Generation of Code, i.e. code injection) in PraisonAI's deployment code generator, distributed as the Python package pip/praisonai (CPE: pkg:pip/praisonai). Rather than passing the agents_file path as structured data, src/praisonai/praisonai/deploy/api.py builds a Python source template using an f-string - praisonai = PraisonAI(agent_file="{agents_file}") - with no escaping or validation, and the identical anti-pattern is repeated in deploy/docker.py around line 33 for Dockerfile generation. Because the interpolated value lands inside a quoted Python string literal in the generated file, a value such as "); import os; os.system("id"); # terminates the string and comment character and appends attacker-controlled statements; when the generator subsequently writes that file and hands it to subprocess.Popen(['python', server_file]), the injected statements execute with the privileges of the deploying user. This is classic template/source-generation injection: the interpolation site conflates a data value with code, and the execution sink makes any control over that value equivalent to code execution. Note that the injected code only runs when the deploy workflow is actually invoked, and it executes on the local host under the account running that workflow rather than against a network-facing server component.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/MervinPraison/PraisonAI) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 6.7 MEDIUM

Attacker must control deploy-time agents_file input (config/CLI), so AV:L and PR:H; injected code runs in the same context yielding full C/I/A impact with no scope change (S:U).

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI).

CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Oct 07, 2026 - 18:02 EUVD
CVE Published
Oct 07, 2026 - 16:05 github-advisory
CRITICAL 9.1

DescriptionCVE.org

Summary

The deploy/api.py module generates Python server code by directly interpolating the agents_file parameter into an f-string that is then written to a file and executed via subprocess.Popen(). An attacker who controls the agents_file value (via CLI argument, configuration, or upstream API) can inject arbitrary Python code.

Details

src/praisonai/praisonai/deploy/api.py (line 80):

python
code = f'''...
    praisonai = PraisonAI(agent_file="{agents_file}")
...
    "agent_file": "{agents_file}"
...'''

The generated code is then executed (line 190):

python
subprocess.Popen(['python', server_file])

agents_file is never sanitized or validated. A malicious value breaks out of the string context:

python
agents_file = '"); import os; os.system("id"); #'
# Generated code becomes:
# praisonai = PraisonAI(agent_file=""); import os; os.system("id"); #")

The same pattern exists in deploy/docker.py (line 33) for Dockerfile generation.

PoC

python
# The injection:
agents_file = '"); import os; os.system("id"); #'
# What the generated code looks like:
template = f'praisonai = PraisonAI(agent_file="{agents_file}")'
print(template)
# Output: praisonai = PraisonAI(agent_file=""); import os; os.system("id"); #")

Impact

  • Arbitrary code execution on the machine running the deploy command
  • Supply chain risk if agents_file comes from a configuration file or CI/CD pipeline

Technical POC Analysis

CWE-94 Improper Control of Generation of Code.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

PraisonAI's deploy tooling (all versions through 4.6.77) contains a critical code-injection flaw that lets a privileged actor who controls the agents_file configuration value execute arbitrary code on the host running a deployment build. The practical exposure is concentrated in CI/CD pipelines and shared build environments where that setting can be influenced from outside the build team, creating a path to compromised build infrastructure and tampered release artifacts. Leadership should treat this as a software supply-chain risk affecting engineering operations, not as an internet-facing service vulnerability, since it is not remotely reachable in a default running deployment and no active exploitation has been confirmed.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 62% exploitable
Prevalence
Low
niche open-source AI agent framework, limited production deployment footprint
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy