/

CVE-2026-62675

Severity:

HIGH RISK

(8.8)

Code Injection (CWE-94) in Omnigent Agent Framework

CVE-2026-62675

Deferred

Vulnerability type

Category:

Code Injection

CWE:

CWE-94

Impact:

Arbitrary Code Execution

Severity:

HIGH RISK

(8.8)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Omnigent versions before 0.3.0 allow an authenticated user's agent bundle to specify an arbitrary dotted Python callable path for a tool. When the runner imports and invokes that callable, the bundle may select a command-execution function and run local commands with the runner process's permissions.

Affected context

The vulnerability occurs in Omnigent deployments that accept multipart agent bundles through the session API and execute declared tools through the runner. It becomes risky when an authenticated user can submit a bundle whose tool specification is not restricted to an approved set of callable functions.

Exploit preconditions

  • Attack surface: Authenticated multipart POST requests to the session creation endpoint
  • Required access: A valid user account permitted to submit an agent bundle; administrator access is not required
  • Trigger point: Tool resolution and invocation during agent execution
  • Why exploitation is possible: Bundle validation permits an attacker-controlled dotted Python path, which the runner imports and calls with its own process privileges

Why this happens

The underlying bug is insufficient validation of a user-controlled callable reference. The bundle validator accepts a tools.callable dotted Python path, while the dispatch logic dynamically imports and invokes the referenced function without enforcing an allowlist or safe execution boundary. This maps to CWE-94: Improper Control of Generation of Code, because data supplied through an agent bundle is treated as executable behavior.

Potential impact

  • Execution of arbitrary local commands in the runner process
  • Exposure of environment variables, credentials, and runner files
  • Access to workspace data and potentially reachable internal services
  • Modification or destruction of agent-generated data
  • Service degradation or denial of availability
  • Further compromise of systems accessible from the runner

General mitigation guidance

Mitigation generally focuses on removing dynamic execution from untrusted bundle content and reducing the runner's trust and privilege boundaries.

Common defensive patterns include:

  • Restricting tool references to a fixed, reviewed allowlist of registered functions
  • Treating bundle fields as data rather than importable code
  • Validating tool names and schemas before execution
  • Running agent workloads in isolated sandboxes with minimal filesystem, network, and credential access
  • Applying least-privilege identities and separating runner credentials from host or service credentials
  • Preventing untrusted users from defining executable tool implementations

How teams detect issues like this

Organizations can look for this issue through:

  • Static analysis rules targeting dynamic imports, reflection, and callable resolution from request data
  • Code review checks for user-controlled module paths, function names, or other executable references
  • Tests that submit unexpected tool identifiers and verify that validation rejects them
  • Runtime monitoring of child-process creation, unusual outbound connections, and access to sensitive environment variables
  • Policy enforcement requiring explicit tool registration and denying arbitrary imports in agent bundles

Automated security review tools may help identify dynamic execution patterns, but findings should be confirmed against the framework's trust boundaries.

Sources

SourceLink
github.comgithub.com/omnigent-ai/omnigent/commit/1f3f398f41cbf97b905133c21e848621c21da6e0
github.comgithub.com/omnigent-ai/omnigent/pull/1430
github.comgithub.com/omnigent-ai/omnigent/releases/tag/v0.3.0
github.comgithub.com/omnigent-ai/omnigent/security/advisories/GHSA-756x-9hf6-q4h4

Frequently asked

questions

It can be reached through the session API by an authenticated user who is allowed to submit an agent bundle. Exploitation still depends on the deployment exposing that endpoint and permitting the relevant bundle workflow.

No. The described issue requires authenticated bundle-submission privileges, not administrator privileges. The resulting actions run with the permissions available to the runner process.

Do not import or invoke callable paths supplied by untrusted bundles. Use a small, explicit allowlist of registered tools, validate references before execution, and isolate the runner.

Treat agent definitions as untrusted data, prohibit arbitrary dynamic imports, apply least privilege, and test validation logic against unexpected executable references.

Find out what's already
exploitable in your codebase.