At a glance
- CVE ID: CVE-2026-130154
- Severity: CVSS 3.1 score 9.1, CRITICAL. Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- Vendor / product: Zyrabit-tech zyrabit-SLM (Zyrabit Platform)
- Affected versions: All versions before 2.4.4
- Fixed / patched versions: 2.4.4
- Exploited in the wild: No known exploitation
- Attack vector: Network. No authentication when the optional ENABLE_LEGACY_EXTENSIONS=true setting exposes POST /mcp/rpc. No user interaction. The tool can also be called locally without that setting.
- Published by: GitHub_M (GitHub), 2026-11-18
- Official advisory: GHSA-r4q8-hjfc-ggp2
What is this vulnerability?
Zyrabit Platform (zyrabit-SLM) provides sovereign AI infrastructure for enterprise retrieval-augmented generation (RAG). It has an MCP-style tool called
import_to_vault. The tool takes two inputs:
source_pathand
destination_name. The caller controls both.
The tool is implemented in
zyrabit-slm/api-rag/app/domain/services/mcp_service.py. It builds the destination by joining the documents directory with
destination_name, then passes the result to
shutil.copy2. The code has a content-pattern guard, but that guard does not restrict where
destination_namepoints. A relative path that climbs out of the directory, or an absolute path, makes the copy land outside the vault. This is a classic path traversal (CWE-22).
The read side has the same problem.
source_pathis not restricted either. Any file the service account can read can be copied into the vault. After that, the content can be retrieved through the
secure_queryfunction. The executable-pattern filter only blocks content that matches its patterns. Everything else, such as config files, keys or credentials, passes through.
The second weakness is missing authentication (CWE-306). When
ENABLE_LEGACY_EXTENSIONS=trueis set,
zyrabit-slm/api-rag/app/main.pyregisters
POST /mcp/rpcwithout the
get_current_userdependency. Anyone who can reach that endpoint can call the tool without logging in. This exposure is off by default. It is also not required for the flaw to exist, because local callers can invoke the tool directly.
How does it affect you?
The impact has three parts:
- Arbitrary file write. An attacker can write files anywhere the service account has write access. That can overwrite application files, configuration or data.
- File disclosure. An attacker can pull any file readable by the service into the vault and read it back through the query path. Think environment files, API keys, database credentials and private keys.
- Conditional code execution. The advisory says process execution is possible if an attacker can stage chosen source content and write it to a location that triggers execution. This depends on your deployment, so treat it as a real possibility rather than a certainty.
The CVSS score of 9.1 assumes network access with no privileges. That matches the case where legacy extensions are enabled. If your deployment has that flag on and the API is reachable from untrusted networks, treat this as an emergency. If the flag is off, the risk is lower but not gone. Any user, agent or LLM workflow that can call the tool can still misuse it. In a RAG system, tool calls can be driven by model output, so be careful about assuming that only trusted parties call tools.
There is no known exploitation in the wild. The CVE is not listed in CISA KEV at publication.
Who is affected?
Anyone running Zyrabit-tech zyrabit-SLM before version 2.4.4. The highest-risk group is deployments where:
ENABLE_LEGACY_EXTENSIONS
is set totrue
, and- the API service is reachable from networks you do not fully trust, and
- the service runs with broad filesystem read or write permissions.
Deployments with the flag left at its default (disabled) are still affected through local or authenticated tool calls.
How to check if you are vulnerable
- Find the zyrabit-SLM version you are running. Check your deployment manifest, container image tag, or the Git tag or commit you deployed from. Anything earlier than 2.4.4 is vulnerable.
- Check whether legacy extensions are on. Look in your environment files, container environment, compose files or orchestration manifests for
ENABLE_LEGACY_EXTENSIONS
. A generic search over your config directory works:
grep -rn ENABLE_LEGACY_EXTENSIONS /path/to/your/deployment/config- If the flag is
true
, check if/mcp/rpc
is reachable from outside the host. Review your firewall rules, reverse proxy routes and load balancer config. - Check which account the API service runs as and what it can read and write. This tells you how much damage a successful attack could do.
How to fix and recover
- Upgrade to 2.4.4. This is the fixed release. See the v2.4.4 release. The fix is in pull request #99 and commit bb81be4.
- Verify after patching. Confirm the running instance reports or was built from 2.4.4. Restart all API replicas so none still run old code.
- Turn off legacy extensions unless you have a confirmed need for them.
- Assume compromise if you were exposed. If an older version ran with legacy extensions enabled on a reachable network, take these steps:
- Rotate every secret the service could read. That includes API keys, database passwords, model provider tokens and TLS or SSH private keys on the host.
- Review the vault contents for documents you did not import, especially copies of system or config files.
- Look for new or changed files outside the vault directory, owned by the service account.
- Restore application code and config from a known-good source. Rebuilding containers from clean images is the simplest option.
Workarounds and mitigations
The advisory lists no official workarounds. Upgrading is the fix. If you cannot upgrade right away, these steps reduce exposure:
- Set
ENABLE_LEGACY_EXTENSIONS
to false or remove it. This removes the unauthenticated network path. - Block
/mcp/rpc
at your reverse proxy or firewall for all untrusted sources. - Run the service as a low-privilege account. Make the filesystem read-only wherever you can, with only the vault directory writable.
- Keep secrets out of files the service can read. Use a secrets manager or tightly scoped mounts.
None of these remove the bug. They only shrink who can reach it and what it can touch.
What to monitor
- Requests to
POST /mcp/rpc
, especially from unexpected sources or without authenticated sessions. - Calls to
import_to_vault
whose path arguments contain parent-directory sequences or absolute paths. - New documents in the vault that look like system files, configuration or credentials.
- File writes by the service account outside the documents directory. File integrity monitoring helps here.
- Unexpected processes started by the service account, given the conditional execution risk.
- Use of any secrets after rotation, which may show they were stolen earlier.
