# CVE-2026-86242: Unauthenticated RCE via Custom Plugin HTTP Path on Dynamically Linked Builds

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

## At a glance

CVE-2026-86242 is rated High 8.1 (CVSS 3.1, CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H). It affects Bifrost (maximhq) and was published on 6 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 3.6%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-86242-bifrost-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-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.

## What the upatch does

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`.

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

## 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.

## 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`.

## How it was tested

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

| State           | Unauthenticated POST /api/plugins writes temporary bifrost-plugin-\*.so |
| --------------- | ----------------------------------------------------------------------- |
| Before loading  | yes (reached)                                                           |
| Upatch loaded   | no (blocked)                                                            |
| After unloading | yes (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-86242
```

Publish and roll out:

```sh
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>
```

## Review

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

## Sources and links

- [GHSA-2qp8-4xgm-fw6g advisory](https://github.com/maximhq/bifrost/security/advisories/GHSA-2qp8-4xgm-fw6g)
- [Fix commit e0057ff355f831c251eabe9d0e44f3a3748532c6](https://github.com/maximhq/bifrost/commit/e0057ff355f831c251eabe9d0e44f3a3748532c6)
- [Pull request #5763](https://github.com/maximhq/bifrost/pull/5763)
- [Bifrost HTTP v2.0.0 release](https://github.com/maximhq/bifrost/releases/tag/transports/v2.0.0)
- [Bifrost repository](https://github.com/maximhq/bifrost)

### Links

- [CVE-2026-86242 on upatch.dev](https://upatch.dev/cve/CVE-2026-86242) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-86242)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-86242)
- [CWE-94](https://cwe.mitre.org/data/definitions/94.html)
- [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-86242](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-86242)

### More references from NVD (5)

- [github.com](https://github.com/maximhq/bifrost)
- [github.com](https://github.com/maximhq/bifrost/commit/e0057ff355f831c251eabe9d0e44f3a3748532c6)
- [github.com](https://github.com/maximhq/bifrost/pull/5763)
- [github.com](https://github.com/maximhq/bifrost/releases/tag/transports/v2.0.0)
- [github.com](https://github.com/maximhq/bifrost/security/advisories/GHSA-2qp8-4xgm-fw6g)
