Description
Agno up to and including 2.5.8 is vulnerable to Remote Code Execution (RCE) via prompt injection. The PythonTools and ShellTools components pass unsanitized, LLM-generated arguments directly to execution sinks including exec(), runpy.run_path(), and subprocess.run(). An unauthenticated attacker can exploit this by embedding malicious instructions in content processed by the agent (such as web pages or documents), allowing for arbitrary code and OS command execution on the host server.
Published: 2026-08-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An Agno installation running version 2.5.8 or earlier is vulnerable because the PythonTools and ShellTools components pass LLM‑generated arguments directly to execution sinks such as exec(), runpy.run_path(), and subprocess.run() without sanitization. An unauthenticated attacker can embed malicious instructions into any content processed by the agent – for example, web pages or documents – allowing arbitrary Python code and OS command execution on the host server. The impact is total compromise of confidentiality, integrity, and availability for the affected system.

Affected Systems

The affected product is Agno, versions up to 2.5.8 inclusive. No other vendor or product versions are listed as impacted.

Risk and Exploitability

The exploit requires only an unauthenticated ability to supply content that the agent will process, implying that the attack can be performed from remote sources that can deliver content to the server. EPSS data is not available and the vulnerability is not listed in CISA’s KEV catalog, yet the lack of an authentication requirement and the presence of unfiltered system calls indicate a high severity and reasonable likelihood that attackers will attempt exploitation if the platform is exposed.

Generated by OpenCVE AI on August 28, 2026 at 06:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor‑issued patch or upgrade Agno to a version newer than 2.5.8 as soon as it becomes available.
  • Restrict or remove the direct usage of exec(), runpy.run_path(), and subprocess.run() for any untrusted or LLM‑generated arguments within the PythonTools and ShellTools components.
  • Sanitize or validate all LLM‑generated input before it is passed to any execution sink.
  • Isolate the Agno process in a sandbox or container and monitor the host for unexpected command execution.

Generated by OpenCVE AI on August 28, 2026 at 06:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 06:30:00 +0000

Type Values Removed Values Added
Title Remote Code Execution via Unsanitized Prompt Injection in Agno 2.5.8
Weaknesses CWE-78
CWE-94

Thu, 27 Aug 2026 18:00:00 +0000

Type Values Removed Values Added
Description Agno up to and including 2.5.8 is vulnerable to Remote Code Execution (RCE) via prompt injection. The PythonTools and ShellTools components pass unsanitized, LLM-generated arguments directly to execution sinks including exec(), runpy.run_path(), and subprocess.run(). An unauthenticated attacker can exploit this by embedding malicious instructions in content processed by the agent (such as web pages or documents), allowing for arbitrary code and OS command execution on the host server.
References

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-27T17:24:43.824Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-37003

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-27T20:17:41.107

Modified: 2026-08-27T20:17:41.107

Link: CVE-2026-37003

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T06:15:03Z

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')