{"id":"CVE-2026-27952","published":"2026-02-26T01:38:00Z","modified":"2026-02-26T19:27:29Z","title":"Agenta has Python Sandbox Escape, Leading to Remote Code Execution (RCE)","vendor":"Agenta-AI","product":"agenta-api","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00578,"percentile":0.48537,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/Agenta-AI/agenta/security/advisories/GHSA-pmgp-2m3v-34mq","tags":["x_refsource_CONFIRM"]}],"priority":{"score":15.9,"factors":[{"name":"EPSS percentile","points":9.71},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"agenta-ai","affectedVersions":[{"vendor":"Agenta-AI","product":"agenta-api","versions":["< 0.48.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-02-26T19:27:13.151791Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"agenta","vulnerableRanges":["<0.48.1"],"patched":["0.48.1"],"from":["PYSEC-2026-6"],"provenance":"source"}],"summary":{"text":"Agenta-API (product agenta-api from vendor Agenta-AI), prior to version 0.48.1, contains a Python sandbox escape in its custom code evaluator, where RestrictedPython wrongly allowlisted the numpy package, letting code escape the sandbox via numpy.ma.core.inspect to reach sys.modules and system functions. An attacker with network access and low-privilege authenticated access to the API server, requiring no user interaction and only the default evaluator configuration, can execute arbitrary code on the server.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:24:22Z"},"euvd":{"id":"EUVD-2026-8814","exploited":false,"provenance":"source"}}