# CVE-2026-76550: WP Import Export Lite < 3.9.34 - Authenticated RCE via Export Template Path Traversal

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

## At a glance

CVE-2026-76550 is rated High 7.2 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:H/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.8%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-76550-export-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-76550 affects the WP Import Export Lite WordPress plugin before version 3.9.34 (published 16 September 2026). When a user with the `wpie_new_export` capability saves an export template via `wpie_export_save_template` (`WPIE_Export::save_template_data()` in `includes/classes/export/class-wpie-export.php`), the plugin stores raw `$_POST` parameters into the `options` column of the `wp_wpie_template` database table. When an export runs via `wpie_export_update_data`, `WPIE_Export_Engine::init_export()` (`includes/classes/export/class-wpie-export-engine.php`) reads `fileDir` and `fileName` from those saved template options, constructs `$dir = WPIE_UPLOAD_EXPORT_DIR . '/' . $filedir . '/'` and `$filepath = $dir . $filename`, and opens `$filepath` with `fopen($filepath, 'a+')`, writing CSV rows controlled by `fields_data` into it. Because neither `fileDir` nor `fileName` is validated against directory traversal or `.php` extensions before opening the file, an authenticated user with export permissions can write arbitrary `.php` files into the WordPress tree and execute PHP code on the server.

### Official description

The WP Import Export Lite WordPress plugin before 3.9.34 does not validate a user-supplied output path when writing export files, allowing users granted its export permission to write files with arbitrary names to arbitrary locations on the server, leading to remote code execution.

## What the upatch does

Two BPF LSM programs (`lsm/inode_create` and `lsm/file_open`) match PHP and web server processes (`php*`, `apache*`, `httpd*`, `lsphp*`) operating inside a WordPress directory tree (`wordpress`, `wp-content`, `wp-admin`, or `wp-includes` within 8 parent directories):

| Hook               | Refused                                                                                                                                                                                                                                                              |
| ------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `lsm/inode_create` | Creating a file outside `wp-content/uploads/wp-import-export-lite/{export,import,temp,upload}` or with an executable extension (`.php*`, `.pht*`, `.pha*`, `.inc`, `.cgi`, `.sh`, `.hta*`, `.htp*`, except the plugin's own `index.php` and `.htaccess` guard files) |
| `lsm/file_open`    | Opening any such file with `FMODE_WRITE`                                                                                                                                                                                                                             |

Read-only file opens (`!(file->f_mode & FMODE_WRITE)`), non-PHP processes, and files outside WordPress directories return `0` immediately. Normal exports into `wp-content/uploads/wp-import-export-lite/export/<hash>/<name>.csv` (and `.xml`, `.json`, `.xls`, `.xlsx`, `.ods`, `.zip`) continue to work.

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

## Side effects

- While loaded, PHP and web server processes cannot create or open for writing new files in the WordPress tree outside `wp-content/uploads/wp-import-export-lite/`, such as theme/plugin edits or media uploads outside that directory, nor create `.php` files inside `wp-import-export-lite/`.
- Serving pages, reading files, database queries, and WP Import Export Lite exports and imports using data extensions (`.csv`, `.xml`, `.json`, `.xls`, `.xlsx`, `.ods`, `.zip`) inside `wp-content/uploads/wp-import-export-lite/` continue to work.

## Preemption model and cost

The programs keep no maps or mutable state, so they are safe under every kernel preemption model, including `PREEMPT_LAZY`, `PREEMPT_DYNAMIC`, preemptible RCU, and `PREEMPT_RT`. On `file_open`, read-only opens exit after a single check of `file->f_mode`. On writes and file creations, non-PHP tasks exit after checking the 16-byte task comm, and paths outside a WordPress directory exit after walking at most 8 `d_parent` pointers.

## Affected versions

| Software                                        | Affected | Fixed in |
| ----------------------------------------------- | -------- | -------- |
| WP Import Export Lite (`wp-import-export-lite`) | < 3.9.34 | 3.9.34   |

## How it was tested

On WordPress 6.7.2 with WP Import Export Lite 3.9.32, the loaded upatch refused the traversal export file creation in wp-content/uploads during wpie_export_update_data, while before and after loading the export completed.

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

### Results

| State           | wpie_export_update_data with traversal fileDir/fileName |
| --------------- | ------------------------------------------------------- |
| Before loading  | completed (exported_records=1)                          |
| Upatch loaded   | blocked (export file creation refused)                  |
| After unloading | completed (exported_records=1)                          |

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

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-76550-1.0.0.bee oci://<registry>/<namespace>/cve-2026-76550 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-76550-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

- [WPScan vulnerability report d739fefd-cc21-49ce-90a1-b16c159e9389](https://wpscan.com/vulnerability/d739fefd-cc21-49ce-90a1-b16c159e9389/)
- [CVE-2026-76550 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-76550)
- [WP Import Export Lite plugin archive on WordPress.org](https://downloads.wordpress.org/plugin/wp-import-export-lite.3.9.32.zip)

### Links

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

### More references from NVD (1)

- [wpscan.com](https://wpscan.com/vulnerability/d739fefd-cc21-49ce-90a1-b16c159e9389/)
