upatch.dev

CVE-2026-89294

Simply Schedule Appointments <= 1.6.12.27 - Authenticated (Subscriber+) Local File Inclusion via 'ssa_locale' Parameter

Refuses opening .l10n.php files outside the WordPress languages directory to mitigate CVE-2026-89294.

High 7.5Vetted

EPSS 1%: the estimated chance this CVE is exploited in the next 30 days, as of 24 Nov 2026.

At a glance

CVE-2026-89294 is a high (CVSS 7.5) vulnerability in Simply Schedule Appointments, published 30 September 2026. A vetted upatch, cve-2026-89294-l10n-block, blocks it on running Linux machines with shirudo until Simply Schedule Appointments is upgraded.

Severity
High 7.5 CVSS 3.1
Chance of exploitation
1% in the next 30 days (EPSS, 24 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-98
Affected software
Simply Schedule Appointments (croixhaug)
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

CVE-2026-89294 affects the Simply Schedule Appointments plugin for WordPress in all versions up to and including 1.6.12.27. During plugins_loaded, SSA_Translation::hooks() registers SSA_Translation::filter_wp_locale() on the locale filter at priority 100000, which calls SSA_Translation::get_locale(). When a request carries the ssa_locale query parameter, get_locale() passes $_GET['ssa_locale'] through sanitize_text_field( wp_unslash( $_GET['ssa_locale'] ) ) instead of restricting it to locale characters. Because sanitize_text_field() preserves / and ., an unauthenticated request with ssa_locale=../../... traverses out of WP_LANG_DIR (wp-content/languages) when WordPress calls load_default_textdomain(), which passes WP_LANG_DIR . "/$locale.mo" to load_textdomain(). WordPress replaces the .mo suffix with .l10n.php, checks the target with realpath() and is_readable(), and WP_Translation_File_PHP::parse_file() executes include on the resolved .l10n.php file, running arbitrary PHP code from any .l10n.php file outside the languages directory. Version 1.6.12.33 fixes the bug by adding SSA_Translation::sanitize_locale(), which strips every character outside A-Za-z0-9_-.

Official description

The Simply Schedule Appointments plugin for WordPress is vulnerable to Local File Inclusion in all versions up to, and including, 1.6.12.27 via the 'ssa_locale' parameter parameter. This makes it possible for authenticated attackers, with subscriber-level access and above, to include and execute arbitrary .php files on the server, allowing the execution of any PHP code in those files. This can be used to bypass access controls, obtain sensitive data, or achieve code execution in cases where .php file types can be uploaded and included. Notably, exploitation does not require authentication in practice, as the locale filter is installed unconditionally on every request during plugins_loaded and the callback performs no nonce or capability check before returning the raw GET parameter value.

Affected versions

Application versions: Simply Schedule Appointments for WordPress versions up to and including 1.6.12.27; fixed in 1.6.12.33.

Kernels: any Linux kernel supported by shirudo with BPF LSM and BTF enabled (lsm/file_open and lsm/inode_getattr).

Sources

More references from NVD (4)

Mitigation

Two BPF LSM programs return -EPERM when a process whose executable name starts with php or apac (covering php, php-fpm, php-cgi and apache2 with mod_php) accesses a file whose name ends in .l10n.php and whose parent or grandparent directory is not named languages:

Hook Refused
lsm/file_open Opening a *.l10n.php file whose parent or grandparent directory is not languages, by a PHP or Apache process
lsm/inode_getattr Stating a *.l10n.php file whose parent or grandparent directory is not languages, by a PHP or Apache process

Legitimate WordPress core, plugin and theme .l10n.php translation files reside in wp-content/languages/, wp-content/languages/plugins/, wp-content/languages/themes/, or <plugin-or-theme>/languages/. When the kernel opens or stats a file, the path dentry is the resolved target dentry after following .. components, so a path traversal out of wp-content/languages into wp-content/uploads or elsewhere resolves to a dentry whose parent and grandparent are not languages. Guarding both file_open and inode_getattr stops both the initial open and any subsequent request after PHP's opcache has cached the script bytecode in memory. The refused per-CPU array counts refused opens at key 0 and refused getattr calls at key 1.

Side effects

  • A PHP or Apache process cannot open or stat a file ending in .l10n.php unless its parent directory or grandparent directory is named languages.
  • Normal WordPress requests, translation loading from wp-content/languages (including its plugins and themes subdirectories) and plugin or theme languages directories continue to work.
  • Not covered: a theme that stores .l10n.php translation files directly in the theme root directory rather than in wp-content/languages/themes/ or a languages/ subdirectory, or a PHP runtime whose executable name does not start with php or apac.

Preemption model and cost

The programs keep no shared state beyond the per-CPU refused counters, which are updated with __sync_fetch_and_add, so they are safe under every kernel preemption model, including PREEMPT_LAZY, PREEMPT_DYNAMIC and PREEMPT_RT. On every file_open and inode_getattr call, each program checks the dentry name length first and reads the 9-byte suffix only when the filename is between 10 and 255 bytes long; parent directory and executable checks run only for files ending in .l10n.php.

The policy

129 lines of BPF C, attached at lsm/file_open and lsm/inode_getattr.

// 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_OPEN,
	REFUSED_GETATTR,
	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 bool ends_with_l10n_php(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[9] = {};

	if (len < 10 || len > 255 || !name)
		return false;
	if (bpf_probe_read_kernel(tail, sizeof(tail), name + len - 9))
		return false;
	return tail[0] == '.' && tail[1] == 'l' && tail[2] == '1' &&
	       tail[3] == '0' && tail[4] == 'n' && tail[5] == '.' &&
	       tail[6] == 'p' && tail[7] == 'h' && tail[8] == 'p';
}

static __always_inline bool name_is_languages(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 buf[9] = {};

	if (!dentry || len != 9 || !name)
		return false;
	if (bpf_probe_read_kernel(buf, sizeof(buf), name))
		return false;
	return buf[0] == 'l' && buf[1] == 'a' && buf[2] == 'n' &&
	       buf[3] == 'g' && buf[4] == 'u' && buf[5] == 'a' &&
	       buf[6] == 'g' && buf[7] == 'e' && buf[8] == 's';
}

static __always_inline bool in_languages_dir(const struct dentry *dentry)
{
	const struct dentry *parent = BPF_CORE_READ(dentry, d_parent);
	const struct dentry *grandparent = BPF_CORE_READ(parent, d_parent);

	return name_is_languages(parent) || name_is_languages(grandparent);
}

static __always_inline bool is_php_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 buf[4] = {};

	if (!dentry || len < 3 || !name)
		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;
	return len >= 4 && buf[0] == 'a' && buf[1] == 'p' &&
	       buf[2] == 'a' && buf[3] == 'c';
}

static __always_inline bool current_is_php(void)
{
	struct task_struct *task = bpf_get_current_task_btf();
	const struct dentry *exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);

	return is_php_name(exe);
}

static __always_inline int earlier_verdict(int ret)
{
	return ret >= -4095 && ret < 0 ? ret : -EPERM;
}

SEC("lsm/file_open")
int BPF_PROG(cve_2026_89294_open, struct file *file, int ret)
{
	const struct dentry *dentry = file->f_path.dentry;

	if (ret)
		return earlier_verdict(ret);
	if (!ends_with_l10n_php(dentry))
		return 0;
	if (in_languages_dir(dentry) || !current_is_php())
		return 0;
	count(REFUSED_OPEN);
	return -EPERM;
}

SEC("lsm/inode_getattr")
int BPF_PROG(cve_2026_89294_getattr, const struct path *path, int ret)
{
	const struct dentry *dentry = path->dentry;

	if (ret)
		return earlier_verdict(ret);
	if (!ends_with_l10n_php(dentry))
		return 0;
	if (in_languages_dir(dentry) || !current_is_php())
		return 0;
	count(REFUSED_GETATTR);
	return -EPERM;
}

Process

How this upatch was written, checked and reviewed, from the registry’s history.

  1. 30 Sept 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #34 openedAdd CVE-2026-89294: Refuses opening .l10n.php files outside the WordPress languages directoryromanlab
  3. 25 Nov 2026MergeMerged #34romanlab
  4. 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 Simply Schedule Appointments 1.6.12.27, the loaded upatch refused opening and stating ../uploads/upatch-probe.l10n.php via the ssa_locale query parameter while keeping WordPress serving HTTP 200.

Tested
25 Nov 2026
Target
WordPress 6.7.2 with Simply Schedule Appointments 1.6.12.27, loopback only
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Distribution
Ubuntu 26.04
Results
Statessa_locale loads ../uploads/upatch-probe.l10n.phpOpening .l10n.php outside languages blocked
Before loadingyes (HTTP 200)no
Upatch loadedno (HTTP 200)yes
After unloadingyes (HTTP 200)no
tools-test.log Output of tools/test --setup before, while and after the upatch was loaded.
tools/test --setup, 2026-11-25T11:37:27Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-89294
  setup   done         WP_URL=http://127.0.0.1:18080 SSA_PROBE_LOCALE=../uploads/upatch-probe
  before  reached      ssa_locale traversed outside languages and loaded ../uploads/upatch-probe.l10n.php (HTTP 200)
  loaded  blocked      opening ../uploads/upatch-probe.l10n.php outside languages was refused (HTTP 200)
  after   reached      ssa_locale traversed outside languages and loaded ../uploads/upatch-probe.l10n.php (HTTP 200)
  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.

Build and sign
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-89294
Publish and roll out
shirudo bpm push build/packages/cve-2026-89294-1.0.0.bee oci://<registry>/<namespace>/cve-2026-89294 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-89294-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>