{"items":[{"id":"NVI-00016322","kind":"vulnerability","title":"PraisonAI: IMAP Command Injection via Unsanitized Email Search Parameters","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-c969-5x3p-vq3v","CVE-2026-57130"],"plain_summary":"GitHub lists this reviewed advisory for praisonaiagents. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-682784ab7fd5a3e23b574c781fc41490"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[{"kind":"CVSS","as_of":"2026-07-20T21:26:50.000Z","value":"8.1 high","meaning":"GitHub source severity; exploitability and local consequence require separate evidence.","source_id":"sr-682784ab7fd5a3e23b574c781fc41490"}],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-682784ab7fd5a3e23b574c781fc41490","url":"https://github.com/advisories/GHSA-c969-5x3p-vq3v","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-c969-5x3p-vq3v","publisher":"GitHub Advisory Database","observed_at":"2026-11-03T22:35:18.117Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-682784ab7fd5a3e23b574c781fc41490"],"technology":"praisonaiagents","known_exclusions":[],"conditions_summary":"## Summary\n\nThe email search tool in `src/praisonai-agents/praisonaiagents/tools/email_tools.py` constructs IMAP SEARCH commands by interpolating LLM-controlled parameters (from_addr, subject, query) directly into IMAP protocol strings using f-string formatting with double-quote delimiters. An attacker who can influence the arguments to the `search_emails` or `reply_email` tool (via crafted agent prompts) can inject arbitrary IMAP commands, potentially exfiltrating email data from other folders, deleting emails, or performing other unauthorized IMAP operations.\n## Details\n\n**Vulnerable code (lines 493–502):**\n```python\ncriteria = []\nif from_addr:\n    criteria.append(f'FROM \"{from_addr}\"')\nif subject:\n    criteria.append(f'SUBJECT \"{subject}\"')\nif query:\n    criteria.append(f'TEXT \"{query}\"')\nif not criteria:\n    criteria.append(\"ALL\")\nsearch_str = \" \".join(criteria)\nstatus, data = mail.search(None, search_str)\n```\n\nThe `from_addr`, `subject`, and `query` parameters originate from LLM tool call arguments (the `search_emails` public function at line 665). These values flow through without any sanitization or escaping. The double-quote (`\"`) characters in these parameters allow breaki","public_affected_ranges":["<= 1.6.48"]}],"null_published_at":"2026-11-04T10:04:27.931Z","source_updated_at":"2026-07-20T21:26:50.000Z","source_disclosed_at":"2026-06-18T14:25:03.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-11-03T22:35:18.117Z"}],"next_cursor":null,"snapshot_revision":"42594"}