Code injection in PraisonAI deploy API server generation
Key facts
- Attack vector
- Network
- Privileges required
- High
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.
Summary
PraisonAI versions before 4.6.78 are affected. The deploy/api.py module inserts the agents_file value directly into an f-string that is written to a Python file and run with subprocess.Popen(), a code injection flaw (CWE-94). An attacker who controls agents_file through a CLI argument, configuration or an upstream API can run arbitrary Python code.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
Description from the CNA
PraisonAI is a multi-agent teams system. Prior to version 4.6.78, 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. Version 4.6.78 patches the issue.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| MervinPraison | PraisonAI | before 4.6.78 | 4.6.78 | Patch available | CNA |
| — | PraisonAI (PyPI) | before 4.6.78 | 4.6.78 | Patch available | GHSA-g6j7-pffp-8whg |
- PraisonAI VendorMervinPraison Affected before 4.6.78 Fixed in 4.6.78 Patch available CNA
- PraisonAI (PyPI) Vendor— Affected before 4.6.78 Fixed in 4.6.78 Patch available GHSA-g6j7-pffp-8whg
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* | — | — | MervinPraison |
- cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* Versions — — ·MervinPraison
Remediation
Upgrade the PyPI package PraisonAI to version 4.6.78, which fixes the issue.
Written with Claude Haiku 5.5 from the sources below · 2026-10-29
- Fix · CNA PraisonAI (MervinPraison) Fixed in 4.6.78
- Fix · GHSA-g6j7-pffp-8whg PraisonAI (PyPI) Fixed in 4.6.78 Advisory →
Timeline
- 2026-10-07 Threatist record created from CVE-2026-62176
- 2026-10-07 Alias added: GHSA-g6j7-pffp-8whg
- 2026-10-07 Fix available: PyPI/[email protected] · GHSA-g6j7-pffp-8whg
- 2026-10-07 CVSS score added · GHSA-g6j7-pffp-8whg
- 2026-10-07 Weakness changed · GHSA-g6j7-pffp-8whg
- 2026-10-07 2 new references · GHSA-g6j7-pffp-8whg
- 2026-10-07 CISA SSVC decision points changed
- 2026-10-07 Priority changed: MEDIUM → HIGH
References
More MervinPraison vulnerabilities
- TI-2026-79619 Missing authentication in PraisonAI AgentOS exposes agent chat CVSS 3.1CRITICAL 9.8
- TI-2026-71236 Missing access control in PraisonAI AgentTeam exposes agent endpoints CVSS 3.1CRITICAL 9.8
- TI-2026-44052 PraisonAI before 1.6.78 Remote Code Execution via CodeAgent CVSS 4.0CRITICAL 10.0
- TI-2026-41123 praisonai-platform 0.1.4 still boots on the hardcoded JWT secret dev-secret-change-me (default-open production guard) CVSS 3.1CRITICAL 9.8
- TI-2026-41122 praisonai-platform: default JWT signing secret 'dev-secret-change-me' enables token forgery CVSS 3.1CRITICAL 9.8
- TI-2026-41118 PraisonAI MCPServer exposes unauthenticated HTTP tools/call CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-62176 · CVE Program
- CVE-2026-62176 · NVD
- FIRST EPSS
- GHSA-g6j7-pffp-8whg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences