# CVE-2026-84478: WWBN AVideo Unauthenticated Arbitrary Log File Deletion

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

## At a glance

CVE-2026-84478 is rated Medium 6.9 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects AVideo (WWBN) and was published on 1 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.6%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-84478-avideo-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-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.

## What the upatch does

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.

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

## Side effects

- PHP and `apache2` processes cannot unlink `.log` files outside a directory named `loginCodes`. Legitimate login-code redemption in `loginCodes` continues to unlink its temporary `<code >.log` file normally.
- Log rotation handled by external tools such as `logrotate` is unaffected because its command name is neither `php*` nor `apache2`.
- The file-existence oracle in `get_api_login_code` (`Code is corrupted` vs `Code not found`) still reads the file before `unlink()` fails, though the target `.log` file 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`.

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

## How it was tested

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

### Results

| State           | Traversal unlink of .log outside loginCodes blocked |
| --------------- | --------------------------------------------------- |
| Before loading  | no                                                  |
| Upatch loaded   | yes                                                 |
| After unloading | no                                                  |

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

Publish and roll out:

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

## Review

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

## Sources and links

- [GHSA-wh69-gqmj-rcqg advisory](https://github.com/WWBN/AVideo/security/advisories/GHSA-wh69-gqmj-rcqg)
- [VulnCheck advisory for CVE-2026-84478](https://www.vulncheck.com/advisories/wwbn-avideo-unauthenticated-arbitrary-log-file-deletion)
- [WWBN AVideo 29.0 release](https://github.com/WWBN/AVideo/releases/tag/29.0)
- [WWBN AVideo commit e01e41ecc95b10a20ebefe8e5bd073476bcfde72](https://github.com/WWBN/AVideo/commit/e01e41ecc95b10a20ebefe8e5bd073476bcfde72)

### Links

- [CVE-2026-84478 on upatch.dev](https://upatch.dev/cve/CVE-2026-84478) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-84478)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-84478)
- [CWE-73](https://cwe.mitre.org/data/definitions/73.html)
- Upatch source: [upatches/cve-2026-84478](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-84478)

### More references from NVD (2)

- [github.com](https://github.com/WWBN/AVideo/security/advisories/GHSA-wh69-gqmj-rcqg)
- [vulncheck.com](https://www.vulncheck.com/advisories/wwbn-avideo-unauthenticated-arbitrary-log-file-deletion)
