ZeroHour

CVE-2026-57129

Arbitrary File Read via Path Traversal in PraisonAI praisonaiagents (< 1.6.59)

CVSS 3.1
7.5 high
EPSS
Published
()
Modified
AI analysis

PraisonAI praisonaiagents before 1.6.59 contains a path traversal flaw (CWE-22) in MentionsParser._process_file_mention, which falls back from workspace-relative resolution to Path(file_path) without validating traversal sequences, symlinks, or workspace boundaries. An attacker triggers it by embedding a crafted file-mention value (e.g., an absolute path or '../' traversal) in prompt input that reaches the agent, whether from a chat user, a connected bot, or an automated workflow. Successful exploitation allows reading arbitrary files accessible to the agent process, including credentials, API keys, environment files, source code, and system configuration (CVSS 3.1: 7.5, network vector, no privileges or user interaction required, high confidentiality impact). Any deployment running praisonaiagents prior to 1.6.59 that processes prompts from untrusted or semi-trusted sources is affected. The issue is fixed in version 1.6.59; there is no known public PoC, no evidence of in-the-wild exploitation, and it is not listed in the CISA KEV catalog.

What to do: Upgrade praisonaiagents to version 1.6.59 or later as soon as possible. If upgrading is delayed, avoid passing untrusted prompt input into the agent and run the agent process in a container or under a minimal-privilege account so that secrets such as .env files, keys, and credentials are not readable. Review agent logs for file-mention patterns containing absolute paths or '../' sequences and rotate any credentials that were readable by the process.

Affected
praisonaiagentsall versions prior to 1.6.59 (< 1.6.59)
Estimated exposure
No basis for an estimate.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

PraisonAI is a multi-agent teams system. Prior to praisonaiagents 1.6.59, MentionsParser._process_file_mention accepts file-mention values and falls back from workspace-relative resolution to Path(file_path) without traversal, symlink, or workspace-boundary validation. Prompt input from users, bots, or workflows can therefore read arbitrary files accessible to the process, including credentials, keys, environment files, source code, and system configuration. This issue is fixed in praisonaiagents 1.6.59.

Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

In the news

No ingested article mentions this CVE yet.