Skip to main content
VulnerabilityPublished

CVE-2026-27952: agenta-api · Code Injection

Affects agenta-apiSource CVE Database V5

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 0.48.1 soon.

Data as of 30 Oct 2026, 11:52 UTC

CVSS 3.1 base score
8.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 46% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.48.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 30 Oct 2026.

What to do

Upgrade agenta-api to 0.48.1.

Affected software

ProductAffectedFixed in
Agenta-AIagenta-apiAffected
  • <0.48.1
Fixed in
  • 0.48.1
PyPIagenta-apipkg:pypi/agenta-apiOther threatsAffected
  • <0.48.1
Fixed in
  • 0.48.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Organizations should immediately upgrade agenta-api to version 0.48.1 or later, where numpy is removed from the sandbox allowlist, or preferably to version 0.60+ which replaces the sandbox entirely. Until upgrades are applied, restrict access to the API server to trusted users only and enforce strong authentication and monitoring to detect suspicious activity. Review and limit user permissions to minimize the risk of malicious code execution. Implement network segmentation and host-based intrusion detection to identify anomalous behavior indicative of sandbox escape attempts. Conduct thorough code reviews and security testing of any custom code evaluator configurations. Additionally, consider deploying runtime application self-protection (RASP) or endpoint detection and response (EDR) solutions to detect and block exploitation attempts. Regularly audit logs for unusual commands or system calls originating from the API process.

Description

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.

References

Community reviews

Loading reviews…