upatch.dev

CVE-2026-86242

Unauthenticated RCE via Custom Plugin HTTP Path on Dynamically Linked Builds

Refuses Bifrost HTTP temporary plugin shared-object file creation and opening to mitigate CVE-2026-86242.

High 8.1Vetted

EPSS 3.6%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.

At a glance

CVE-2026-86242 is a high (CVSS 8.1) vulnerability in Bifrost, published 6 September 2026. A vetted upatch, cve-2026-86242-bifrost-block, blocks it on running Linux machines with shirudo until Bifrost is upgraded.

Severity
High 8.1 CVSS 3.1
Chance of exploitation
3.6% in the next 30 days (EPSS, 24 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-94, CWE-284, CWE-306
Affected software
Bifrost (maximhq)
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

CVE-2026-86242 (GHSA-2qp8-4xgm-fw6g), published on 6 September 2026, affects Maxim Bifrost HTTP transport (bifrost-http) before version 2.0.0. When management authentication is disabled (governance.auth_config.is_enabled=false, the default), createPlugin and updatePlugin in transports/bifrost-http/handlers/plugins.go accept an unauthenticated POST /api/plugins or PUT /api/plugins/{name} request specifying a custom plugin path starting with http. When enabled is true, SharedObjectPluginLoader.LoadPlugin in framework/plugins/soloader.go calls openPlugin, which passes any http-prefixed path to DownloadPlugin(dp.Path, ".so") in framework/plugins/utils.go. DownloadPlugin fetches the remote URL and writes the response body to a temporary file created with os.CreateTemp(os.TempDir(), "bifrost-plugin-*"+extension), marks it executable (0755), and passes the path to Go's plugin.Open, running package initializers and the optional Init symbol in the Bifrost process.

Official description

Bifrost HTTP transport before 2.0.0 accepts an enabled custom plugin whose path is an HTTP URL through unauthenticated POST /api/plugins when management authentication is disabled (the default, governance.auth_config.is_enabled=false). The shared-object loader treats an http-prefixed path as a download URL, writes the body to a temporary .so, and passes it to Go's plugin.Open. After a successful open, optional Init runs immediately with the supplied config as the Bifrost process user. On documented dynamically linked builds (DYNAMIC=1 / no static-link flags), which the vendor requires for custom Go plugins, plugin.Open is expected to succeed and this is unauthenticated remote code execution. On the published statically linked Docker image, plugin.Open fails with Dynamic loading not supported, so that build class is only server-side request forgery. Attack complexity is High because the attacker cannot force RCE on the default static image and a loadable plugin must match the host Go version, OS, architecture, and linkage. The 1.6.x HTTP transport line through 1.6.11 does not contain the fix.

Affected versions

Bifrost HTTP transport (transports):

Component Affected Fixed in
transports (bifrost-http) < 2.0.0 (including v1.6.2) 2.0.0-prerelease3 / 2.0.0

Kernels: the lsm/inode_create program uses the four-argument inode_create LSM hook prototype taking const struct mnt_idmap *idmap first, and lsm/file_open takes struct file *file.

Sources

More references from NVD (5)

Mitigation

Two BPF LSM programs return -EPERM to processes whose command name or executable is bifrost-http or bifrost when the target file name matches bifrost-plugin-*.so (starts with bifrost-plugin-, ends with .so, and is at least 18 bytes long):

Hook Refused
lsm/inode_create Creating a bifrost-plugin-*.so temporary file
lsm/file_open Opening a bifrost-plugin-*.so temporary file

Each program checks the dentry name length and the bifrost-plugin- prefix and .so suffix first, and checks the current task's command name (bpf_get_current_comm) and executable (mm->exe_file->f_path.dentry) only when the file name matches. A refusal from an earlier BPF LSM program on the same hook is preserved.

The refused per-CPU array counts refusals: key 0 for inode_create, key 1 for file_open.

Side effects

  • Any attempt by bifrost-http or bifrost to download an HTTP/HTTPS plugin .so into a bifrost-plugin-*.so temporary file fails at os.CreateTemp with permission denied, and POST /api/plugins rolls back the database record and returns HTTP 500.
  • Any bifrost-plugin-*.so file already present in /tmp before the upatch was loaded cannot be opened by bifrost-http or bifrost.
  • Built-in plugins and local .so plugins whose filenames do not match bifrost-plugin-*.so keep working.

Preemption model and cost

The programs keep no shared state beyond the refused per-CPU counter map, updated with __sync_fetch_and_add, making them safe under PREEMPT_LAZY, preemptible RCU, and PREEMPT_RT. On non-matching file creates and opens, each invocation checks the dentry name length before reading the dentry name and returning.

The policy

124 lines of BPF C, attached at lsm/inode_create and lsm/file_open.

// 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";

enum {
	REFUSED_CREATE,
	REFUSED_OPEN,
	NR_COUNTERS,
};

struct {
	__uint(type, BPF_MAP_TYPE_PERCPU_ARRAY);
	__uint(max_entries, NR_COUNTERS);
	__type(key, __u32);
	__type(value, __u64);
} refused SEC(".maps");

static __always_inline void count(__u32 key)
{
	__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_plugin_so(const struct dentry *dentry)
{
	const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
	__u32 len = BPF_CORE_READ(dentry, d_name.len);
	char buf[64] = {};

	if (!name || len < 18 || len >= sizeof(buf))
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 18)
		return false;
	if (buf[0] != 'b' || buf[1] != 'i' || buf[2] != 'f' ||
	    buf[3] != 'r' || buf[4] != 'o' || buf[5] != 's' ||
	    buf[6] != 't' || buf[7] != '-' || buf[8] != 'p' ||
	    buf[9] != 'l' || buf[10] != 'u' || buf[11] != 'g' ||
	    buf[12] != 'i' || buf[13] != 'n' || buf[14] != '-')
		return false;
	for (__u32 i = 15; i < 60; i++) {
		if (buf[i] == '.' && buf[i + 1] == 's' &&
		    buf[i + 2] == 'o' && buf[i + 3] == 0)
			return true;
		if (buf[i] == 0)
			return false;
	}
	return false;
}

static __always_inline bool is_bifrost_name(const char *buf)
{
	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 (buf[7] == 0)
		return true;
	return buf[7] == '-' && buf[8] == 'h' && buf[9] == 't' &&
	       buf[10] == 't' && buf[11] == 'p' && buf[12] == 0;
}

static __always_inline bool current_is_bifrost(void)
{
	char comm[16] = {};

	if (bpf_get_current_comm(&comm, sizeof(comm)) == 0 &&
	    is_bifrost_name(comm))
		return true;

	struct task_struct *task = bpf_get_current_task_btf();
	const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
	const unsigned char *name = BPF_CORE_READ(exe, d_name.name);
	char buf[16] = {};

	if (!name)
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 7)
		return false;
	return is_bifrost_name(buf);
}

SEC("lsm/inode_create")
int BPF_PROG(cve_2026_86242_create, const struct mnt_idmap *idmap,
	     struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
	if (ret)
		return earlier_verdict(ret);
	if (!is_bifrost_plugin_so(dentry))
		return 0;
	if (!current_is_bifrost())
		return 0;
	count(REFUSED_CREATE);
	return -EPERM;
}

SEC("lsm/file_open")
int BPF_PROG(cve_2026_86242_open, struct file *file, int ret)
{
	const struct dentry *dentry = file->f_path.dentry;

	if (ret)
		return earlier_verdict(ret);
	if (!is_bifrost_plugin_so(dentry))
		return 0;
	if (!current_is_bifrost())
		return 0;
	count(REFUSED_OPEN);
	return -EPERM;
}

Process

How this upatch was written, checked and reviewed, from the registry’s history.

  1. 6 Sept 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #9 openedAdd CVE-2026-86242: Refuses Bifrost HTTP temporary plugin shared-object file creation and openingromanlab
  3. 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
  4. 25 Nov 2026MergeMerged #9romanlab

No human review is recorded on GitHub for this upatch yet.

Evidence

On a vulnerable Bifrost HTTP transport v1.6.2 with default unauthenticated management API, the loaded upatch refused creation of the temporary bifrost-plugin-*.so file during POST /api/plugins; before loading and after unloading, Bifrost downloaded and wrote the temporary file.

Tested
25 Nov 2026
Target
Bifrost HTTP transport v1.6.2, SQLite config_store enabled, management auth disabled (default), listening on 127.0.0.1:8080
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Distribution
Ubuntu 26.04
Results
StateUnauthenticated POST /api/plugins writes temporary bifrost-plugin-*.so
Before loadingyes (reached)
Upatch loadedno (blocked)
After unloadingyes (reached)
tools-test.log Output of tools/test --setup showing the probe reached before, blocked while loaded, and reached again after.
tools/test --setup, 2026-11-25T10:17:26Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-86242
  setup   done         BIFROST_URL=http://127.0.0.1:8080
  before  reached      Bifrost downloaded and wrote the temporary bifrost-plugin-*.so file (HTTP 500); removed it
  loaded  blocked      Bifrost could not create the temporary bifrost-plugin-*.so file (HTTP 500)
  after   reached      Bifrost downloaded and wrote the temporary bifrost-plugin-*.so file (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.

Build and sign
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-86242
Publish and roll out
shirudo bpm push build/packages/cve-2026-86242-1.0.0.bee oci://<registry>/<namespace>/cve-2026-86242 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-86242-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>