CVE-2026-82222
WordPress GiveWP plugin <= 4.16.7.1 - Remote Code Execution (RCE) vulnerability
Refuses command execution by PHP processes running inside a WordPress installation to mitigate GiveWP CVE-2026-82222.
Critical 10.0Vetted
EPSS 2.3%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-82222 is a critical (CVSS 10.0) vulnerability in GiveWP, published 28 August 2026. A vetted upatch, cve-2026-82222-exec-block, blocks it on running Linux machines with shirudo until GiveWP is upgraded.
- Severity
- Critical 10.0 CVSS 3.1
- Chance of exploitation
- 2.3% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-502
- Affected software
- GiveWP (Liquid Web / StellarWP)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-82222 is an unauthenticated PHP object injection vulnerability in the
GiveWP WordPress donation plugin (Liquid Web / StellarWP) affecting versions
through 4.16.7.1, published on 28 August 2026. In includes/process-donation.php,
give_process_donation_form() maps donor user info through
Give\Helpers\Utils::maybeSafeUnserialize(), which calls
Give\Helpers\Utils::safeUnserialize() in src/Helpers/Utils.php. That helper
called unserialize(trim($data), ['allowed_classes' => false]), converting
serialized objects into __PHP_Incomplete_Class instances while preserving
their class name and properties, and in 4.16.6 through 4.16.7.1 returned the
raw serialized string $data when containsPhpIncompleteClass() matched. When
an attacker plants a serialized gadget chain in a donor profile's last_name
user meta and submits give_process_donation without give_last, the poisoned
value is stored in the GiveWP donation session and later passed to unrestricted
unserialize() in includes/class-give-session.php and
includes/database/class-give-db-sessions.php. The gadget chain enters through
TCPDF::__destruct() and reaches Give\TestData\Framework\ProviderForwarder::__call()
in src/TestData/Framework/ProviderForwarder.php, which passes
$this->loadedProviders[$name] to call_user_func_array() to run an arbitrary
command such as system().
Official description
Deserialization of Untrusted Data vulnerability in Liquid Web / StellarWP GiveWP allows Object Injection. This issue affects GiveWP: from n/a through 4.16.7.1.
Affected versions
The vulnerability is in the GiveWP WordPress plugin, not the Linux kernel:
| Software | Affected | Fixed in |
|---|---|---|
GiveWP (give) |
through 4.16.7.1 | 4.16.7.2 |
The BPF program uses lsm/bprm_check_security with CO-RE reads of
task_struct, mm_struct, fs_struct, and dentry, which are present on all
Linux kernels supported by shirudo.
Sources
More references from NVD (2)
Mitigation
One BPF LSM program on lsm/bprm_check_security returns -EPERM when:
- The current task's executable name or task
commbegins withphp(matchingphp,php8.3,php-fpm8.3,php-cgi, and similar PHP runtimes). - The current task's working directory (
current->fs->pwd.dentry), or one of its parent directories up to six levels deep, is namedwp-content,wp-admin, orwp-includes.
When the GiveWP POP chain invokes a command execution function (system,
exec, passthru, shell_exec, popen, or proc_open) from a request
handled under WordPress's admin, AJAX, or plugin directories, the kernel refuses
the execve system call with EPERM before the binary or shell starts. Earlier
BPF LSM refusals on the same hook are preserved, and the refused per-CPU
array counts blocked executions at key 0.
Side effects
- Any PHP process whose current working directory is inside
wp-content,wp-admin, orwp-includescannot spawn external binaries viaexecve. - Normal GiveWP donation processing, session handling, and WordPress page rendering run in PHP and talk to MySQL over sockets without spawning external programs.
- WordPress plugins or administrative actions running inside
wp-adminorwp-contentthat invoke external CLI binaries (such assendmailorconvert) fail until GiveWP is upgraded to 4.16.7.2 or later and the upatch is unloaded. - Not covered: a PHP request whose current working directory is the top-level
WordPress root directory (outside
wp-content,wp-admin, andwp-includes), or pure-PHP post-exploitation actions that do not callexecve.
Preemption model and cost
The program keeps no shared mutable state beyond the per-CPU refused counter,
which it updates with __sync_fetch_and_add, making it safe under every kernel
preemption model including preemptible RCU (PREEMPT_LAZY, PREEMPT_DYNAMIC)
and PREEMPT_RT. The hook runs only on execve, checks the current process
executable and comm first, and returns immediately for every non-PHP process.
The policy
134 lines of BPF C, attached at lsm/bprm_check_security.
// 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 is_php_name(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 buf[4] = {};
if (!dentry || len < 3 || !name)
return false;
if (bpf_probe_read_kernel(buf, 3, name))
return false;
if (buf[0] != 'p' || buf[1] != 'h' || buf[2] != 'p')
return false;
if (len == 3)
return true;
if (bpf_probe_read_kernel(&buf[3], 1, name + 3))
return false;
return (buf[3] >= '0' && buf[3] <= '9') || buf[3] == '-' || buf[3] == '.';
}
static __always_inline bool current_is_php(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
char comm[16] = {};
if (is_php_name(exe))
return true;
if (bpf_get_current_comm(&comm, sizeof(comm)))
return false;
if (comm[0] != 'p' || comm[1] != 'h' || comm[2] != 'p')
return false;
return comm[3] == '\0' || (comm[3] >= '0' && comm[3] <= '9') ||
comm[3] == '-' || comm[3] == '.';
}
static __always_inline bool dentry_is_wp_dir(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 buf[12] = {};
if (!dentry || !name)
return false;
if (len == 10) {
if (bpf_probe_read_kernel(buf, 10, name))
return false;
return buf[0] == 'w' && buf[1] == 'p' && buf[2] == '-' &&
buf[3] == 'c' && buf[4] == 'o' && buf[5] == 'n' &&
buf[6] == 't' && buf[7] == 'e' && buf[8] == 'n' &&
buf[9] == 't';
}
if (len == 8) {
if (bpf_probe_read_kernel(buf, 8, name))
return false;
return buf[0] == 'w' && buf[1] == 'p' && buf[2] == '-' &&
buf[3] == 'a' && buf[4] == 'd' && buf[5] == 'm' &&
buf[6] == 'i' && buf[7] == 'n';
}
if (len == 11) {
if (bpf_probe_read_kernel(buf, 11, name))
return false;
return buf[0] == 'w' && buf[1] == 'p' && buf[2] == '-' &&
buf[3] == 'i' && buf[4] == 'n' && buf[5] == 'c' &&
buf[6] == 'l' && buf[7] == 'u' && buf[8] == 'd' &&
buf[9] == 'e' && buf[10] == 's';
}
return false;
}
static __always_inline bool cwd_in_wordpress(void)
{
struct task_struct *task = bpf_get_current_task_btf();
const struct dentry *d = BPF_CORE_READ(task, fs, pwd.dentry);
for (int i = 0; i < 6; i++) {
const struct dentry *parent;
if (!d)
return false;
if (dentry_is_wp_dir(d))
return true;
parent = BPF_CORE_READ(d, d_parent);
if (!parent || parent == d)
break;
d = parent;
}
return false;
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/bprm_check_security")
int BPF_PROG(cve_2026_82222_exec_block, struct linux_binprm *bprm, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!current_is_php())
return 0;
if (!cwd_in_wordpress())
return 0;
count_refused();
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-82222"
description = "Refuses command execution by PHP processes running inside a WordPress installation to mitigate GiveWP CVE-2026-82222"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-82222-exec-block.bpf.c"
[upatches.tree]
id = "cve-2026-82222-exec-block"
fixes = ["CVE-2026-82222"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 28 Aug 2026CVECVE published
- 25 Nov 2026Pull requestPull request #14 openedAdd CVE-2026-82222: Refuses command execution by PHP processes running inside a WordPressromanlab
- 25 Nov 2026MergeMerged #14romanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
No human review is recorded on GitHub for this upatch yet.
Evidence
Tested CVE-2026-82222 mitigation on GiveWP 4.16.7.1: safeUnserialize preserved __PHP_Incomplete_Class and ProviderForwarder::__call reached execve before and after loading, while the upatch blocked execve from the PHP worker while loaded.
- Tested
- 25 Nov 2026
- Target
- GiveWP 4.16.7.1 on PHP 8.3 (Ubuntu 26.04)
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Distribution
- Ubuntu 26.04
| State | Command execution from GiveWP PHP blocked |
|---|---|
| Before loading | no |
| Upatch loaded | yes |
| After unloading | no |
tools-test.log Output of tools/test --setup before, during, and after loading cve-2026-82222-exec-block.
tools/test --setup, 2026-11-25T10:36:59Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-82222 setup done GIVEWP_PROBE_URL=http://127.0.0.1:18222/wp-content/plugins/give/upatch-probe.php before reached GiveWP safeUnserialize preserved the serialized object and ProviderForwarder ran /bin/echo loaded blocked the kernel refused execve from the GiveWP PHP process after reached GiveWP safeUnserialize preserved the serialized object and ProviderForwarder ran /bin/echo 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-82222shirudo bpm push build/packages/cve-2026-82222-1.0.0.bee oci://<registry>/<namespace>/cve-2026-82222 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-82222-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>