CVE-2026-84478
WWBN AVideo Unauthenticated Arbitrary Log File Deletion
Refuses unlinking of .log files outside loginCodes by PHP/Apache processes to mitigate CVE-2026-84478 in WWBN AVideo.
Medium 6.9Vetted
EPSS 0.6%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-84478 is a medium (CVSS 6.9) vulnerability in AVideo, published 1 September 2026. A vetted upatch, cve-2026-84478-avideo-block, blocks it on running Linux machines with shirudo until AVideo is upgraded.
- Severity
- Medium 6.9 CVSS 4.0
- Chance of exploitation
- 0.6% 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-84478 (GHSA-wh69-gqmj-rcqg) is a path traversal and arbitrary file deletion vulnerability in WWBN AVideo (plugin/API/API.php in get_api_login_code). The endpoint builds a filesystem path from the unauthenticated code parameter as "{$path}{$parameters['code']}.log" under getTmpDir('loginCodes') and calls unlink($filename) before decrypting or validating the file's contents. Supplying directory traversal sequences (../) in code allows an unauthenticated attacker to delete arbitrary .log files writable by the web server, such as videos/avideo.log.
Official description
WWBN AVideo contains a path traversal vulnerability in the API get_api_login_code endpoint that allows unauthenticated attackers to delete arbitrary .log files by supplying directory traversal sequences in the code parameter. Attackers can exploit this to destroy audit logs and probe for file existence on the server, with the vulnerability enabling both file deletion and information disclosure about the filesystem.
Affected versions
WWBN AVideo: versions up to and including 29.0 (tested on release tag 29.0 and commit e01e41ecc95b10a20ebefe8e5bd073476bcfde72).
Kernels: any Linux kernel supported by shirudo with BPF LSM and inode_unlink.
Sources
More references from NVD (2)
Mitigation
The lsm/inode_unlink program checks whether the target dentry's name ends in .log. When it does, it allows the unlink if the immediate parent directory is named loginCodes (where legitimate temporary login code files live), and otherwise returns -EPERM when the current task's command name starts with php or is apache2. The refused per-CPU array map counts refused unlinks at key 0.
Side effects
- PHP and
apache2processes cannot unlink.logfiles outside a directory namedloginCodes. Legitimate login-code redemption inloginCodescontinues to unlink its temporary<code >.logfile normally. - Log rotation handled by external tools such as
logrotateis unaffected because its command name is neitherphp*norapache2. - The file-existence oracle in
get_api_login_code(Code is corruptedvsCode not found) still reads the file beforeunlink()fails, though the target.logfile is preserved on disk.
Preemption model and cost
The program holds no state other than a single per-CPU counter updated with __sync_fetch_and_add, making it safe under all kernel preemption models including PREEMPT_LAZY, preemptible RCU, and PREEMPT_RT. On every unlink, the program checks the dentry name length and its 4-byte suffix first, returning immediately for any file that does not end in .log.
The policy
92 lines of BPF C, attached at lsm/inode_unlink.
// 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 ends_with_log(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 tail[4] = {};
if (len < 5 || len > 255)
return false;
if (bpf_probe_read_kernel(tail, sizeof(tail), name + len - 4))
return false;
return tail[0] == '.' && tail[1] == 'l' && tail[2] == 'o' && tail[3] == 'g';
}
static __always_inline bool parent_is_login_codes(const struct dentry *dentry)
{
const struct dentry *parent = BPF_CORE_READ(dentry, d_parent);
const unsigned char *name = BPF_CORE_READ(parent, d_name.name);
__u32 len = BPF_CORE_READ(parent, d_name.len);
char buf[11] = {};
if (len != 10)
return false;
if (bpf_probe_read_kernel(buf, 10, name))
return false;
return buf[0] == 'l' && buf[1] == 'o' && buf[2] == 'g' &&
buf[3] == 'i' && buf[4] == 'n' && buf[5] == 'C' &&
buf[6] == 'o' && buf[7] == 'd' && buf[8] == 'e' &&
buf[9] == 's';
}
static __always_inline bool current_is_php_or_apache(void)
{
char comm[16] = {};
if (bpf_get_current_comm(comm, sizeof(comm)))
return false;
if (comm[0] == 'p' && comm[1] == 'h' && comm[2] == 'p')
return true;
if (comm[0] == 'a' && comm[1] == 'p' && comm[2] == 'a' &&
comm[3] == 'c' && comm[4] == 'h' && comm[5] == 'e' &&
comm[6] == '2' && comm[7] == 0)
return true;
return false;
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_unlink")
int BPF_PROG(cve_2026_84478_unlink, struct inode *dir, struct dentry *dentry, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!ends_with_log(dentry))
return 0;
if (parent_is_login_codes(dentry))
return 0;
if (!current_is_php_or_apache())
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-84478"
description = "Refuses unlinking of .log files outside loginCodes by PHP/Apache processes to mitigate CVE-2026-84478 in WWBN AVideo"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-84478-avideo-block.bpf.c"
[upatches.tree]
id = "cve-2026-84478-avideo-block"
fixes = ["CVE-2026-84478"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 1 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #77 openedAdd CVE-2026-84478: Refuses unlinking of .log files outside loginCodes by PHP/Apache processes toromanlab
- 25 Nov 2026CIUpdate upatch.devpassed
- 25 Nov 2026CICIpassed
- 25 Nov 2026MergeMerged #77romanlab
No human review is recorded on GitHub for this upatch yet.
Evidence
On WWBN AVideo 29.0, the loaded upatch refused the path-traversal unlink of a .log file outside loginCodes, preserving the log file while before and after runs unlinked it.
- Tested
- 25 Nov 2026
- Target
- WWBN AVideo 29.0 (plugin/API/API.php get_api_login_code) on PHP CLI built-in web server, loopback only
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Distribution
- Ubuntu 26.04
| State | Traversal unlink of .log outside loginCodes blocked |
|---|---|
| Before loading | no |
| Upatch loaded | yes |
| After unloading | no |
tools-test.log Output of tools/test --setup showing the traversal unlink succeeding before and after, and blocked while the upatch is loaded.
tools/test --setup, 2026-11-25T14:25:56Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-84478 setup done AVIDEO_URL=http://127.0.0.1:18080/ AVIDEO_VIDEOS_DIR=/opt/upatch-payload/cve-2026-84478/videos before reached get_api_login_code unlinked upatch-probe-36c3d5d62fe6.log outside loginCodes loaded blocked upatch-probe-eeef9b234594.log survived the traversal unlink attempt after reached get_api_login_code unlinked upatch-probe-855072fdca97.log outside loginCodes 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-84478shirudo bpm push build/packages/cve-2026-84478-1.0.0.bee oci://<registry>/<namespace>/cve-2026-84478 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-84478-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>