CVE-2026-90898
Bifrost unauthenticated remote code execution via MCP stdio client registration
Refuses subprocess execution by Bifrost HTTP gateway processes to mitigate CVE-2026-90898.
Critical 9.8Vetted
EPSS 2.3%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-90898 is a critical (CVSS 9.8) vulnerability in Bifrost, published 14 September 2026. A vetted upatch, cve-2026-90898-exec-block, blocks it on running Linux machines with shirudo until Bifrost is upgraded.
- Severity
- Critical 9.8 CVSS 3.1
- Chance of exploitation
- 2.3% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Affected software
- Bifrost (maximhq)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
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.
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.
Sources
More references from NVD (4)
Mitigation
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.
Side effects
- A running
bifrost-httporbifrostgateway cannot spawn subprocesses withexecve(), so registering or starting astdioMCP client fails withEPERM(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.
The policy
75 lines of BPF C, attached at lsm/bprm_check_security.
// SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
#include "vmlinux.h"
#include <bpf/bpf_helpers.h>
#include <bpf/bpf_tracing.h>
#include <bpf/bpf_core_read.h>
#define EPERM 1
char _license[] SEC("license") = "Dual BSD/GPL";
struct {
__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
__uint(max_entries, 1);
__type(key, __u32);
__type(value, __u64);
} refused SEC(".maps");
static __always_inline void count_refused(void)
{
__u32 key = 0;
__u64 *value = bpf_map_lookup_elem(&refused, &key);
if (value)
__sync_fetch_and_add(value, 1);
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
static __always_inline bool is_bifrost_dentry(const struct dentry *dentry)
{
const unsigned char *name;
__u32 len;
char buf[16] = {};
if (!dentry)
return false;
len = BPF_CORE_READ(dentry, d_name.len);
if (len != 12 && len != 7)
return false;
name = BPF_CORE_READ(dentry, d_name.name);
if (!name || bpf_probe_read_kernel(buf, sizeof(buf), name))
return false;
if (buf[0] != 'b' || buf[1] != 'i' || buf[2] != 'f' ||
buf[3] != 'r' || buf[4] != 'o' || buf[5] != 's' ||
buf[6] != 't')
return false;
if (len == 7)
return true;
return buf[7] == '-' && buf[8] == 'h' && buf[9] == 't' &&
buf[10] == 't' && buf[11] == 'p';
}
static __always_inline bool current_is_bifrost(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
return is_bifrost_dentry(exe);
}
SEC("lsm/bprm_check_security")
int BPF_PROG(cve_2026_90898_exec_block, struct linux_binprm *bprm, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!current_is_bifrost())
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-90898"
description = "Refuses subprocess execution by Bifrost HTTP gateway processes to mitigate CVE-2026-90898"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-90898-exec-block.bpf.c"
[upatches.tree]
id = "cve-2026-90898-exec-block"
fixes = ["CVE-2026-90898"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 14 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #16 openedAdd CVE-2026-90898: Refuses subprocess execution by Bifrost HTTP gateway processesromanlab
- 25 Nov 2026MergeMerged #16romanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
No human review is recorded on GitHub for this upatch yet.
Evidence
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
| State | Unauthenticated POST /api/mcp/client stdio command execution |
|---|---|
| Before loading | reached |
| Upatch loaded | blocked |
| After unloading | reached |
tools-test.log Output of tools/test --setup before, while and after the upatch was loaded.
tools/test --setup, 2026-11-25T10:37:57Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-90898 setup done BIFROST_URL=http://127.0.0.1:8080 BIFROST_WORK=/opt/upatch-payload/cve-2026-90898 before reached POST /api/mcp/client ran /usr/bin/touch and created probe-c6119c1735a1 (HTTP 500); removed it loaded blocked POST /api/mcp/client failed with HTTP 500 and created no file after reached POST /api/mcp/client ran /usr/bin/touch and created probe-c947ce65a08a (HTTP 500); removed it PASS: reached before, blocked while loaded, reached again after
Use it
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.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-90898shirudo 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>