CVE-2026-55527

PraisonAI: Arbitrary file write via unsanitized `user_id` in `FileMemory.__init__()` — path traversal to any writable location

Published Aug 25, 2026 CVSS 3.1 · 7.1 High EPSS < 1% KEV · Not listed
Description
PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.58, the FileMemory constructor joins unsanitized user_id into self.user_path. A caller supplying ../ or path separators can escape the memory directory and write JSON data to arbitrary process-writable locations. The fix sanitizes user_id before constructing self.user_path. This issue is fixed in version 1.6.58.

Analysis

AI-generated

Technical impact

PraisonAI’s FileMemory constructor concatenates an unsanitized user_id to build a file path. An attacker who can supply a crafted user_id containing directory traversal characters can cause the application to write JSON data to any location that the process can write to, thereby creating or overwriting arbitrary files. This vulnerability is a path traversal flaw (CWE-22) combined with an unsanitized input leading to arbitrary file write (CWE-73). The potential impact includes data integrity loss, code execution if executable files are written, or secret data disclosure if sensitive files are overwritten or created.

Affected Systems

The issue affects versions of PraisonAI prior to 1.6.58. The product is provided by MervinPraison. It has been fixed in release 1.6.58 and later versions.

Risk and Exploitability

The CVSS score of 7.1 indicates a lower‑to‑moderate severity risk. No EPSS score is available, so the likelihood of exploitation is uncertain, but the flaw allows direct manipulation of the file system without authentication. Because the process running PraisonAI has write permissions in various directories, an attacker with application access can place arbitrary files. This vulnerability is not listed in the CISA KEV catalog, suggesting that no known widespread exploitation has been reported yet.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to 1.6.58 or newer, which sanitizes the user_id before path construction.
  • If an upgrade cannot be performed immediately, restrict file system permissions so that only the PraisonAI process can write to its memory directory, preventing it from writing to system‑wide locations.
  • Implement monitoring for unintended file creation or modification in the directories used by PraisonAI to detect potential abuse.

Generated by OpenCVE AI on August 25, 2026 at 16:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-gxmw-5f7x-6g22 praisonaiagents vulnerable to arbitrary file write via unsanitized `user_id` in `FileMemory.__init__()` — path traversal to any writable location
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Vendors & Products Mervinpraison
Mervinpraison praisonai
Type Values Removed Values Added
Description PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.58, the FileMemory constructor joins unsanitized user_id into self.user_path. A caller supplying ../ or path separators can escape the memory directory and write JSON data to arbitrary process-writable locations. The fix sanitizes user_id before constructing self.user_path. This issue is fixed in version 1.6.58.
Title PraisonAI: Arbitrary file write via unsanitized `user_id` in `FileMemory.__init__()` — path traversal to any writable location
Weaknesses CWE-22
CWE-73
References
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

  • CWE-73

    External Control of File Name or Path

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Aug 25, 2026, 7:21 PM
Reserved
Jun 16, 2026, 10:44 PM
Status
Deferred
Published
Aug 25, 2026, 3:16 PM
Modified
Sep 9, 2026, 9:07 PM