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: 9.8 Critical
EPSS: 1.6% Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Agno software up to and including version 2.5.8 is vulnerable to remote code execution because the PythonTools and ShellTools components accept large language model–generated arguments and pass them directly to native execution functions such as exec(), runpy.run_path(), and subprocess.run() without performing any sanitization. A malicious user who can embed commands into content processed by the agent—such as web pages or documents—can therefore cause arbitrary Python code and operating‑system command execution on the host server, leading to complete compromise of confidentiality, integrity, and availability.

Affected Systems

The affected product is Agno, with all releases up to and including 2.5.8 being impacted. No other vendors or product versions are listed as affected.

Risk and Exploitability

The vulnerability requires no authentication and is exploitable via content that the agent processes, which can be supplied by remote entities, making it potentially attractive to attackers. The CVSS score of 9.8 indicates a high severity, while the EPSS score of less than 1 % suggests a low but nonzero likelihood of exploitation. Because the issue is not listed in CISA’s KEV catalog, it may have slipped past many monitoring efforts, but the combination of a high CVSS and the absence of authentication makes it a very concerning risk for exposed deployments.

Generated by OpenCVE AI on September 2, 2026 at 08:52 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.
  • Disallow direct use of exec(), runpy.run_path(), and subprocess.run() for any LLM‑generated input within the PythonTools and ShellTools components.
  • Sanitize or validate all LLM‑generated arguments before they reach execution sinks.
  • Run the Agno process inside a sandbox or container and monitor the host for unexpected command execution.

Generated by OpenCVE AI on September 2, 2026 at 08:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 02 Sep 2026 09:15:00 +0000

Type Values Removed Values Added
Title Remote Code Execution through Unfiltered LLM Input in Agno PythonTools

Wed, 02 Sep 2026 08:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 02 Sep 2026 07:15:00 +0000

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

Tue, 01 Sep 2026 22:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}


Fri, 28 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
First Time appeared Agno
Agno agno
Vendors & Products Agno
Agno agno

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

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-01T19:34:17.910Z

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

Link: CVE-2026-37003

cve-icon Vulnrichment

Updated: 2026-09-01T19:34:12.875Z

cve-icon NVD

Status : Deferred

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

Modified: 2026-09-08T19:29:09.680

Link: CVE-2026-37003

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-02T09:00:14Z

Weaknesses
  • CWE-94

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