# CVE-2026-90898: Bifrost unauthenticated remote code execution via MCP stdio client registration

The Markdown version of <https://upatch.dev/cve/CVE-2026-90898>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-90898 is rated Critical 9.8 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). It affects Bifrost (maximhq) and was published on 14 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 2.3%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-90898-exec-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-90898, "Bifrost unauthenticated remote code execution via MCP stdio client registration", was published on 14 September 2026. Bifrost registers MCP clients through `POST /api/mcp/client` (`addMCPClient` in `transports/bifrost-http/handlers/mcp.go`). A `stdio` MCP client specifies a command and arguments in `stdio_config`, and Bifrost starts that program immediately when the client is registered, before any MCP handshake. Because `governance.auth_config.is_enabled` defaults to `false`, every caller is treated as an authenticated admin by default, so a single unauthenticated `POST /api/mcp/client` request executes an arbitrary program as the Bifrost process user.

### Official description

Bifrost registers MCP clients through its management API. A stdio client is a command plus args. Bifrost starts that program in the gateway the moment the client is added. No MCP handshake required.

The default is governance.auth_config.is_enabled=false. Auth off means every caller is a local admin. One unauthenticated POST /api/mcp/client is enough to run a program as the Bifrost process user (appuser on the official image).

transports/v2.1.0 refuses an unauthenticated stdio registration with 403. transports/v2.0.0 still allows it.

## What the upatch does

The BPF LSM program `cve_2026_90898_exec_block` attaches to `lsm/bprm_check_security` and returns `-EPERM` when the calling task's executable (`current->mm->exe_file->f_path.dentry`) is named `bifrost-http` or `bifrost`. During `execve()`, `bprm_check_security` runs before `begin_new_exec()` replaces `current->mm->exe_file`, so a child process forked by the Bifrost gateway still carries the gateway's executable dentry when the hook runs. Starting `bifrost-http` itself from a shell or service manager is unaffected because the calling task at that `execve()` is the parent shell or init process, not `bifrost-http`. A refusal from an earlier BPF LSM program on the same hook is passed on. Refusals are counted in the `refused` per-CPU array map.

The policy: [`cve-2026-90898-exec-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-90898), 75 lines of BPF C attached at `lsm/bprm_check_security`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- A running `bifrost-http` or `bifrost` gateway cannot spawn subprocesses with `execve()`, so registering or starting a `stdio` MCP client fails with `EPERM` (HTTP 500 from `/api/mcp/client`).
- HTTP and SSE MCP clients, model provider requests, and management API calls that do not spawn local subprocesses continue to work.
- All other processes on the machine can execute programs normally.

## Preemption model and cost

The program keeps no shared state beyond the `refused` per-CPU counter map, which it updates with `__sync_fetch_and_add`, so it is safe under every preemption model, including `PREEMPT_LAZY`, preemptible RCU, and `PREEMPT_RT`. On every `execve()` by another program, the hook reads `current->mm->exe_file->f_path.dentry->d_name.len` and returns immediately unless the executable name length is 12 or 7.

## Affected versions

This is an application vulnerability in Maxim Bifrost (`github.com/maximhq/bifrost/transports`):

| Component                 | Affected                                  | Fixed in            |
| ------------------------- | ----------------------------------------- | ------------------- |
| `transports/bifrost-http` | `< 2.1.0` (including `transports/v2.0.0`) | `transports/v2.1.0` |

The upatch runs on any Linux kernel supported by shirudo with BPF LSM and BTF enabled.

## How it was tested

On Bifrost HTTP v2.0.0 with default unauthenticated management access, the upatch blocked stdio MCP client subprocess execution while loaded.

- **Tested:** 25 Nov 2026
- **Target:** Bifrost HTTP v2.0.0 with default unauthenticated management API on loopback
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM

### Results

| State           | Unauthenticated POST /api/mcp/client stdio command execution |
| --------------- | ------------------------------------------------------------ |
| Before loading  | reached                                                      |
| Upatch loaded   | blocked                                                      |
| After unloading | reached                                                      |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-90898
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-90898-1.0.0.bee oci://<registry>/<namespace>/cve-2026-90898 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-90898-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-90898 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-90898)
- [Bifrost repository](https://github.com/maximhq/bifrost)
- [Fix commit 12e170352bd2](https://github.com/maximhq/bifrost/commit/12e170352bd25eab1ae9ba16611f1797d1fd8fdc)
- [Pull request #6757](https://github.com/maximhq/bifrost/pull/6757)
- [Release transports/v2.1.0](https://github.com/maximhq/bifrost/releases/tag/transports/v2.1.0)

### Links

- [CVE-2026-90898 on upatch.dev](https://upatch.dev/cve/CVE-2026-90898) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-90898)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-90898)
- [CWE-284](https://cwe.mitre.org/data/definitions/284.html)
- [CWE-306](https://cwe.mitre.org/data/definitions/306.html)
- Upatch source: [upatches/cve-2026-90898](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-90898)

### More references from NVD (4)

- [github.com](https://github.com/maximhq/bifrost)
- [github.com](https://github.com/maximhq/bifrost/commit/12e170352bd25eab1ae9ba16611f1797d1fd8fdc)
- [github.com](https://github.com/maximhq/bifrost/pull/6757)
- [github.com](https://github.com/maximhq/bifrost/releases/tag/transports/v2.1.0)
