CVE-2026-138332

OpenAgents runs generated Python inside its backend by default

xlang-ai · OpenAgents

First documented disclosure · Review checkpoint

Summary

The Data Agent’s default local execution mode runs model-generated Python without an isolation boundary.

Severity and exploitation evidence

Medium · 6.9/10 · CVSS 4.0. Severity source.

Exploitation not established: A researcher reports a controlled unauthenticated two-request reproduction against the exposed default backend/local execution mode, including file read/write. This is a researcher-reported demonstration, not independently verified malicious exploitation or identified victims. No proof of concept was executed during this review.

Exploitation evidence source

Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.

How the weakness works

PythonEvaluator passes generated code to IPython in the Flask process. The advertised danger-code check always returns safe, while the example Compose configuration selects local mode.

Conditions required

A reachable Data Agent accepts a task or data that leads to generated Python. The deployment uses the documented local execution mode.

Potential impact

Generated code inherits backend-process access to credentials, shared data and reachable services.

Affected versions and configurations

Original report and CNA identify rolling revision ff2e46440699af1324eb25655b622c4a131265bb. No reliable packaged affected range is supplied.

Fix and mitigation status

PR167 remains open and unmerged. It proposes disabled-by-default execution and explicit unsafe-local opt-in; no fixed package is verified.

Practical next steps

Disable generated local Python for untrusted tasks and restrict access to the backend. Review actual sandbox, network and data isolation before enabling another mode.

Operating lesson

A code classifier is not a sandbox for model-generated programs.

Evidence and limits

The CNA description also calls the affected revision a patch, but the original report identifies it as vulnerable and PR167 is still open. The issue’s automated stale closure was not a fix. The proposed Docker option is not established as a hardened multi-tenant boundary. Issuing CNA publication was 2026-11-29, separate from the original public disclosure. Severity is VulDB CNA CVSS 4.0 Medium 6.9. CNA also supplies CVSS 3.1 High 7.3. Static review only; upstream tests were not repeated. December 1 review of PR167 confirms it remains open. A November 13 researcher comment reports remote controlled reproduction; that claim is distinct from malicious exploitation and does not erase the default-backend/local-mode prerequisite.

Sources