# CVE-2026-84171: WP Images Upload on Piclect <= 1.0 - Unauthenticated Arbitrary File Upload

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

## At a glance

CVE-2026-84171 is rated Critical 9.8 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). It affects WP Images Upload on Piclect and was published on 12 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.7%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-84171-upload-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-84171 is an unauthenticated arbitrary file upload vulnerability in the WordPress plugin "WP images upload on piclect" (`wp-images-upload-on-piclect`) through version 1.0, published on 12 September 2026 (CVSS 9.8, CWE-434). In `wp-images-upload-on-Piclect.php`, the `plugin_trigger_check` method hooked on `template_redirect` handles requests with `kuaza_piclect_upload_progress=1`. When `kuaza_up_config_sitekey` and `kuaza_up_config_sitesecret` are set, it passes `stripslashes($_FILES["ImageFile"]["name"])` directly to `move_uploaded_file()` into `wp-content/plugins/wp-images-upload-on-piclect/temp/` without authentication, nonce verification, or file name or extension checks. It then forwards the file to `piclect.com` via cURL and calls `die()` when that defunct service fails to return valid JSON, before reaching `unlink()`, leaving the uploaded file in `temp/`. An unauthenticated attacker can upload a `.php` script and overwrite `temp/.htaccess` to achieve remote code execution.

### Official description

The WP images upload on piclect WordPress plugin through 1.0 does not validate the name or type of uploaded files before writing them to a publicly accessible directory, allowing unauthenticated attackers to upload arbitrary files and execute arbitrary code on the server.

## What the upatch does

Two BPF LSM programs return `-EPERM` to PHP and web server processes (`php*`, `apache2*`, `httpd*`, `lsphp*`) when the target directory is `wp-images-upload-on-piclect/temp`:

| Hook               | Refused                                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------------------- |
| `lsm/inode_rename` | Renaming a file into `wp-images-upload-on-piclect/temp/` (same-filesystem `move_uploaded_file`)         |
| `lsm/inode_create` | Creating a file in `wp-images-upload-on-piclect/temp/` (cross-filesystem `move_uploaded_file` fallback) |

Each program checks whether the destination parent dentry is named `temp` and its parent dentry is named `wp-images-upload-on-piclect` before checking the current task's command or executable name. A refusal from an earlier BPF LSM program on the same hook is passed on.

The `refused` per-CPU array counts refusals: key 0 for renames, key 1 for creates.

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

## Side effects

- Upload requests to `?kuaza_piclect_upload_progress=1` fail at `move_uploaded_file()` and cannot write files into `wp-content/plugins/wp-images-upload-on-piclect/temp/`. Because the upstream `piclect.com` service that the plugin uploads to is defunct, normal plugin uploads already fail at the subsequent cURL request.
- Standard WordPress media uploads into `wp-content/uploads/` and all other plugin directories are unaffected.
- Non-PHP/web processes such as `root` administration tools or package managers can still manage files in `wp-images-upload-on-piclect/temp/`.

## Preemption model and cost

The programs keep no state beyond the per-CPU refusal counter, updated with an atomic fetch-and-add, so they are safe under every preemption model, including preemptible RCU and `PREEMPT_LAZY`. On every file rename or create outside a directory named `temp`, a run checks only the four-byte length of the parent dentry's name and returns immediately.

## Affected versions

The vulnerability is in the WordPress plugin `wp-images-upload-on-piclect` versions up to and including 1.0 (no patched version exists).

For the kernel, `cve_2026_84171_create` uses the four-argument `inode_create` LSM hook prototype (`const struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode`) and `cve_2026_84171_rename` uses the four-argument `inode_rename` LSM hook prototype (`struct inode *old_dir, struct dentry *old_dentry, struct inode *new_dir, struct dentry *new_dentry`) present in Linux 7.4.

## How it was tested

On wp-images-upload-on-piclect 1.0, the loaded upatch refused moving or creating uploaded files in wp-content/plugins/wp-images-upload-on-piclect/temp/. Before loading and after unloading, the unauthenticated upload wrote the probe file into temp/.

- **Tested:** 25 Nov 2026
- **Target:** WordPress plugin wp-images-upload-on-piclect 1.0 on PHP, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | Unauthenticated upload writes file in temp/ |
| --------------- | ------------------------------------------- |
| Before loading  | yes (reached)                               |
| Upatch loaded   | no (blocked)                                |
| After unloading | yes (reached)                               |

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

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-84171-1.0.0.bee oci://<registry>/<namespace>/cve-2026-84171 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-84171-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-84171 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-84171)
- [WPScan vulnerability e5b9fd87-92a7-4fc6-b8b2-896b87d97c40](https://wpscan.com/vulnerability/e5b9fd87-92a7-4fc6-b8b2-896b87d97c40/)
- [Plugin archive on WordPress.org](https://downloads.wordpress.org/plugin/wp-images-upload-on-piclect.zip)

### Links

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

### More references from NVD (1)

- [wpscan.com](https://wpscan.com/vulnerability/e5b9fd87-92a7-4fc6-b8b2-896b87d97c40/)
