# CVE-2026-87855: JTL-Connector for WooCommerce <= 2.4.3 - Unauthenticated Arbitrary File Upload via 'image.push' Method

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

## At a glance

CVE-2026-87855 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 JTL-Connector for WooCommerce (ntbyk) and was published on 14 Oct 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-87855-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-87855 is an unauthenticated arbitrary file upload vulnerability in the JTL-Connector for WooCommerce plugin for WordPress (`woo-jtl-connector`) in versions up to and including 2.4.3. In the bundled `jtl/connector` core library (`src/Application/Application.php`), `startSession()` checks whether the `jtlauth` parameter is `null`, but when an empty string (`jtlauth=""`) is supplied on any RPC call, it skips token validation and starts a fresh session. An unauthenticated client can therefore invoke the `image.push` RPC method. During `image.push`, `handleImagePush()` extracts an uploaded ZIP archive into a temporary `images-<uniqid>` directory and `ImageController::saveImage()` copies the matched file into the WordPress uploads directory (`wp-content/uploads/...`) using the extension from the archive entry's filename whenever `mime_content_type()` does not map to a known image extension (such as `text/x-php` or `text/plain`). This lets an unauthenticated attacker write a `.php` file to `wp-content/uploads/` and execute it over HTTP.

### Official description

The JTL-Connector for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.4.3 via the saveImage() function. This is due to the startSession() function accepting an empty jtlauth parameter as a valid credential, combined with insufficient file type validation in handleImagePush(). This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible.

## What the upatch does

Two BPF LSM programs return `-EPERM` to PHP worker processes (`php`, `php-fpm*`, `apache2`, `httpd`, `lsphp`) when the target file lies inside a WordPress `uploads` directory tree (up to four levels deep, covering `uploads/` and `uploads/YYYY/MM/`) or a JTL-Connector temporary `images-*` directory:

| Hook               | Refused                                                                                                                       |
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------- |
| `lsm/inode_create` | Creating a file ending in `.php`, `.php3`–`.php8`, `.phtml`, `.pht`, `.phar`, or named `.htaccess` in those directories       |
| `lsm/file_open`    | Opening any such file in those directories (stopping both extraction/copying and execution of a previously planted web shell) |

Each program checks the target dentry's suffix first and returns `0` immediately for normal image and media files (`.jpg`, `.png`, `.gif`, `.webp`, `.pdf`, etc.) and for all PHP files outside `uploads` and `images-*`.

The `refused` per-CPU array counts refusals: key 0 for `inode_create` and key 1 for `file_open`.

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

## Side effects

- Any `image.push` request to JTL-Connector carrying a PHP script or `.htaccess` file fails to extract or copy the file into `wp-content/uploads/`. Legitimate product, category, and manufacturer image uploads (`.jpg`, `.png`, `.gif`, `.webp`, etc.) continue to work normally.
- PHP processes cannot create or open `.php*`, `.phtml`, `.pht`, `.phar`, or `.htaccess` files inside directories named `uploads` (up to three subdirectories below `uploads`) or `images-*`. WordPress core, themes, and plugins under `wp-admin/`, `wp-includes/`, and `wp-content/plugins/` are unaffected.

## Preemption model and cost

The programs maintain no shared state other than the `refused` per-CPU array, updated with `__sync_fetch_and_add`, making them safe under all preemption models including `PREEMPT_LAZY` and `PREEMPT_RT`. On every file creation and open, the fast path reads at most the last few bytes of the dentry name and returns immediately unless the file has a blocked PHP extension or is named `.htaccess`.

## Affected versions

Affected software: JTL-Connector for WooCommerce (`woo-jtl-connector`) versions up to and including 2.4.3 (and 2.4.4). Fixed in version 2.4.5 (file type validation in `ImageController::saveImage()`) and version 2.5.0 (authentication check in `Connector::assertAuthenticated()` and `jtl/connector` 6.0.1).

Kernels: Linux kernels with BPF LSM and BTF enabled using the four-argument `inode_create` LSM hook prototype (`const struct mnt_idmap *idmap, struct inode *dir, struct dentry *dentry, umode_t mode`) and `file_open`.

## How it was tested

On a vulnerable JTL-Connector for WooCommerce 2.4.3 instance, the unauthenticated image.push probe wrote a .php file into wp-content/uploads before and after the upatch was loaded, and was refused while cve-2026-87855-upload-block was loaded.

- **Tested:** 25 Nov 2026
- **Target:** JTL-Connector for WooCommerce (woo-jtl-connector) 2.4.3
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Distribution:** Ubuntu 26.04

### Results

| State           | Unauthenticated image.push PHP upload            | Payload result |
| --------------- | ------------------------------------------------ | -------------- |
| Before loading  | wrote .php file in uploads (HTTP 200)            | reached        |
| Upatch loaded   | refused (Image could not get found for Category) | blocked        |
| After unloading | wrote .php file in uploads (HTTP 200)            | 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-87855
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-87855-1.0.0.bee oci://<registry>/<namespace>/cve-2026-87855 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-87855-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-87855 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-87855)
- [Wordfence vulnerability advisory ed869c1e-ae54-4db2-8147-39050a034c5e](https://www.wordfence.com/threat-intel/vulnerabilities/id/ed869c1e-ae54-4db2-8147-39050a034c5e?source=cve)
- [Vulnerable `ImageController::saveImage()` in `woo-jtl-connector` 2.4.3](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/src/Controllers/ImageController.php#L632)
- [Vulnerable `Application::startSession()` and `handleImagePush()` in `woo-jtl-connector` 2.4.3](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/vendor/jtl/connector/src/Application/Application.php#L424)
- Fix commits: [`bdb7cffbd2ec` (image upload validation)](https://github.com/jtl-software/connector-woocommerce3/commit/bdb7cffbd2ecdadf0ce78ec5aac2b215134af8c3), [`7bd6df455731` (empty `jtlauth` rejection)](https://github.com/jtl-software/connector-woocommerce3/commit/7bd6df4557310a5efa24c3b9efee9c5d83683dc8)

### Links

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

### More references from NVD (5)

- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/src/Controllers/ImageController.php#L632)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/vendor/jtl/connector/src/Application/Application.php#L424)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/vendor/jtl/connector/src/Application/Application.php#L885)
- [plugins.trac.wordpress.org](https://plugins.trac.wordpress.org/browser/woo-jtl-connector/tags/2.4.3/vendor/jtl/connector/src/Application/Application.php#L955)
- [wordfence.com](https://www.wordfence.com/threat-intel/vulnerabilities/id/ed869c1e-ae54-4db2-8147-39050a034c5e?source=cve)
