Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconScan for exposed port 8005 /chat endpoint
-
DeliverySend unauthenticated POST with crafted JSON
-
Exploitcheck_auth() short-circuits to True
-
Installpraisonai.run() executes agent orchestration
-
C2Invoke agent-defined tools (python_repl/bash)
-
ExecuteExfiltrate LLM API keys from process env
-
ImpactRun attacker workloads on victim's billed credentials
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication required for critical functions
MITRE ATT&CK
1 technique across 1 tactic: Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The target must be a PraisonAI <= 4.6.39 instance deployed via the documented quickstart |
| Impact | The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8 critical) is consistent with the description: network-reachable, no authentication, no user interaction, full CIA impact through arbitrary agent orchestration and credential abuse. A working PoC is published in the advisory itself, demonstrating publicly available exploit code exists. EPSS, KEV status, and SSVC decision data were not provided in the input, so likelihood of mass automated exploitation cannot be quantified - however, the trivial reproduction (default install + documented quickstart) and the financial incentive of stealing LLM API quota make opportunistic scanning likely once the issue propagates. Real-world risk is genuinely high rather than inflated CVSS: this is a default-insecure configuration on a network-listening service, not a theoretical edge case. The main limiting factor is exposure scope - only operators who actually ran |
| Exploit ScenarioDerived | An attacker scans the internet for Flask servers responding on TCP/8005 with |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 29, 2026
Authentication bypass in PraisonAI versions <= 4.6.39 allows remote unauthenticated attackers to invoke arbitrary LLM orchestration via the Flask API server generated by the documented praisonai deploy --type api quickstart. The generator defaults auth_enabled=False, causing check_auth() to short-circuit to True and accept any request to /chat and /agents, exposing the operator's LLM API keys and any agent-attached tools (python_repl, bash, file I/O, HTTP). Publicly available exploit code exists in the form of a working PoC, and CVSS scores this 9.8 critical.
RemediationAI
Vendor-released patch: upgrade to PraisonAI 4.6.40 or later via pip install --upgrade praisonai, which is the primary and complete fix. For operators who cannot upgrade immediately, regenerate the deploy artifact explicitly with APIConfig(auth_enabled=True, auth_token=<strong-random-token>) before re-running praisonai deploy --type api, then require clients to send Authorization: Bearer <token>; this preserves functionality but requires updating every client. As a compensating control, change the sample YAML host from 0.0.0.0 to 127.0.0.1 and place the server behind an authenticating reverse proxy or VPN - this blocks remote unauthenticated access but loses direct network exposure. Network-level mitigations include firewalling TCP/8005 to trusted source IPs and rotating any LLM API keys that may have been present in the process environment of an exposed instance. Consult the vendor advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-8444-4fhq-fxpq for additional guidance.
Affected VersionsENISA
Affected Packages
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
PraisonAI (pkg:pip/praisonai) is a Python multi-agent LLM orchestration framework distributed via PyPI. Its praisonai.deploy.api.generate_api_server_code function emits a Flask server template whose authentication toggle is controlled by APIConfig in praisonai/deploy/models.py, where auth_enabled defaults to False and auth_token defaults to None. The generated check_auth() function returns True immediately when AUTH_ENABLED is false, accepting any HTTP request without inspecting the Authorization header. The root cause maps to CWE-306 (Missing Authentication for Critical Function): an authentication mechanism exists in the code path but is disabled by default, so operators following the vendor quickstart deploy an unauthenticated server bound to 0.0.0.0 that proxies attacker JSON directly into praisonai.run() with environment-resident API credentials.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.
CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI
DescriptionCVE.org
Summary
CVE-2026-44338 (GHSA-6rmh-7xcm-cpxj) documents that PraisonAI ships a code-generator (praisonai.deploy.api.generate_api_server_code) that emits a Flask API server with authentication disabled by default. Users who follow the documented quickstart (praisonai deploy --type api) get a server that:
- binds to
0.0.0.0per the recommended sample YAML - exposes
/chatand/agentsendpoints - runs
praisonai.run()on user-supplied JSON input - LLM orchestration with the API key materials present in the process environment - does not require any authentication
The PyPI wheel praisonai==4.6.33 (current @latest) still ships the generator with auth_enabled defaulting to False. The fix shape is opt-in via APIConfig(auth_enabled=True, auth_token=...).
Details
Anchor (file:line:symbol)
- Vulnerable artifact:
praisonai==4.6.33on PyPI. - Defaults:
praisonai/deploy/models.py:29-auth_enabled: bool = Field(default=False, ...);praisonai/deploy/models.py:30-auth_token: Optional[str] = Field(default=None, ...). - Generator:
praisonai/deploy/api.py:40-AUTH_ENABLED = {config.auth_enabled};api.py:41-AUTH_TOKEN = {repr(config.auth_token)};api.py:43-49-def check_auth(): if not AUTH_ENABLED: return True. - CLI entry: documented as
praisonai deploy --type api(vendor README); produces the generator output above with no flag required to suppress the warning, because no warning is emitted.
Vulnerable code (verbatim from installed wheel)
# praisonai/deploy/models.py (praisonai==4.6.33)
class APIConfig(BaseModel):
host: str = Field(default="127.0.0.1", description="Server host")
port: int = Field(default=8005, description="Server port")
cors_enabled: bool = Field(default=True, description="Enable CORS")
auth_enabled: bool = Field(default=False, description="Enable authentication")
# line 29
auth_token: Optional[str] = Field(default=None, description="Authentication token")
# line 30# praisonai/deploy/api.py (praisonai==4.6.33)
code = f\'\'\'...
# Authentication
AUTH_ENABLED = {config.auth_enabled}
# False by default
AUTH_TOKEN = {repr(config.auth_token)}
# None by default
def check_auth():
if not AUTH_ENABLED:
return True
# short-circuit, accept all
token = request.headers.get(\'Authorization\', \'\').replace(\'Bearer \', \'\')
return token == AUTH_TOKEN
...
\'\'\'A default invocation of the deploy command emits a server whose check_auth() short-circuits to True and accepts unauthenticated /chat, /agents POSTs.
PoC
#!/usr/bin/env python3
"""
legend-c420 PoC - PraisonAI 4.6.33 generates Flask API server with auth
disabled by default. Class H sibling of CVE-2026-44338.
Phase 1: reflect on praisonai.deploy.models.APIConfig defaults.
Phase 2: call generate_api_server_code(default config) and assert the
emitted source contains AUTH_ENABLED = False and the
short-circuit return.
Phase 3: re-run with auth_enabled=True, auth_token='s3cret-bearer-value'
and confirm the emitted source flips to the secure shape.
Exit code 0 = PASS = vulnerable defaults confirmed.
"""
import sys, traceback
def phase1_dataclass_defaults():
print("PHASE 1 - praisonai.deploy.models.APIConfig default values")
from praisonai.deploy.models import APIConfig
cfg = APIConfig()
checks = [
("auth_enabled", cfg.auth_enabled, False),
("auth_token", cfg.auth_token, None),
]
for name, observed, expected in checks:
ok = observed == expected
mark = "VULNERABLE" if name in ("auth_enabled","auth_token") and ok else "ok"
print(f" {name:14s} = {observed!r:18s} (expected {expected!r}) [{mark}]")
assert ok
print(" >> APIConfig defaults reproduce the CVE-2026-44338 shape.")
def phase2_default_generator_emits_unauth():
print("PHASE 2 - generate_api_server_code(default config) emits unauth server")
from praisonai.deploy.models import APIConfig
from praisonai.deploy.api import generate_api_server_code
src = generate_api_server_code("agents.yaml", config=APIConfig())
for needle in ["AUTH_ENABLED = False","AUTH_TOKEN = None","if not AUTH_ENABLED:","return True"]:
assert needle in src, f"missing: {needle!r}"
print(f" [FOUND] {needle!r}")
print(" >> Default-config generator emits Flask server with check_auth() short-circuit.")
def phase3_fix_shape_available():
print("PHASE 3 - auth_enabled=True flips to secure shape")
from praisonai.deploy.models import APIConfig
from praisonai.deploy.api import generate_api_server_code
cfg = APIConfig(auth_enabled=True, auth_token="s3cret-bearer-value")
src = generate_api_server_code("agents.yaml", config=cfg)
assert "AUTH_ENABLED = True" in src
assert "AUTH_ENABLED = False" not in src
print(" >> Fix shape works when toggled. Class H confirmed: default is insecure.")
def main():
print("=" * 64)
print("legend-c420 PoC - PraisonAI default-config AUTH_ENABLED=False")
print("=" * 64)
try:
phase1_dataclass_defaults()
phase2_default_generator_emits_unauth()
phase3_fix_shape_available()
except Exception:
traceback.print_exc()
print("FAIL"); sys.exit(2)
print("PASS 3/3 phases. EXIT 0.")
sys.exit(0)
if __name__ == "__main__":
main()PoC dependencies: praisonai==4.6.33 from PyPI. Tested on Python 3.11.
Run log verdict: PASS 3/3 phases. EXIT 0. - vulnerable-default shape confirmed. auth_enabled=False by default, check_auth() short-circuits to True, fix toggle exists but is opt-in.
Impact
An operator who runs the vendor-documented quickstart (pip install praisonai && praisonai deploy --type api) gets a network-reachable Flask server that invokes praisonai.run() on attacker-supplied JSON with the user's LLM API keys in the process environment. The attacker reaches arbitrary LLM-orchestration (including any tool-use the agents define, which in PraisonAI commonly includes python_repl, bash, file I/O, and HTTP calls), with the host's API-key credit billed to the operator.
- Belief: CVE-2026-44338 was filed and triaged.
- Reality:
praisonai==4.6.33is current@lateston PyPI (2026-05-16). The generator still defaults toauth_enabled=False. - Gap: The CVE acknowledges the fix shape exists. The fix is opt-in. The default-config consumer remains vulnerable.
Parent CVE: CVE-2026-44338 / GHSA-6rmh-7xcm-cpxj
Executive ViewAI
PraisonAI versions 4.6.39 and earlier have a critical flaw that disables authentication on deployed API servers, allowing unauthenticated remote attackers to access and control the organization's LLM operations, steal API credentials, and execute arbitrary commands through connected tools. Any organization using PraisonAI's documented API deployment feature is immediately at risk of credential theft and unauthorized system access. Publicly available exploit code exists for this vulnerability.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Manually enable authentication by setting auth_enabled=True in Flask configuration; (2) Restrict network access to PraisonAI API endpoints via firewall/WAF rules; (3) Immediately rotate all LLM API keys used with affected deployments; (4) Disable high-risk agent tools (python_repl, bash, file I/O) at the configuration level; (5) Isolate instances to non-internet-accessible network segments with egress filtering; (6) Enable comprehensive API access logging and establish alerts for any requests to /chat and /agents endpoints.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-46297
GHSA-8444-4fhq-fxpq
NVD
CVE.org
EPSS
Exploit-DB