# CVE-2026-61445: MervinPraison PraisonAI arbitrary file write and command execution in AICoder

Source: https://junglewise.ai/threats/cve-2026-61445-mervinpraison-praisonai-arbitrary-file-write-and-command  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-11. Updated: 2026-07-11  
License: CC BY 4.0 with a link back

CVE-2026-61445 · Severity: critical · CVSS 9.9 · Published 2026-07-11

PraisonAI, an AI agent framework, contains a critical security flaw in its AICoder component. An attacker can use the chat interface to trick the AI into writing malicious files anywhere on the system or executing dangerous commands. Because the software often runs with high privileges (root) in Docker environments, this could allow a complete takeover of the server and access to all stored data.

Technologies: [praisonai (PyPI)](https://junglewise.ai/threats/technologies/pypi-praisonai). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-61445 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-61445 being exploited in the wild.

**How severe is CVE-2026-61445?** Critical severity, with a CVSS score of 9.9, published 11 July 2026.

**Which products and versions are affected?** praisonai (PyPI) <= 4.6.77, ECOSYSTEM:introduced=0,fixed=4.6.78.

**Is there a fix for CVE-2026-61445?** Yes. praisonai (PyPI): upgrade to 4.6.78 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61445 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-61445?** Check whether you run praisonai (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- praisonai (PyPI): upgrade to 4.6.78 or later

  ```sh
  pip install "praisonai>=4.6.78"
  ```


## Technical details

The AICoder component in PraisonAI fails to perform path validation and command sanitization when processing LLM tool calls for 'write_to_file' and 'execute_command'. Specifically, the 'write_to_file' function uses os.path.join in a way that allows absolute paths to override the intended working directory, enabling path traversal (CWE-22). The 'execute_command' function passes LLM-generated strings directly to a subprocess without sanitization, leading to OS command injection (CWE-78). An authenticated user can exploit these by providing malicious prompts that trigger the LLM to call these tools with attacker-controlled arguments. The impact is heightened in Docker deployments where the application typically runs as the root user.

## Affected products

- MervinPraison PraisonAI < 4.6.78

## Identifiers

- CVE-2026-61445
- GHSA-9mp3-24cc-77mg
- PYSEC-2026-4253

## Timeline

- 2026-06-25: advisory: GitHub Security Advisory published
- 2026-07-11: disclosed: CVE published to NVD

## References

- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9mp3-24cc-77mg](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9mp3-24cc-77mg)
- [https://www.vulncheck.com/advisories/praisonai-before-arbitrary-file-write-and-command-execution](https://www.vulncheck.com/advisories/praisonai-before-arbitrary-file-write-and-command-execution)

## Related threats

- [PraisonAI authentication bypass in A2U event streaming](https://junglewise.ai/threats/cve-2026-57146-praisonai-a2u-incomplete-authentication-fix-leaves-current-serve)
- [PraisonAI sandbox escape when Landlock unavailable](https://junglewise.ai/threats/cve-2026-57144-praisonai-sandlocksandbox-falls-back-to-unrestricted-subprocess)
- [PraisonAI recipe policy bypass via YAML-approved tools](https://junglewise.ai/threats/cve-2026-57142-praisonai-recipe-workflow-policy-can-be-bypassed-by-declaring-and)
- [PraisonAI shell command injection in compute-bridged file tools](https://junglewise.ai/threats/cve-2026-57117-praisonai-compute-bridged-file-tools-allow-shell-command)
- [PraisonAI AgentOS authentication bypass in FastAPI deployment](https://junglewise.ai/threats/cve-2026-57116-praisonai-agentos-remains-unauthenticated-after-incomplete-fix)
