CVE-2026-47391 Sumo Logic CSE · Sumo

Detect CVE-2026-47391: PraisonAI Unauthenticated A2A LLM eval() Remote Code Execution in Sumo Logic CSE

CVE-2026-47391 is a critical unauthenticated remote code execution vulnerability in PraisonAI versions <= 4.6.39. The official Agent-to-Agent (A2A) example exposes an endpoint that accepts arbitrary input, passes it through an LLM-driven pipeline, and executes the result via Python's eval() without authentication or input sanitization. An attacker can craft a malicious payload that causes the LLM to emit code executed directly by the server process, achieving full RCE with the privileges of the PraisonAI service.

MITRE ATT&CK

Tactic
Initial Access Execution Privilege Escalation

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
_sourceCategory=* ("praisonai" OR "praison" OR "a2a")
| parse regex "(?<src_ip>\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})" nodrop
| parse regex "port[=:\s]+(?<dest_port>\d{2,5})" nodrop
| parse regex "(?<cmd_line>eval\s*\([^)]{0,200}\)|exec\s*\([^)]{0,200}\))" nodrop
| where !isNull(cmd_line) or dest_port in ("8000","8080","5000","7860")
| where isNull(src_ip) or !(src_ip matches "10.*" or src_ip matches "192.168.*" or src_ip matches "172.16.*")
| count by _sourceHost, src_ip, dest_port, cmd_line
| sort by _count desc
critical severity medium confidence

Sumo Logic query detecting PraisonAI-related log entries containing eval()/exec() command patterns or inbound connections to known A2A service ports from non-RFC1918 source IPs.

Data Sources

Sumo Logic Cloud SIEMLinux System LogsApplication Logs

Required Tables

_sourceCategory

False Positives & Tuning

  • PraisonAI instances with legitimate external API consumers who are allowlisted
  • Log aggregation systems that include eval() in their own processing output alongside PraisonAI logs
  • Development environments where external access is intentional and monitored
  • Proxy or API gateway logs where the true client IP is masked behind an internal forwarder

Other platforms for CVE-2026-47391


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1CVE-2026-47391 - Unauthenticated A2A Endpoint Probe

    Expected signal: HTTP 200 response from the A2A endpoint without any authentication challenge (no 401/403); network logs show inbound POST to port 8000 from external IP with no auth headers present.

  2. Test 2CVE-2026-47391 - LLM Prompt Injection to Trigger eval() Execution

    Expected signal: PraisonAI application logs show the crafted prompt being processed; if eval() is triggered, process execution logs show whoami child process spawned from the Python PraisonAI parent; network response body contains the current OS username.

  3. Test 3CVE-2026-47391 - Post-Exploitation Credential Harvesting Simulation

    Expected signal: subprocess.check_output or env process execution event with PraisonAI Python as parent; file access events may show reads of .env files if the process has access; LLM API call logs show the injected prompt being submitted to the upstream LLM provider.

Unlock Pro Content

Get the full detection package for CVE-2026-47391 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections