Skip to main content

xlang-ai OpenAgents EUVDEUVD-2026-137870

| CVE-2026-138332 MEDIUM
Code Injection (CWE-94)
2026-11-29 VulDB GHSA-m9jw-64p7-34cg
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach network-exposed OpenAgents Data Agent
  2. Exploit
    Submit crafted input to code path
  3. Execution
    Inject Python via run_program_local
  4. Impact
    Execute arbitrary code in Flask process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the Data Agent's generated-Python execution be enabled: historically CODE_EXECUTION_MODE defaulted to 'local', which runs generated/injected Python via IPython directly inside the Flask process (with access to backend credentials, the full data volume and the network). The attacker must be able to supply input that reaches run_program_local in real_agents/data_agent/evaluation/python_evaluator.py. Limiting factors that reduce realistic risk: default deployments bind to localhost only, the platform is documented as a demo/development tool for trusted single-user use, and PR #167 states neither local nor the legacy docker interpreter mode is a supported security boundary for hostile or multi-tenant users - so remote reach requires the operator to deliberately network-expose the instance. The post-fix default of 'disabled' means patched deployments do not execute generated Python at all unless explicitly and knowingly re-enabled. The precise manipulation that converts agent input into injected code is not detailed in the available sources.

Impact

Signals conflict and must be weighed carefully. The supplied CVSS 4.0 base is 5.5 (Medium) with only partial vulnerable-system impacts (VC:L/VI:L/VA:L), reflecting VulDB's conservative scoring, yet the root cause is CWE-94 code injection in run_program_local - i.e. arbitrary code execution, which when reachable by an untrusted user is far more severe than 'Medium' suggests (I independently assess C/I/A:H). Exploit maturity is E:P (proof-of-concept), there is no CISA KEV listing and no EPSS score was provided, and the vuln.today decision label is 'this_month' - a moderate, scheduled-remediation priority rather than act_now/emergency. The key tension is the attack vector: CVSS marks AV:N/PR:N/UI:N (remote, unauthenticated), but the OpenAgents README and fix PR establish that default deployments bind to localhost and the platform is intended for trusted single-user development, so true remote-unauthenticated reach depends on the operator deliberately exposing the instance to a network and enabling generated-Python execution. Net: a genuine code-execution flaw, but real-world risk is gated by exposure and configuration rather than being broadly wormable - verify whether any given instance is network-exposed with Python execution enabled before treating it as high priority.

Exploit ScenarioDerived

An attacker who can reach a network-exposed OpenAgents instance that has generated-Python execution enabled submits crafted input to the Data Agent so that code flows into run_program_local and is executed as Python inside the Flask process, running with backend credentials and access to the data volume and network. A public PoC reference exists (GitHub issue #164 / exploit maturity E:P) but is not verified as working exploit code. Default deployments bind to localhost and the platform is intended for trusted single-user use, which limits realistic remote reach.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 29, 2026

Code injection in xlang-ai OpenAgents' Data Agent allows remote attackers who can reach an instance with generated-Python execution enabled to execute injected Python through run_program_local in real_agents/data_agent/evaluation/python_evaluator.py. The affected code is a rolling release tracked only by commit, with the cited vulnerable state at ff2e46440699af1324eb25655b622c4a131265bb and no versioned affected or fixed releases. No public exploit code or CISA KEV entry is identified; exploitation realistically depends on an operator enabling Python execution and exposing the demo/development platform beyond localhost, and the upstream fix is an unmerged pull request that changes the default to disabled.

RemediationAI

Apply the upstream fix tracked by commit ff2e46440699af1324eb25655b622c4a131265bb and pull request 167 after confirming it has been merged into the deployed revision; this is an upstream PR/commit fix, and a released patched version is not independently confirmed. The fix makes CODE_EXECUTION_MODE=disabled the default, so deployments that have not patched should set CODE_EXECUTION_MODE=disabled and restart the backend to prevent generated Python from executing; this also disables PythonCodeBuilder analysis and Python-generated Echarts/plots, while SQL execution, file parsing/uploads, plugin tools, and web actions retain their existing behavior and need separate review. Do not enable CODE_EXECUTION_MODE=local for untrusted users or multi-tenant use: local mode requires ALLOW_UNSAFE_LOCAL_CODE_EXECUTION=true and runs IPython inside the Flask process with backend credentials, data-volume and network access. Keep the service bound to localhost or otherwise restrict access to trusted users; the legacy Docker interpreter mode is not a verified sandbox for hostile or multi-tenant users. See GitHub issue 164 (https://github.com/xlang-ai/OpenAgents/issues/164), PR 167 (https://github.com/xlang-ai/OpenAgents/pull/167), the backend README execution trust-boundary guidance, and VulDB 445145 (https://vuldb.com/vuln/445145).

Affected VersionsENISA

OpenAgents ff2e46440699af1324eb25655b622c4a131265bb

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The issue is CWE-94 code injection in OpenAgents' Data Agent. The affected function run_program_local is part of the Python evaluator; in the historical local execution mode, generated Python is run by IPython inside the Flask process, so injected code inherits the backend process's access to credentials, the data volume, and the network. The vulnerability is specific to deployments where the Data Agent's generated-Python execution has been enabled and where attacker-controlled input can reach run_program_local; the precise manipulation that turns agent input into injected code is not described in the available sources. CPE cpe:2.3:a:xlang-ai:openagents:*:*:*:*:*:*:*:* reflects a rolling-release product with no version boundaries, and PR #167 documents that neither local mode nor the legacy Docker interpreter is a supported security boundary for hostile or multi-tenant use; the fixed behavior returns an error without executing generated Python by default.

Know when Openagents gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 9.8 CRITICAL

Code injection yields arbitrary Python execution in the Flask process with host, credential and data access (C/I/A:H); the agent is network-reachable with no confirmed authentication, giving AV:N/PR:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Nov 29, 2026 - 23:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)

DescriptionCVE.org

A weakness has been identified in xlang-ai OpenAgents up to ff2e46440699af1324eb25655b622c4a131265bb. The impacted element is the function run_program_local of the file real_agents/data_agent/evaluation/python_evaluator.py of the component Data Agent. Executing a manipulation can lead to code injection. The attack may be launched remotely. This product operates on a rolling release basis, ensuring continuous delivery. Consequently, there are no version details for either affected or updated releases. This patch is called ff2e46440699af1324eb25655b622c4a131265bb. Applying a patch is advised to resolve this issue. The pull request to fix this issue awaits acceptance.

Threat Intelligence Overview

EPSS Score
0.4%
Top 75% exploitable
Prevalence
Low
open-source research/demo agent platform, limited production deployment footprint
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy