CVE-2026-27952
CVE-2026-27952 · Agenta has Python Sandbox Escape, Leading to Remote Code Execution (RCE)
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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.
CVSS 8.8 · High · EPSS 0.6% · Fix available
- Published
- Updated
Stack: python
Affected products and versions
agenta-api
- Versions
- < 0.48.1: Affected
No fix published
agenta PyPI
- Versions
- 0.1.0
- 0.1.1
- 0.1.10
- 0.1.11
- 0.1.12
- 0.1.13
- 0.1.14
- 0.1.15
- 0.1.16
- 0.1.17
- 0.1.18
- 0.1.19
- 0.1.2
- 0.1.21
- 0.1.22
- 0.1.23
- 0.1.24
- 0.1.25
- 0.1.26
- 0.1.27
- 0.1.28
- 0.1.29
- 0.1.3
- 0.1.4
- 0.1.5
- 0.1.6
- 0.1.7
- 0.1.8
- 0.1.9
- 0.10.0
- 0.10.1
- 0.10.2
- 0.10.3
- 0.12.0
- 0.12.1
- 0.12.2
- 0.12.3
- 0.12.4
- 0.12.5
- 0.12.6
- 0.12.7
- 0.13.0
- 0.13.0a0
- 0.13.0a1
- 0.13.0a2
- 0.13.0a3
- 0.13.1
- 0.13.2
- 0.13.3
- 0.13.4
- 0.13.5
- 0.13.6
- 0.13.7
- 0.13.7a0
- 0.13.8
- 0.14.0
- 0.14.1
- 0.14.10
- 0.14.11
- 0.14.12
- 0.14.12a0
- 0.14.12a1
- 0.14.12a2
- 0.14.13
- 0.14.14
- 0.14.14a0
- 0.14.14a1
- 0.14.1a0
- 0.14.1a1
- 0.14.2
- 0.14.3
- 0.14.4
- 0.14.5
- 0.14.6
- 0.14.6a0
- 0.14.7
- 0.14.7a0
- 0.14.7a1
- 0.14.8
- 0.14.8a0
- 0.14.9
- 0.15.0
- 0.15.0a0
- 0.15.0a1
- 0.15.0a2
- 0.15.0a3
- 0.15.0a4
- 0.16.0
- 0.17.0
- 0.17.1
- 0.17.2
- 0.17.3
- 0.17.4
- 0.17.4a0
- 0.17.5
- 0.17.6a0
- 0.17.6a1
- 0.18.0
- 0.19.0
- 0.19.1
- 0.19.1a0
- 0.19.2
- 0.19.3
- 0.19.4
- 0.19.5
- 0.19.6
- 0.19.6a0
- 0.19.7
- 0.19.8
- 0.19.8a0
- 0.19.9
- 0.2.0
- 0.2.10
- 0.2.11
- 0.2.12
- 0.2.2
- 0.2.3
- 0.2.4
- 0.2.5
- 0.2.6
- 0.2.7
- 0.2.8
- 0.2.9
- 0.20.0a0
- 0.20.0a1
- 0.20.0a10
- 0.20.0a11
- 0.20.0a12
- 0.20.0a13
- 0.20.0a3
- 0.20.0a4
- 0.20.0a6
- 0.20.0a7
- 0.20.0a8
- 0.20.0a9
- 0.21.0a1
- 0.21.0b1
- 0.22.0
- 0.23.0
- 0.23.0a1
- 0.24.0
- 0.24.1
- 0.24.1a0
- 0.24.2
- 0.24.2a1
- 0.24.2a2
- 0.24.3
- 0.24.3a1
- 0.24.4
- 0.25.0
- 0.25.1
- 0.25.2
- 0.25.3
- 0.25.3a1
- 0.25.4
- 0.25.4a1
- 0.25.4a2
- 0.25.4a3
- 0.25.4a4
- 0.26.0
- 0.26.0a0
- 0.27.0
- 0.27.0a0
- 0.27.0a1
- 0.27.0a12
- 0.27.0a13
- 0.27.0a15
- 0.27.0a2
- 0.27.0a5
- 0.27.0a6
- 0.27.0a7
- 0.27.0a8
- 0.27.0a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0
- 0.7.1
- 0.8.0
- 0.8.1
- 0.8.2
- 0.8.3
- 0.8.4
- 0.9.0
- Affected ranges
- ECOSYSTEM: < 0.48.1
Update to 0.48.1