ZeroHour

CVE-2026-57130

niche

IMAP SEARCH Injection in PraisonAI praisonaiagents Email Tools

CVSS 3.1
8.1 high
EPSS
Published
()
Modified
AI analysis

An injection flaw in PraisonAI's praisonaiagents library (versions before 1.6.59) interpolates LLM-controlled from_addr, subject, and query values directly into quoted IMAP SEARCH criteria in email_tools.py without escaping. An attacker who can influence an agent's inputs — for example, via prompt injection embedded in email content or task text — can include quote, backslash, newline, or null characters to escape the intended criterion and alter IMAP operations whenever search_emails, reply_email, or archive_email runs on an agent with configured email credentials. Successful exploitation allows access to, modification of, or deletion of mailbox data beyond the intended scope, or disruption of the mail connection, reflected in a high CVSS 3.1 score of 8.1. Only deployments running praisonaiagents < 1.6.59 that expose the email tools to an agent are affected, and the issue is fixed in version 1.6.59. No public proof of concept or in-the-wild exploitation is known.

What to do: Upgrade praisonaiagents to version 1.6.59 or later as soon as possible. If upgrading is delayed, stop exposing the search_emails, reply_email, and archive_email tools to agents, and scope agent email credentials to least-privilege mailboxes. Review mailbox and IMAP server logs for unexpected SEARCH, STORE, or EXPUNGE operations, and treat agent-visible email content as untrusted prompt-injection input.

Affected
praisonaiagents< 1.6.59
Estimated exposure
nicheLikely hundreds to low thousands of deployments (subset of praisonaiagents installs that enable the email tools with configured IMAP credentials) — PraisonAI is a self-hosted open-source Python agent framework with no internet-exposed service footprint, and only deployments that deliberately expose the email tools with configured mail credentials hit the vulnerable code path — a small…

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, src/praisonai-agents/praisonaiagents/tools/email_tools.py interpolates LLM-controlled from_addr, subject, and query values directly into quoted IMAP SEARCH criteria. Embedded quote, backslash, newline, or null characters can escape the intended criterion and alter IMAP operations when search_emails, reply_email, or archive_email is exposed to an agent with configured email credentials, allowing mailbox data access, modification, deletion, or connection disruption. This issue is fixed in praisonaiagents 1.6.59.

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

In the news

No ingested article mentions this CVE yet.