/

CVE-2026-123791

Severity:

HIGH RISK

(7.3)

Query Injection (CWE-943) in OpenBMB Agent Registry

CVE-2026-123791

Deferred

Vulnerability type

Category:

Query Injection

CWE:

CWE-20, CWE-943

Impact:

Potential unauthorized query manipulation or data access

Severity:

HIGH RISK

(7.3)

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

A remotely reachable query-handling function in OpenBMB Internet of Agents may not properly neutralize special elements in the supplied key argument. If an attacker can send input that reaches this function, they may be able to alter query behavior; a public exploit is reported.

Affected context

The issue is reported in the Agent Registry component, in _primary_field_query in common/utils/milvus_utils.py. It concerns how the function handles the key argument when constructing or processing data query logic. Risk depends on whether untrusted remote input can reach this function and on the permissions and data available to the registry.

Exploit preconditions

  • Attack surface: A remotely reachable path that invokes the Agent Registry query function
  • Required access: The description does not specify whether authentication is required; access sufficient to submit the relevant input may be necessary
  • Trigger point: Processing the key argument in _primary_field_query
  • Why exploitation is possible: Special elements in the argument may not be adequately neutralized before it is used in query logic

Why this happens

The reported weakness is improper neutralization of special elements in data query logic, corresponding to CWE-943. If the key value is incorporated into a query without appropriate separation or handling, crafted input may change how the query is interpreted. CWE-20 (Improper Input Validation) is also associated with the issue and reflects the broader risk of accepting input without sufficient validation.

Potential impact

  • An attacker could alter query behavior or access data beyond the intended scope, depending on application controls.
  • Query results may be manipulated or made unreliable.
  • Data confidentiality or integrity could be affected, depending on the database permissions available to the component.
  • Exploitation may disrupt registry operations or expose information useful for further attacks.

General mitigation guidance

Common defensive patterns focus on keeping untrusted input from changing query structure:

  • Use parameterized queries or the database library's safe query-building APIs.
  • Treat user-controlled values as data, not query syntax; avoid assembling queries through string concatenation.
  • Validate input against an explicit schema and expected format, while not relying on validation as the only defense.
  • Apply least-privilege permissions to the registry's database identity and limit accessible records where practical.
  • Use secure-by-default query interfaces that separate values from operators and query structure.

How teams detect issues like this

High-level approaches to identifying similar weaknesses include:

  • Use static analysis to flag query construction from externally controlled values, especially string interpolation or concatenation.
  • Review data-access code for missing parameter binding and unclear trust boundaries around arguments such as key.
  • Enforce policies requiring parameterized query APIs and validated input schemas.
  • Monitor query errors and unusual query patterns, while avoiding reliance on runtime monitoring as the sole control.
  • Automated code-review tools may help identify risky query-building patterns.

Sources

SourceLink
github.comgithub.com/OpenBMB/IoA/issues/19
vuldb.comvuldb.com/cve/CVE-2026-123791
vuldb.comvuldb.com/submit/1033611
vuldb.comvuldb.com/vuln/431935
vuldb.comvuldb.com/vuln/431935/cti

Frequently asked

questions

The report describes the vulnerability as remotely launchable. Exploitability depends on whether an accessible request path reaches the affected function.

The available description does not establish whether authentication is required. The relevant condition is whether an attacker can submit input that reaches the query-handling code.

Use parameterized queries or safe query builders that keep input values separate from query structure.

Define and validate input schemas, prohibit unsafe query concatenation through code-review and static-analysis policies, and restrict database permissions to the minimum required.

Find out what's already
exploitable in your codebase.