AI Security Atlas › All entries › Autonomous Agent & MCP Security

VulnerabilityHigh severity

Dynamic Code Execution

Agents evaluate model-generated code or shell snippets in-process without a sandbox boundary.

Open in the interactive atlas →

Impact

Arbitrary code execution yields host compromise, credential theft, and lateral movement.

Why this severity

Impact High × Likelihood Medium = High

Impact high: host compromise. Likelihood medium: researchers found 20 RCEs in deployed LLM apps and demonstrated execution through MathGPT and computer-use agents, all as demonstrations.

Impact High: Code execution, credential compromise, exposure of regulated or confidential data, irreversible actions, or system-wide failure.
Likelihood Medium: Publicly demonstrated against real products or in peer-reviewed research, or seen in the wild only with a prior foothold such as stolen credentials.

Method: OWASP Risk Rating Methodology

Evidence

Related

Exploited by

Mitigated by

Remediation

  1. Run generated code only inside ephemeral containers with no secrets mounted.
  2. Disable network egress unless explicitly gated.
  3. Prefer declarative tool APIs over eval/exec pathways.

How to verify

Pattern

await sandbox.run(code, { network: false, mounts: [], timeoutMs: 5000 });

Framework mapping

OWASP Top 10 for LLM Applications 2025

OWASP Top 10 for Agentic Applications 2026

MITRE ATLAS

NIST AI RMF 1.0