# CVE-2026-82222: WordPress GiveWP plugin <= 4.16.7.1 - Remote Code Execution (RCE) vulnerability

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

## At a glance

CVE-2026-82222 is rated Critical 10.0 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H). It affects GiveWP (Liquid Web / StellarWP) and was published on 28 Aug 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 2.3%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-82222-exec-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-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.

## What the upatch does

One BPF LSM program on `lsm/bprm_check_security` returns `-EPERM` when:

1. The current task's executable name or task `comm` begins with `php` (matching `php`, `php8.3`, `php-fpm8.3`, `php-cgi`, and similar PHP runtimes).
2. The current task's working directory (`current->fs->pwd.dentry`), or one of its parent directories up to six levels deep, is named `wp-content`, `wp-admin`, or `wp-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.

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

## Side effects

- Any PHP process whose current working directory is inside `wp-content`, `wp-admin`, or `wp-includes` cannot spawn external binaries via `execve`.
- 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-admin` or `wp-content` that invoke external CLI binaries (such as `sendmail` or `convert`) 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`, and `wp-includes`), or pure-PHP post-exploitation actions that do not call `execve`.

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

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

## How it was tested

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

### Results

| State           | Command execution from GiveWP PHP 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-82222
```

Publish and roll out:

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

## Review

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

## Sources and links

- [CVE-2026-82222 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-82222)
- [Patchstack analysis: Unauthenticated PHP Object Injection to Remote Code Execution on GiveWP](https://patchstack.com/articles/unauthenticated-php-object-injection-to-remote-code-execution-on-givewp?_s_id=cve)
- [Patchstack vulnerability database entry](https://patchstack.com/database/wordpress/plugin/give/vulnerability/wordpress-givewp-plugin-4-16-7-1-remote-code-execution-rce-vulnerability?_s_id=cve)
- GiveWP 4.16.7.2 fix in WordPress Plugin SVN: [src/Helpers/Utils.php](https://plugins.svn.wordpress.org/give/tags/4.16.7.2/src/Helpers/Utils.php), [src/TestData/Framework/ProviderForwarder.php](https://plugins.svn.wordpress.org/give/tags/4.16.7.2/src/TestData/Framework/ProviderForwarder.php), and [readme.txt](https://plugins.svn.wordpress.org/give/tags/4.16.7.2/readme.txt)

### Links

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

### More references from NVD (2)

- [patchstack.com](https://patchstack.com/articles/unauthenticated-php-object-injection-to-remote-code-execution-on-givewp?_s_id=cve)
- [patchstack.com](https://patchstack.com/database/wordpress/plugin/give/vulnerability/wordpress-givewp-plugin-4-16-7-1-remote-code-execution-rce-vulnerability?_s_id=cve)
