CVE-2026-84171
WP Images Upload on Piclect <= 1.0 - Unauthenticated Arbitrary File Upload
Refuses file creation and renaming in the wp-images-upload-on-piclect temp directory to mitigate CVE-2026-84171.
Critical 9.8Vetted
EPSS 0.7%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
NVDCVE.orgWP Images Upload on Piclect, published 12 Sept 2026
At a glance
CVE-2026-84171 is a critical (CVSS 9.8) vulnerability in WP Images Upload on Piclect, published 12 September 2026. A vetted upatch, cve-2026-84171-upload-block, blocks it on running Linux machines with shirudo until WP Images Upload on Piclect is upgraded.
- Severity
- Critical 9.8 CVSS 3.1
- Chance of exploitation
- 0.7% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-434
- Affected software
- WP Images Upload on Piclect
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
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.
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.
Sources
More references from NVD (1)
Mitigation
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.
Side effects
- Upload requests to
?kuaza_piclect_upload_progress=1fail atmove_uploaded_file()and cannot write files intowp-content/plugins/wp-images-upload-on-piclect/temp/. Because the upstreampiclect.comservice 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
rootadministration tools or package managers can still manage files inwp-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.
The policy
126 lines of BPF C, attached at lsm/inode_rename and lsm/inode_create.
// 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,
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 bool name_is(const struct dentry *dentry,
const char *want, __u32 want_len)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[32] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len ||
want_len > sizeof(buf) - 1)
return false;
if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
return false;
for (__u32 i = 0; i < sizeof(buf) - 1; i++) {
if (i == want_len)
return true;
if (buf[i] != want[i])
return false;
}
return false;
}
static __always_inline bool is_piclect_temp_dir(const struct dentry *dir)
{
if (!name_is(dir, "temp", 4))
return false;
return name_is(BPF_CORE_READ(dir, d_parent),
"wp-images-upload-on-piclect", 27);
}
static __always_inline bool starts_with(const char *buf, const char *prefix,
__u32 len)
{
for (__u32 i = 0; i < len; i++) {
if (buf[i] != prefix[i])
return false;
}
return true;
}
static __always_inline bool current_is_web_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);
const unsigned char *ename = BPF_CORE_READ(exe, d_name.name);
char comm[16] = {};
char ebuf[16] = {};
if (bpf_get_current_comm(comm, sizeof(comm)) == 0) {
if (starts_with(comm, "php", 3) ||
starts_with(comm, "apache2", 7) ||
starts_with(comm, "httpd", 5) ||
starts_with(comm, "lsphp", 5) ||
starts_with(comm, " FrankenPHP", 10))
return true;
}
if (!ename || bpf_probe_read_kernel_str(ebuf, sizeof(ebuf), ename) < 0)
return false;
return starts_with(ebuf, "php", 3) ||
starts_with(ebuf, "apache2", 7) ||
starts_with(ebuf, "httpd", 5) ||
starts_with(ebuf, "lsphp", 5);
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_rename")
int BPF_PROG(cve_2026_84171_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 (!is_piclect_temp_dir(BPF_CORE_READ(new_dentry, d_parent)) ||
!current_is_web_php())
return 0;
count(REFUSED_RENAME);
return -EPERM;
}
SEC("lsm/inode_create")
int BPF_PROG(cve_2026_84171_create, const struct mnt_idmap *idmap,
struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
if (ret)
return earlier_verdict(ret);
if (!is_piclect_temp_dir(BPF_CORE_READ(dentry, d_parent)) ||
!current_is_web_php())
return 0;
count(REFUSED_CREATE);
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-84171"
description = "Refuses file creation and renaming in the wp-images-upload-on-piclect temp directory to mitigate CVE-2026-84171"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-84171-upload-block.bpf.c"
[upatches.tree]
id = "cve-2026-84171-upload-block"
fixes = ["CVE-2026-84171"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 12 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #52 openedAdd CVE-2026-84171: Refuses file creation and renaming in the wp-images-upload-on-piclect tempromanlab
- 25 Nov 2026MergeMerged #52romanlab
- 25 Nov 2026ReviewReviewedqodo-code-review[bot] (automated)
No human review is recorded on GitHub for this upatch yet.
Evidence
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
| State | Unauthenticated upload writes file in temp/ |
|---|---|
| Before loading | yes (reached) |
| Upatch loaded | no (blocked) |
| After unloading | yes (reached) |
tools-test.log Output of tools/test --setup showing the upload writing into temp/ before and after the upatch is loaded, and refused while loaded.
tools/test --setup, 2026-11-25T12:40:24Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-84171 setup done WP_URL=http://127.0.0.1:18471 PICLECT_TEMP_DIR=/opt/upatch-payload/cve-2026-84171/wordpress/wp-content/plugins/wp-images-upload-on-piclect/temp before reached unauthenticated upload wrote upatch-probe-391022c9e03f.txt in temp/ (HTTP 200); removed it loaded blocked move_uploaded_file into temp/ was refused (HTTP 200) and wrote no file after reached unauthenticated upload wrote upatch-probe-b4eb73fbb773.txt in temp/ (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-84171shirudo 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>