# CVE-2026-76552: WP Import Export Lite < 3.9.33 - Authenticated Arbitrary File Upload via Remote Image Import

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

## At a glance

CVE-2026-76552 is rated High 8.8 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). It affects WP Import Export Lite and was published on 16 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-76552-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-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.

## What the upatch does

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

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

## Side effects

- PHP and Apache processes cannot create or open `.php`, `.php[0-9]`, `.phtml`, `.phar`, `.inc`, or `.cgi` files inside `wp-content/uploads/`. WordPress core and WP Import Export Lite 3.9.33 (`validate_image_extension()` and `wp_check_filetype_and_ext()`) likewise disallow executable script uploads in `wp-content/uploads/`.
- Normal image downloads (`.jpg`, `.png`, `.gif`, `.webp`) and import data uploads (`.csv`, `.xml`, `.json`) in `wp-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.

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

## How it was tested

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

### Results

| 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)                       |

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

Publish and roll out:

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

## Review

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

## Sources and links

- [CVE-2026-76552 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-76552)
- [WPScan vulnerability advisory e858099a-c3ce-453d-9b98-75087dddc381](https://wpscan.com/vulnerability/e858099a-c3ce-453d-9b98-75087dddc381/)
- [WP Import Export Lite 3.9.32 `class-wpie-images.php` (WordPress Plugin SVN)](https://plugins.svn.wordpress.org/wp-import-export-lite/tags/3.9.32/includes/classes/import/class-wpie-images.php)
- [WP Import Export Lite 3.9.33 `class-wpie-images.php` fix (WordPress Plugin SVN)](https://plugins.svn.wordpress.org/wp-import-export-lite/tags/3.9.33/includes/classes/import/class-wpie-images.php)

### Links

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

### More references from NVD (1)

- [wpscan.com](https://wpscan.com/vulnerability/e858099a-c3ce-453d-9b98-75087dddc381/)
