CVE-2026-76552
WP Import Export Lite < 3.9.33 - Authenticated Arbitrary File Upload via Remote Image Import
Refuses writing or opening executable script files in wp-content/uploads to mitigate CVE-2026-76552 in WP Import Export Lite.
High 8.8Vetted
EPSS 0.7%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
At a glance
CVE-2026-76552 is a high (CVSS 8.8) vulnerability in WP Import Export Lite, published 16 September 2026. A vetted upatch, cve-2026-76552-upload-block, blocks it on running Linux machines with shirudo until WP Import Export Lite is upgraded.
- Severity
- High 8.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 Import Export Lite
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
CVE-2026-76552 affects the WP Import Export Lite WordPress plugin before
3.9.33. During an import with remote image downloading enabled
(wpie_item_image_option set to download_images), wpie_get_image_from_url()
in includes/classes/import/class-wpie-images.php accepts a user-supplied URL
and optional extension override (wpie_item_change_ext and
wpie_item_new_ext). When a user with the plugin's New Import permission sets
wpie_item_new_ext to php, wpie\import\Downloader\Manager renames the
downloaded temporary file in /tmp to .php, and media_handle_upload()
copies it into wp-content/uploads/<YYYY>/<MM>/ before checking the file type.
An authenticated user (including a Subscriber granted import access) can store
a .php script under wp-content/uploads/ and request it over HTTP to achieve
remote code execution.
Official description
The WP Import Export Lite WordPress plugin before 3.9.33 does not validate the type, extension or content of files it retrieves from a user-supplied URL during import, allowing users granted its import permission to store arbitrary files, including executable ones, on the server and achieve remote code execution.
Affected versions
WP Import Export Lite WordPress plugin:
| Plugin | Affected | Fixed in |
|---|---|---|
wp-import-export-lite |
< 3.9.33 (including 3.9.32) |
3.9.33 |
Sources
More references from NVD (1)
Mitigation
Two BPF LSM programs return -EPERM to processes whose executable starts with
php (such as php, php-fpm8.5, php-cgi) or is apache2 or httpd when
operating inside wp-content/uploads/ (up to six directory levels deep):
| Hook | Refused |
|---|---|
lsm/inode_create |
Creating a file ending in .php, .php[0-9], .phtml, .phar, .inc or .cgi (case-insensitive) under wp-content/uploads/ |
lsm/file_open |
Opening a file with one of those extensions under wp-content/uploads/ |
Each program checks the target dentry's suffix first and returns 0 immediately
for normal media files (.jpg, .png, .webp, .csv, .xml, .json, .txt).
Only files with a blocked executable extension walk the parent dentries for
wp-content/uploads and check the current task's executable. lsm/file_open
also prevents the PHP runtime from opening and executing a script that was
planted in wp-content/uploads/ before the upatch was loaded.
The refused per-CPU array counts refusals: key 0 for inode_create, key 1
for file_open.
Side effects
- PHP and Apache processes cannot create or open
.php,.php[0-9],.phtml,.phar,.inc, or.cgifiles insidewp-content/uploads/. WordPress core and WP Import Export Lite 3.9.33 (validate_image_extension()andwp_check_filetype_and_ext()) likewise disallow executable script uploads inwp-content/uploads/. - Normal image downloads (
.jpg,.png,.gif,.webp) and import data uploads (.csv,.xml,.json) inwp-content/uploads/continue to work. - WordPress core, plugins, and themes outside
wp-content/uploads/are unaffected.
Preemption model and cost
The programs keep no shared state beyond the per-CPU refused counter updated
with an atomic fetch-and-add, so they are safe under every kernel preemption
model (PREEMPT_LAZY, PREEMPT_DYNAMIC, PREEMPT_RT, and preemptible RCU).
On every file creation or open whose name does not end in a blocked script
extension, the program reads at most the last few bytes of the dentry name and
returns.
The policy
189 lines of BPF C, attached at 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_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 char lower_ascii(char c)
{
if (c >= 'A' && c <= 'Z')
return c + ('a' - 'A');
return c;
}
static __always_inline bool has_blocked_script_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) == 0) {
char c0 = tail[0];
char c1 = lower_ascii(tail[1]);
char c2 = lower_ascii(tail[2]);
char c3 = lower_ascii(tail[3]);
if (c0 == '.' && c1 == 'p' && c2 == 'h' && c3 == 'p')
return true;
if (c0 == '.' && c1 == 'c' && c2 == 'g' && c3 == 'i')
return true;
if (c0 == '.' && c1 == 'i' && c2 == 'n' && c3 == 'c')
return true;
}
if (len >= 6 && bpf_probe_read_kernel(tail, 5, name + len - 5) == 0) {
char c0 = tail[0];
char c1 = lower_ascii(tail[1]);
char c2 = lower_ascii(tail[2]);
char c3 = lower_ascii(tail[3]);
char c4 = lower_ascii(tail[4]);
if (c0 == '.' && c1 == 'p' && c2 == 'h' && c3 == 'p' &&
c4 >= '0' && c4 <= '9')
return true;
if (c0 == '.' && c1 == 'p' && c2 == 'h' && c3 == 'a' && c4 == 'r')
return true;
}
if (len >= 7 && bpf_probe_read_kernel(tail, 6, name + len - 6) == 0) {
char c0 = tail[0];
char c1 = lower_ascii(tail[1]);
char c2 = lower_ascii(tail[2]);
char c3 = lower_ascii(tail[3]);
char c4 = lower_ascii(tail[4]);
char c5 = lower_ascii(tail[5]);
if (c0 == '.' && c1 == 'p' && c2 == 'h' && c3 == 't' &&
c4 == 'm' && c5 == 'l')
return true;
}
return false;
}
static __always_inline bool dentry_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[16] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len ||
want_len > sizeof(buf) - 1)
return false;
if (bpf_probe_read_kernel(buf, want_len, name))
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_in_wp_uploads(const struct dentry *dir)
{
const struct dentry *cur = dir;
for (int depth = 0; depth < 6; depth++) {
const struct dentry *parent;
if (!cur)
return false;
parent = BPF_CORE_READ(cur, d_parent);
if (dentry_name_is(cur, "uploads", 7) &&
dentry_name_is(parent, "wp-content", 10))
return true;
if (parent == cur)
return false;
cur = parent;
}
return false;
}
static __always_inline bool 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 (!name || len < 3)
return false;
if (bpf_probe_read_kernel(buf, sizeof(buf), 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;
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_create")
int BPF_PROG(cve_2026_76552_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_blocked_script_ext(dentry))
return 0;
if (!is_in_wp_uploads(BPF_CORE_READ(dentry, d_parent)) || !is_php_runtime())
return 0;
count(REFUSED_CREATE);
return -EPERM;
}
SEC("lsm/file_open")
int BPF_PROG(cve_2026_76552_open, struct file *file, int ret)
{
const struct dentry *dentry = file->f_path.dentry;
if (ret)
return earlier_verdict(ret);
if (!has_blocked_script_ext(dentry))
return 0;
if (!is_in_wp_uploads(BPF_CORE_READ(dentry, d_parent)) || !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-76552"
description = "Refuses writing or opening executable script files in wp-content/uploads to mitigate CVE-2026-76552 in WP Import Export Lite"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-76552-upload-block.bpf.c"
[upatches.tree]
id = "cve-2026-76552-upload-block"
fixes = ["CVE-2026-76552"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 16 Sept 2026CVECVE published
- 25 Nov 2026Pull requestPull request #74 openedAdd CVE-2026-76552: Refuses writing or opening executable script files in wp-content/uploads toromanlab
- 25 Nov 2026CIUpdate upatch.devcancelled
- 25 Nov 2026CICIpassed
- 25 Nov 2026MergeMerged #74romanlab
- 25 Nov 2026CIUpdate upatch.devcancelled
- 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 WP Import Export Lite 3.9.32, the loaded upatch refused writing the .php file into wp-content/uploads during remote image import, while before and after it wrote the file.
- Tested
- 25 Nov 2026
- Target
- WordPress 6.7.2 with WP Import Export Lite 3.9.32 on PHP, loopback only
- Kernel
- 7.4-shirudo-ci-20261123
- Architecture
- x86_64
- Distribution
- Ubuntu 26.04
| State | Remote image import writes .php to wp-content/uploads |
|---|---|
| Before loading | yes (wpieprobe0868df6cb5e0.php) |
| Upatch loaded | no (copy refused) |
| After unloading | yes (wpieprobe74ce35cd3d9a.php) |
tools-test.log Output of tools/test --setup showing reached before, blocked while loaded, and reached again after.
tools/test --setup, 2026-11-25T14:14:12Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-76552 setup done WPIE_URL=http://127.0.0.1:18080 WPIE_UPLOADS=/opt/upatch-payload/cve-2026-76552/wordpress/wp-content/uploads WPIE_USER=admin WPIE_PASS=adminpass before reached remote image import wrote wpieprobe0868df6cb5e0.php into wp-content/uploads; removed it loaded blocked remote image import copy of .php file into wp-content/uploads was refused after reached remote image import wrote wpieprobe74ce35cd3d9a.php into wp-content/uploads; 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-76552shirudo bpm push build/packages/cve-2026-76552-1.0.0.bee oci://<registry>/<namespace>/cve-2026-76552 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-76552-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>