upatch.dev

CVE-2026-86189

WWBN AVideo Unauthenticated Path Traversal via notify.ffmpeg.json.php

Refuses access to notify.ffmpeg.json.php by PHP and web server processes to mitigate CVE-2026-86189.

Critical 9.3Vetted

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

At a glance

CVE-2026-86189 is a critical (CVSS 9.3) vulnerability in AVideo, published 5 September 2026. A vetted upatch, cve-2026-86189-notify-block, blocks it on running Linux machines with shirudo until AVideo is upgraded.

Severity
Critical 9.3 CVSS 4.0
Chance of exploitation
0.7% in the next 30 days (EPSS, 24 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-73
Affected software
AVideo (WWBN)
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

CVE-2026-86189 (GHSA-cprx-fggj-7vpq), "WWBN AVideo Unauthenticated Path Traversal via notify.ffmpeg.json.php", was published on 5 September 2026. In WWBN AVideo up to commit e01e41ecc, plugin/API/notify.ffmpeg.json.php decrypts $_REQUEST['notifyCode'] with decryptString() and checks only whether the result is non-empty, allowing any ciphertext previously issued by the site (such as a video_id_hash) to pass authentication. When $obj->standAloneFFMPEG is configured, processNotifyVideoFile() in objects/functionsFFMPEG.php calls buildLocalPathForNotify(), which concatenates $global['systemRootPath'] and $notify['avideoRelativePath'] without checking for path traversal or containment, while checking the file extension on $notify['avideoPath'] instead. It then fetches content from the configured encoder URL and writes it to that path with file_put_contents().

Official description

WWBN AVideo contains a path traversal vulnerability in notify.ffmpeg.json.php that allows unauthenticated attackers to write files to arbitrary locations by supplying a caller-chosen path in the avideoRelativePath parameter. Attackers can replay any previously issued ciphertext as a notifyCode token, which is decrypted but never validated, to bypass authentication and write files to the application root and subdirectories.

Affected versions

This is an application vulnerability in WWBN AVideo (e01e41ecc and earlier, listed as <= 29.0 in the CVE record). The upatch uses the lsm/file_open BPF LSM hook and CO-RE against vmlinux.h.

Sources

More references from NVD (2)

Mitigation

The BPF LSM program attaches to lsm/file_open and returns -EPERM when a process whose executable starts with php (such as php, php8.3, or php-fpm8.3) or is named apache2 or httpd opens a file named notify.ffmpeg.json.php whose parent directories are API under plugin.

It checks the dentry name length (22) first and returns 0 immediately on almost every open. Only 22-byte file names proceed to compare notify.ffmpeg.json.php, its parent API, its grandparent plugin, and the process executable name. A refusal from an earlier BPF LSM program on the same hook is preserved.

The refused per-CPU array counts refused opens at key 0.

Side effects

  • Requests to plugin/API/notify.ffmpeg.json.php fail because the PHP or web server process cannot open the script.
  • Standalone FFMPEG encoder notifications to plugin/API/notify.ffmpeg.json.php do not work while the upatch is loaded.
  • All other AVideo pages, scripts, and administrative tools (such as git, tar, or rsync run by other executables) continue to work normally.

Preemption model and cost

The program keeps no shared state beyond the per-CPU refusal counter, which it updates with __sync_fetch_and_add, making it safe under every preemption model including preemptible RCU and PREEMPT_RT. On nearly every file_open call, a run costs one integer comparison on dentry->d_name.len.

The policy

111 lines of BPF C, attached at 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";

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 bool name_is(const struct dentry *dentry,
				    const char *want, __u32 want_len)
{
	const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
	char buf[32] = {};

	if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len ||
	    want_len > sizeof(buf) - 1)
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
		return false;
	for (__u32 i = 0; i < sizeof(buf) - 1; i++) {
		if (i == want_len)
			return true;
		if (buf[i] != want[i])
			return false;
	}
	return false;
}

static __always_inline bool is_target_file(const struct dentry *dentry)
{
	const struct dentry *api;
	const struct dentry *plugin;

	if (!name_is(dentry, "notify.ffmpeg.json.php", 22))
		return false;
	api = BPF_CORE_READ(dentry, d_parent);
	if (!name_is(api, "API", 3))
		return false;
	plugin = BPF_CORE_READ(api, d_parent);
	return name_is(plugin, "plugin", 6);
}

static __always_inline bool exe_starts_with(const struct dentry *exe,
					    const char *prefix, __u32 plen)
{
	const unsigned char *name = BPF_CORE_READ(exe, d_name.name);
	__u32 len = BPF_CORE_READ(exe, d_name.len);
	char buf[16] = {};

	if (!exe || len < plen || plen > sizeof(buf) - 1)
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
		return false;
	for (__u32 i = 0; i < sizeof(buf) - 1; i++) {
		if (i == plen)
			return true;
		if (buf[i] != prefix[i])
			return false;
	}
	return false;
}

static __always_inline bool current_is_php_or_httpd(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 exe_starts_with(exe, "php", 3) ||
	       name_is(exe, "apache2", 7) ||
	       name_is(exe, "httpd", 5);
}

static __always_inline int earlier_verdict(int ret)
{
	return ret >= -4095 && ret < 0 ? ret : -EPERM;
}

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

	if (ret)
		return earlier_verdict(ret);
	if (BPF_CORE_READ(dentry, d_name.len) != 22)
		return 0;
	if (!is_target_file(dentry) || !current_is_php_or_httpd())
		return 0;
	count_refused();
	return -EPERM;
}

Process

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

  1. 5 Sept 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #50 openedAdd CVE-2026-86189: Refuses access to notify.ffmpeg.json.php by PHP and web server processesromanlab
  3. 25 Nov 2026MergeMerged #50romanlab
  4. 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)

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

Evidence

On WWBN AVideo at commit e01e41ecc with standAloneFFMPEG enabled, the loaded upatch refused opening plugin/API/notify.ffmpeg.json.php by the PHP server process so no file was written, while the unauthenticated request wrote the probe file into the application root before loading and after unloading.

Tested
25 Nov 2026
Target
WWBN AVideo e01e41ecc with standAloneFFMPEG enabled on PHP built-in server, loopback only
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Distribution
Ubuntu 26.04
Results
Statenotify.ffmpeg.json.php writes probe file in application rootNormal endpoint (objects/functionsFFMPEG.php)
Before loadingyes (reached)200
Upatch loadedno (blocked)200
After unloadingyes (reached)200
tools-test.log Output of tools/test --setup showing the payload reached before, blocked while loaded, and reached after.
tools/test --setup, 2026-11-25T12:38:54Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-86189
  setup   done         AVIDEO_URL=http://127.0.0.1:18080 AVIDEO_ROOT=/opt/upatch-payload/cve-2026-86189/AVideo AVIDEO_TOKEN=WkpKMFYySno2SmZhRy9ERTUxOHljZz09
  before  reached      notify.ffmpeg.json.php wrote upatch-probe-037f089cae81.txt in the application root (HTTP 500); removed it
  loaded  blocked      opening notify.ffmpeg.json.php was refused (HTTP 500) and wrote no file
  after   reached      notify.ffmpeg.json.php wrote upatch-probe-9262b28614cc.txt in the application root (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-86189
Publish and roll out
shirudo bpm push build/packages/cve-2026-86189-1.0.0.bee oci://<registry>/<namespace>/cve-2026-86189 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-86189-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>