CVE-2026-87855
JTL-Connector for WooCommerce <= 2.4.3 - Unauthenticated Arbitrary File Upload via 'image.push' Method
Refuses the JTL-Connector for WooCommerce executable file upload to mitigate CVE-2026-87855.
Critical 9.8Vetted
EPSS 0.8%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.
NVDCVE.orgJTL-Connector for WooCommerce, published 14 Oct 2026
At a glance
CVE-2026-87855 is a critical (CVSS 9.8) vulnerability in JTL-Connector for WooCommerce, published 14 October 2026. A vetted upatch, cve-2026-87855-upload-block, blocks it on running Linux machines with shirudo until JTL-Connector for WooCommerce is upgraded.
- Severity
- Critical 9.8 CVSS 3.1
- Chance of exploitation
- 0.8% in the next 30 days (EPSS, 24 Nov 2026)
- Known exploited
- No, not on CISA’s KEV list
- Weakness
- CWE-434
- Affected software
- JTL-Connector for WooCommerce (ntbyk)
- Upatch status
- Vetted, merged into the registry
- How to apply
- Build, sign and roll out with shirudo
Overview
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.
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.
Sources
- CVE-2026-87855 record (CVE API)
- Wordfence vulnerability advisory ed869c1e-ae54-4db2-8147-39050a034c5e
- Vulnerable
ImageController::saveImage()inwoo-jtl-connector2.4.3 - Vulnerable
Application::startSession()andhandleImagePush()inwoo-jtl-connector2.4.3 - Fix commits:
bdb7cffbd2ec(image upload validation),7bd6df455731(emptyjtlauthrejection)
Mitigation
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.
Side effects
- Any
image.pushrequest to JTL-Connector carrying a PHP script or.htaccessfile fails to extract or copy the file intowp-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.htaccessfiles inside directories nameduploads(up to three subdirectories belowuploads) orimages-*. WordPress core, themes, and plugins underwp-admin/,wp-includes/, andwp-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.
The policy
221 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 is_blocked_target_name(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 < 4 || len > 255)
return false;
if (len == 9) {
char ht[9] = {};
if (bpf_probe_read_kernel(ht, sizeof(ht), name))
return false;
if (ht[0] == '.' &&
lower_ascii(ht[1]) == 'h' &&
lower_ascii(ht[2]) == 't' &&
lower_ascii(ht[3]) == 'a' &&
lower_ascii(ht[4]) == 'c' &&
lower_ascii(ht[5]) == 'c' &&
lower_ascii(ht[6]) == 'e' &&
lower_ascii(ht[7]) == 's' &&
lower_ascii(ht[8]) == 's')
return true;
}
if (bpf_probe_read_kernel(tail, 4, name + len - 4))
return false;
if (tail[0] == '.' &&
lower_ascii(tail[1]) == 'p' &&
lower_ascii(tail[2]) == 'h' &&
(lower_ascii(tail[3]) == 'p' || lower_ascii(tail[3]) == 't'))
return true;
if (len >= 5) {
if (bpf_probe_read_kernel(tail, 5, name + len - 5))
return false;
if (tail[0] == '.' &&
lower_ascii(tail[1]) == 'p' &&
lower_ascii(tail[2]) == 'h' &&
lower_ascii(tail[3]) == 'p' &&
tail[4] >= '3' && tail[4] <= '8')
return true;
if (tail[0] == '.' &&
lower_ascii(tail[1]) == 'p' &&
lower_ascii(tail[2]) == 'h' &&
lower_ascii(tail[3]) == 'a' &&
lower_ascii(tail[4]) == 'r')
return true;
}
if (len >= 6) {
if (bpf_probe_read_kernel(tail, 6, name + len - 6))
return false;
if (tail[0] == '.' &&
lower_ascii(tail[1]) == 'p' &&
lower_ascii(tail[2]) == 'h' &&
lower_ascii(tail[3]) == 't' &&
lower_ascii(tail[4]) == 'm' &&
lower_ascii(tail[5]) == 'l')
return true;
}
return false;
}
static __always_inline bool name_is_7(const struct dentry *dentry,
char c0, char c1, char c2, char c3,
char c4, char c5, char c6)
{
const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
char buf[7] = {};
if (!dentry || BPF_CORE_READ(dentry, d_name.len) != 7 || !name)
return false;
if (bpf_probe_read_kernel(buf, sizeof(buf), name))
return false;
return buf[0] == c0 && buf[1] == c1 && buf[2] == c2 && buf[3] == c3 &&
buf[4] == c4 && buf[5] == c5 && buf[6] == c6;
}
static __always_inline bool is_in_uploads_or_jtl_temp(const struct dentry *dir)
{
const struct dentry *cur = dir;
if (!cur)
return false;
const unsigned char *dname = BPF_CORE_READ(cur, d_name.name);
__u32 dlen = BPF_CORE_READ(cur, d_name.len);
char prefix[7] = {};
if (dname && dlen >= 7 && !bpf_probe_read_kernel(prefix, sizeof(prefix), dname)) {
if (prefix[0] == 'i' && prefix[1] == 'm' && prefix[2] == 'a' &&
prefix[3] == 'g' && prefix[4] == 'e' && prefix[5] == 's' &&
prefix[6] == '-')
return true;
}
for (int i = 0; i < 4; i++) {
if (!cur)
break;
if (name_is_7(cur, 'u', 'p', 'l', 'o', 'a', 'd', 's'))
return true;
cur = BPF_CORE_READ(cur, d_parent);
}
return false;
}
static __always_inline bool buf_starts_with_php_or_web(const char *buf, __u32 len)
{
if (len >= 3 && buf[0] == 'p' && buf[1] == 'h' && buf[2] == 'p')
return true;
if (len >= 6 && buf[0] == 'a' && buf[1] == 'p' && buf[2] == 'a' &&
buf[3] == 'c' && buf[4] == 'h' && buf[5] == 'e')
return true;
if (len >= 5 && buf[0] == 'h' && buf[1] == 't' && buf[2] == 't' &&
buf[3] == 'p' && buf[4] == 'd')
return true;
if (len >= 8 && buf[0] == 'l' && buf[1] == 's' && buf[2] == 'p' &&
buf[3] == 'h' && buf[4] == 'p')
return true;
return false;
}
static __always_inline bool current_is_php(void)
{
char comm[16] = {};
if (!bpf_get_current_comm(&comm, sizeof(comm))) {
if (buf_starts_with_php_or_web(comm, sizeof(comm)))
return true;
}
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 ebuf[8] = {};
if (!name || len < 3)
return false;
if (bpf_probe_read_kernel(ebuf, sizeof(ebuf), name))
return false;
return buf_starts_with_php_or_web(ebuf, len);
}
static __always_inline int earlier_verdict(int ret)
{
return ret >= -4095 && ret < 0 ? ret : -EPERM;
}
SEC("lsm/inode_create")
int BPF_PROG(cve_2026_87855_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_blocked_target_name(dentry))
return 0;
if (!is_in_uploads_or_jtl_temp(BPF_CORE_READ(dentry, d_parent)) || !current_is_php())
return 0;
count(REFUSED_CREATE);
return -EPERM;
}
SEC("lsm/file_open")
int BPF_PROG(cve_2026_87855_open, struct file *file, int ret)
{
const struct dentry *dentry = file->f_path.dentry;
if (ret)
return earlier_verdict(ret);
if (!is_blocked_target_name(dentry))
return 0;
if (!is_in_uploads_or_jtl_temp(BPF_CORE_READ(dentry, d_parent)) || !current_is_php())
return 0;
count(REFUSED_OPEN);
return -EPERM;
}
The package: name, license, the program and the CVE it fixes.
[package]
name = "cve-2026-87855"
description = "Refuses the JTL-Connector for WooCommerce executable file upload to mitigate CVE-2026-87855"
license = "GPL-2.0 OR BSD-2-Clause"
[[upatches]]
source = "cve-2026-87855-upload-block.bpf.c"
[upatches.tree]
id = "cve-2026-87855-upload-block"
fixes = ["CVE-2026-87855"]
Process
How this upatch was written, checked and reviewed, from the registry’s history.
- 14 Oct 2026CVECVE published
- 25 Nov 2026Pull requestPull request #72 openedAdd CVE-2026-87855: Refuses the JTL-Connector for WooCommerce executable file uploadromanlab
- 25 Nov 2026CIUpdate upatch.devpassed
- 25 Nov 2026CICIpassed
- 25 Nov 2026MergeMerged #72romanlab
- 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 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
| 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 |
tools-test.log Output of tools/test --setup for cve-2026-87855 showing the payload reached before, blocked while loaded, and reached again after.
tools/test --setup, 2026-11-25T14:16:59Z Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm cve-2026-87855 setup done JTL_CONNECTOR_URL=http://127.0.0.1:18785/index.php/jtlconnector WP_UPLOADS_DIR=/opt/upatch-payload/cve-2026-87855/wordpress/wp-content/uploads JTL_CATEGORY_ID=1 before reached image.push wrote 560996_category.php in uploads (HTTP 200); removed it loaded blocked image.push PHP file upload was refused (Image could not get found for Category (hostId = 1)) after reached image.push wrote 270009_category.php in uploads (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-87855shirudo 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>