CVE-2026-8778
MIPL Grouped Checkout Fields for WooCommerce <= 1.2.2 - Unauthenticated Arbitrary File Upload
Refuses writing or opening PHP files in the MIPL Grouped Checkout Fields upload directory to mitigate CVE-2026-8778.
Critical 9.8Vetted
EPSS 1.1%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
NVDCVE.orgMIPL Grouped Checkout Fields for WooCommerce, published 11 Sept 2026
At a glance
CVE-2026-8778 is a critical (CVSS 9.8) vulnerability in MIPL Grouped Checkout Fields for WooCommerce, published 11 September 2026. A vetted upatch, cve-2026-8778-upload-block, blocks it on running Linux machines with shirudo until MIPL Grouped Checkout Fields for WooCommerce is upgraded.
- Severity
- Critical 9.8 CVSS 3.1
- Chance of exploitation
- 1.1% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-434
- Affected software
- MIPL Grouped Checkout Fields for WooCommerce (mulika)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-8778 is an unauthenticated arbitrary file upload vulnerability (CWE-434) in the MIPL Grouped Checkout Fields for WooCommerce plugin for WordPress in all versions up to and including 1.2.2 (initially reported against versions up to 1.2.1 and fixed in 1.2.3). The plugin registers the REST API route /wp-json/mipl-wc-cf/v1/upload_file_data with permission_callback set to __return_true, handled by MIPL_WC_CF_Checkout_Fields::mipl_wc_upload_file() in include/class-mipl-wc-cf-checkout-block.php, as well as MIPL_WC_CF_Common::mipl_wc_upload_form() in include/class-mipl-wc-cf-common.php. In vulnerable versions, mipl_wc_upload_file() takes $_FILES['mipl_wc_file']['name'], extracts its extension with pathinfo(..., PATHINFO_EXTENSION) without checking the file type or extension, prepends a 5-character random prefix, and moves the uploaded temporary file into wp-content/uploads/mipl-wc-checkout-fields/mipl_checkout_files<YYYY>/<MM>/ with move_uploaded_file(). An unauthenticated attacker can upload a .php file into that web-accessible directory and request it to achieve remote code execution.
Official description
The MIPL Grouped Checkout Fields for WooCommerce – Customize & Organize Checkout Fields. plugin for WordPress is vulnerable to arbitrary file uploads due to missing file type validation in the `mipl_wc_upload_file` function in all versions up to, and including, 1.2.1. This makes it possible for unauthenticated attackers to upload arbitrary files on the affected site's server which may make remote code execution possible.
Affected versions
The vulnerable software is the WordPress plugin mipl-wc-checkout-fields:
| Plugin | Affected | Fixed in |
|---|---|---|
mipl-wc-checkout-fields |
<= 1.2.2 | 1.2.3 |
On the kernel side, the upatch uses the BPF LSM hooks inode_rename, inode_create (with the mnt_idmap first parameter), and file_open on Linux kernels with BPF LSM and BTF enabled.
Sources
- CVE-2026-8778 record (CVE API)
- Wordfence vulnerability advisory ac1257a9-7c8e-43aa-b21a-93a77b456aa4
- Vulnerable code in
mipl-wc-checkout-fields1.2.1include/class-mipl-wc-cf-checkout-block.php - REST route registration in
mipl-wc-checkout-fields1.2.1mipl-wc-checkout-fields.php - Fix changeset 3552029 in WordPress Plugin Trac
Mitigation
Three BPF LSM programs return -EPERM to PHP and web server processes (php*, apache2, httpd) when operating on a file with a PHP script extension (.php, .php3 through .php8, .phps, .phar, .phtml) inside the plugin's upload tree (mipl-wc-checkout-fields/mipl_checkout_files*):
| Hook | Refused |
|---|---|
lsm/inode_rename |
Renaming an uploaded temporary file to a PHP extension inside mipl-wc-checkout-fields/mipl_checkout_files* |
lsm/inode_create |
Creating a file with a PHP extension inside mipl-wc-checkout-fields/mipl_checkout_files* (when move_uploaded_file() falls back to copying across filesystems or after a refused rename) |
lsm/file_open |
Opening a file with a PHP extension inside mipl-wc-checkout-fields/mipl_checkout_files* (stopping execution of a PHP payload planted before the upatch was loaded) |
Each program checks the file extension first and returns 0 immediately for non-PHP files before inspecting parent dentries or the current task's executable. Refusals are counted per CPU in the refused map (0 for renames, 1 for creates, 2 for opens).
Side effects
- Any upload of a
.php,.php3–.php8,.phps,.phar, or.phtmlfile throughmipl-wc-checkout-fieldsfails withFile uploading errorbecausemove_uploaded_file()is refused by the kernel. - Normal checkout file uploads (images, PDFs, documents, plain text, archives) into
mipl-wc-checkout-fields/mipl_checkout_files*continue working. - The plugin's own PHP source files in
wp-content/plugins/mipl-wc-checkout-fields/are outsidemipl_checkout_files*and are unaffected.
Preemption model and cost
The programs hold no shared mutable state beyond the per-CPU refused array updated with __sync_fetch_and_add, making them safe under all kernel preemption models including PREEMPT_LAZY, PREEMPT_DYNAMIC, and PREEMPT_RT. On every file rename, create, or open, the fast path checks the target dentry name length and its trailing 4 to 6 bytes, returning immediately for any file that does not have a PHP extension.
The policy
197 lines of BPF C, attached at lsm/inode_rename and 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_RENAME,
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 has_php_ext(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[6] = {};
if (!name || len < 5 || len > 255)
return false;
if (bpf_probe_read_kernel(tail, 4, name + len - 4))
return false;
if (tail[0] == '.' && tail[1] == 'p' && tail[2] == 'h' && tail[3] == 'p')
return true;
if (len < 6)
return false;
if (bpf_probe_read_kernel(tail, 5, name + len - 5))
return false;
if (tail[0] == '.' && tail[1] == 'p' && tail[2] == 'h') {
if (tail[3] == 'p' && tail[4] >= '3' && tail[4] <= '8')
return true;
if (tail[3] == 'p' && tail[4] == 's')
return true;
if (tail[3] == 'a' && tail[4] == 'r')
return true;
}
if (len < 7)
return false;
if (bpf_probe_read_kernel(tail, 6, name + len - 6))
return false;
return tail[0] == '.' && tail[1] == 'p' && tail[2] == 'h' &&
tail[3] == 't' && tail[4] == 'm' && tail[5] == 'l';
}
static __always_inline bool is_mipl_parent(const struct dentry *dentry)
{
const char want[] = "mipl-wc-checkout-fields";
const __u32 want_len = sizeof(want) - 1;
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[24] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len || !name)
return false;
if (bpf_probe_read_kernel(buf, want_len, name))
return false;
for (__u32 i = 0; i < want_len; i++) {
if (buf[i] != want[i])
return false;
}
return true;
}
static __always_inline bool is_mipl_files_dir(const struct dentry *dentry)
{
const char prefix[] = "mipl_checkout_files";
const __u32 prefix_len = sizeof(prefix) - 1;
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
__u32 len = BPF_CORE_READ(dentry, d_name.len);
char buf[20] = {};
if (!dentry || len < prefix_len || !name)
return false;
if (bpf_probe_read_kernel(buf, prefix_len, name))
return false;
for (__u32 i = 0; i < prefix_len; i++) {
if (buf[i] != prefix[i])
return false;
}
return is_mipl_parent(BPF_CORE_READ(dentry, d_parent));
}
static __always_inline bool in_mipl_upload_dir(const struct dentry *dir)
{
const struct dentry *d1;
const struct dentry *d2;
if (!dir)
return false;
if (is_mipl_files_dir(dir))
return true;
d1 = BPF_CORE_READ(dir, d_parent);
if (!d1 || d1 == dir)
return false;
if (is_mipl_files_dir(d1))
return true;
d2 = BPF_CORE_READ(d1, d_parent);
if (!d2 || d2 == d1)
return false;
return is_mipl_files_dir(d2);
}
static __always_inline bool current_is_php_runtime(void)
{
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);
__u32 len = BPF_CORE_READ(exe, d_name.len);
char buf[8] = {};
if (!exe || len < 3 || !name)
return false;
if (bpf_probe_read_kernel(buf, 7, name))
return false;
if (buf[0] == 'p' && buf[1] == 'h' && buf[2] == 'p')
return true;
if (len == 7 && buf[0] == 'a' && buf[1] == 'p' && buf[2] == 'a' &&
buf[3] == 'c' && buf[4] == 'h' && buf[5] == 'e' && buf[6] == '2')
return true;
if (len == 5 && buf[0] == 'h' && buf[1] == 't' && buf[2] == 't' &&
buf[3] == 'p' && buf[4] == 'd')
return true;
return false;
}
SEC("lsm/inode_rename")
int BPF_PROG(cve_2026_8778_rename, struct inode *old_dir,
struct dentry *old_dentry, struct inode *new_dir,
struct dentry *new_dentry, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!has_php_ext(new_dentry))
return 0;
if (!in_mipl_upload_dir(BPF_CORE_READ(new_dentry, d_parent)) ||
!current_is_php_runtime())
return 0;
count(REFUSED_RENAME);
return -EPERM;
}
SEC("lsm/inode_create")
int BPF_PROG(cve_2026_8778_create, const struct mnt_idmap *idmap,
struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!has_php_ext(dentry))
return 0;
if (!in_mipl_upload_dir(BPF_CORE_READ(dentry, d_parent)) ||
!current_is_php_runtime())
return 0;
count(REFUSED_CREATE);
return -EPERM;
}
SEC("lsm/file_open")
int BPF_PROG(cve_2026_8778_open, struct file *file, int ret)
{
const struct dentry *dentry = file->f_path.dentry;
if (ret)
return earlier_verdict(ret);
if (!has_php_ext(dentry))
return 0;
if (!in_mipl_upload_dir(BPF_CORE_READ(dentry, d_parent)) ||
!current_is_php_runtime())
return 0;
count(REFUSED_OPEN);
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-8778"
description = "Refuses writing or opening PHP files in the MIPL Grouped Checkout Fields upload directory to mitigate CVE-2026-8778"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-8778-upload-block.bpf.c"
[upatches.tree]
id = "cve-2026-8778-upload-block"
fixes = ["CVE-2026-8778"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 11 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #38 openedAdd CVE-2026-8778: Refuses writing or opening PHP files in the MIPL Grouped Checkout Fields uploadromanlab
- 25 Nov 2026MergeMerged #38romanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
No human review is recorded on GitHub for this upatch yet.
Evidence
On WordPress 6.7.2 with mipl-wc-checkout-fields 1.2.1, the loaded upatch refused the unauthenticated .php upload through /wp-json/mipl-wc-cf/v1/upload_file_data so move_uploaded_file wrote no file, while the same upload succeeded before load and after unload.
- Tested
- 25 Nov 2026
- Target
- WordPress 6.7.2 with mipl-wc-checkout-fields 1.2.1 on PHP CLI built-in server, loopback only
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Distribution
- Ubuntu 26.04
| State | Unauthenticated .php upload to /wp-json/mipl-wc-cf/v1/upload_file_data |
|---|---|
| Before loading | reached (wrote U6Oea-upatch-probe-45d81f1cedcd.php, HTTP 200) |
| Upatch loaded | blocked (File uploading error, no .php file written) |
| After unloading | reached (wrote j9YgV-upatch-probe-1ff11235e81e.php, HTTP 200) |
tools-test.log Output of tools/test --setup running the probe before, while and after the upatch was loaded.
tools/test --setup, 2026-11-25T11:46:23Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-8778 setup done WORDPRESS_URL=http://127.0.0.1:8080 MIPL_UPLOAD_DIR=/opt/upatch-payload/cve-2026-8778/wordpress/wp-content/uploads/mipl-wc-checkout-fields before reached upload wrote U6Oea-upatch-probe-45d81f1cedcd.php in /opt/upatch-payload/cve-2026-8778/wordpress/wp-content/uploads/mipl-wc-checkout-fields (HTTP 200); removed it loaded blocked move_uploaded_file failed with 'File uploading error' and wrote no .php file after reached upload wrote j9YgV-upatch-probe-1ff11235e81e.php in /opt/upatch-payload/cve-2026-8778/wordpress/wp-content/uploads/mipl-wc-checkout-fields (HTTP 200); 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.
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-8778shirudo bpm push build/packages/cve-2026-8778-1.0.0.bee oci://<registry>/<namespace>/cve-2026-8778 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-8778-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>