Read the docs
TI-2026-22296 Aliases CVE-2026-27952

Agenta has Python Sandbox Escape, Leading to Remote Code Execution (RCE)

Priority HIGH 76CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA. Impact type from CWE-94.

Summary

Agenta is an open-source LLMOps platform. In Agenta-API prior to version 0.48.1, a Python sandbox escape vulnerability existed in Agenta's custom code evaluator. Agenta used RestrictedPython as a sandboxing mechanism for user-supplied evaluator code, but incorrectly whitelisted the `numpy` package as safe within the sandbox. This allowed authenticated users to bypass the sandbox and achieve arbitrary code execution on the API server. The escape path was through `numpy.ma.core.inspect`, which exposes Python's introspection utilities — including `sys.modules` — thereby providing access to unfiltered system-level functionality like `os.system`. This vulnerability affects the Agenta self-hosted platform (API server), not the SDK when used as a standalone Python library. The custom code evaluator runs server-side within the API process. The issue is fixed in v0.48.1 by removing `numpy` from the sandbox allowlist. In later versions (v0.60+), the RestrictedPython sandbox was removed entirely and replaced with a different execution model.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00565 47th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed agenta-api (Agenta-AI): 0.48.1

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Agenta-AIagenta-apibefore 0.48.10.48.1Patch availableCNA
  • agenta-api VendorAgenta-AI Affected before 0.48.1 Fixed in 0.48.1 Patch available CNA

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:agentatech:agenta:*:*:*:*:*:*:*:*before 0.48.1VulnerableAgentatech
  • cpe:2.3:a:agentatech:agenta:*:*:*:*:*:*:*:* Versions before 0.48.1 Vulnerable ·Agentatech

Remediation

  • Fix · CNA agenta-api (Agenta-AI) Fixed in 0.48.1

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-27952
  2. 2026-10-25 EPSS moved to the below the 50th percentile

References

  • TI-2026-85966 Server-side request forgery in Agenta lets members steal secret tokens CVSS 4.0HIGH 8.4

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences