Security & privacy

Critical Milvus vulnerability allows unauthenticated cluster takeover via port 9091

Researchers found a critical flaw in Milvus vector database that lets attackers disable authentication and read secrets with a single unauthenticated request to the management port.

Illustration of an unlocked server rack representing the Milvus security vulnerability
Illustration generated for this article

Security researchers at Remedio have identified a critical vulnerability in Milvus, a widely used open-source vector database. The flaw allows an unauthenticated attacker to take full control of a Milvus cluster by sending a single request to its management port. This issue affects versions 2.6.16 through 2.6.24 and 3.0.0 through 3.0.2, with fixes released in late November 2026.

What happened

Milvus serves as the backbone for many retrieval-augmented generation (RAG) systems, storing sensitive embeddings and source documents. The vulnerability stems from an architectural oversight where authentication middleware was applied to only one group of API routes, leaving approximately thirty other management routes completely open to anonymous access. These unprotected routes reside on port 9091, which is often exposed to load balancers and monitoring tools.

The most severe consequence is the ability to disable authentication for the entire cluster. By sending an unauthenticated POST request to the /management/config/alter endpoint, an attacker can write a runtime configuration override directly to etcd, the distributed key-value store Milvus uses for state. Specifically, setting common.security.authorizationEnabled to false turns off security checks for all subsequent requests. Because this change is stored in etcd, it persists across restarts and overrides any secure settings defined in the static milvus.yaml configuration file.

In addition to disabling security, the exposed management API allows for secret disclosure. A separate bug in the configuration retrieval endpoint enables attackers to read sensitive credentials, including root passwords and object storage keys, by exploiting a key normalization error. Together, these issues grant an attacker full read and write access to all data stored in the vector database, as well as the ability to execute arbitrary code or exfiltrate data through outbound channels.

How it works

The root cause lies in how Milvus registers its HTTP handlers. When the developers patched a previous exposure (CVE-2026-26190), they added an authentication gate to the /api/v1 route group. However, they did not apply this same protection to the sibling routes registered under the management package. These routes, which include functions for altering configuration, stopping nodes, and managing backups, were left without any middleware. The codebase even contained an unused authentication helper function, CheckPrivilege(), which was never wired up to these endpoints.

The secret disclosure vulnerability exploits a mismatch in string processing. The /management/config/get endpoint checks requested keys against a deny-list of sensitive terms like "password" and "secret." However, before checking the list, the system strips separator characters such as underscores, dots, and slashes from the key. An attacker can insert an underscore into a forbidden word, for example, changing defaultRootPassword to defaultRootPass_word. The deny-list sees the raw string with the underscore and allows it, but the lookup mechanism strips the underscore and successfully retrieves the protected value.

Key details

  • Vulnerability IDs: GHSA-v48h-wg8v-4qxq (Critical, CVSS 9.8) and GHSA-wmff-wfqp-j3gr (High, CVSS 7.5).
  • Affected Versions: Milvus >= 2.6.16 and < 2.6.25; Milvus >= 3.0.0 and < 3.0.3.
  • Fixed Versions: Milvus 2.6.25 and 3.0.3.
  • Attack Vector: Network-accessible port 9091 requires no credentials; default installations often have authentication disabled entirely.
  • Persistence: Configuration changes are written to etcd, surviving restarts and bypassing static file audits.
  • Impact: Full cluster takeover, secret extraction, file creation as service user, and potential remote code execution.

Why it matters

For engineering teams building AI applications, this vulnerability highlights the risks of relying on perimeter security for internal services. Port 9091 is frequently exposed to Kubernetes health checks or monitoring agents, creating a direct path for attackers who gain network access. Since the vulnerability allows an attacker to disable authentication globally, traditional security audits that inspect configuration files will fail to detect the compromise. The running state of the cluster diverges from the declared state in version control, creating a false sense of security.

The impact extends beyond data theft. Because Milvus stores the context for LLM responses, compromising it can lead to prompt injection attacks, leakage of proprietary business logic, or exposure of customer personally identifiable information. The ability to create files and open outbound connections means an attacker can pivot from the vector database to other parts of the infrastructure, using the Milvus service account privileges to move laterally.

What you can do

  • Upgrade immediately to Milvus 2.6.25 or 3.0.3 if you are running an affected version.
  • Restrict network access to port 9091 using firewall rules or Kubernetes network policies, allowing only trusted monitoring IPs.
  • Audit your etcd store for unexpected configuration overrides, specifically checking the value of common.security.authorizationEnabled.
  • Rotate all credentials stored in Milvus, including root passwords, MinIO keys, and etcd credentials, as they may have been exposed.
  • Review logs for unauthenticated POST requests to /management/config/alter or GET requests to /management/config/get with unusual key parameters.
  • Implement strict allow-listing for management endpoints if you must expose them, rather than relying on default deny behaviors that may be incomplete.
  • #milvus
  • #cybersecurity
  • #vector-database
  • #rag
  • #vulnerability

Tools from the Bytechap store

Keep reading

All stories