upatch.dev

CVE-2026-77018

Workeera Remote Tech Job Board < 1.0.6 - Subscriber+ Arbitrary File Upload via Candidate Profile Mass Assignment

Refuses creating PHP files in Workeera upload directories to mitigate CVE-2026-77018.

High 8.8Vetted

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

At a glance

CVE-2026-77018 is a high (CVSS 8.8) vulnerability in Workeera, published 27 August 2026. A vetted upatch, cve-2026-77018-upload-block, blocks it on running Linux machines with shirudo until Workeera is upgraded.

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

Overview

CVE-2026-77018 affects the Workeera Remote Tech Job Board (workeera-remote-tech-job-board) WordPress plugin before version 1.0.6, published on 27 August 2026. The candidate resume update handler (Workeera_Candidate_Resume::resume_details_submission, action workeera_user_resume_details_submission_call) mints a post-save nonce and triggers save_post without restricting which workeera_meta keys a candidate may submit. A logged-in user with a role as low as Subscriber can overwrite candidate_cv_files metadata to set name to a .php filename while pointing file at an uploaded PDF containing PHP code. When the candidate then applies to a published job (workeera_user_applyjob_call), Workeera_Job_Applications::copy_cv_to_application_files copies the source file to wp-content/uploads/wp-workeera/application-files/<YYYY>/<MM>/<name> without checking the target file extension, allowing remote code execution when requested over HTTP.

Official description

The Workeera WordPress plugin before 1.0.6 does not restrict which profile values a candidate may submit, nor validate the type of the file it subsequently writes into a publicly reachable directory, allowing users with a role as low as subscriber to upload arbitrary files and achieve remote code execution.

Affected versions

Workeera Remote Tech Job Board plugin versions 1.0.0 through 1.0.5 are affected; version 1.0.6 fixes the issue.

Kernels: the program uses the inode_create LSM hook prototype that takes const struct mnt_idmap * as its first argument.

Sources

More references from NVD (1)

Mitigation

One BPF LSM program returns -EPERM to processes whose command or executable name starts with php, apache or httpd when creating a file with a PHP extension (.php, .pht, .pha, .pgi, case-insensitively) inside a directory tree under wp-workeera:

Hook Refused
lsm/inode_create Creating a file with a PHP extension inside any directory whose ancestor within 6 levels is named wp-workeera

The refused per-CPU array counts refused file creations at key 0.

Side effects

  • PHP and Apache worker processes cannot create files with .php, .pht, .pha or .pgi extensions inside wp-workeera upload directories. Candidate CV uploads and job applications use document extensions such as .pdf and .docx, which continue to work.
  • Fixed Workeera releases (1.0.6 and later) validate the target file extension with wp_check_filetype against allowed MIME types and reject .php names before copying.

Preemption model and cost

The program keeps no state beyond the per-CPU refusal counter, updated with an atomic fetch-and-add, so it is safe under all preemption models including preemptible RCU and PREEMPT_LAZY. On file creation, it checks the new dentry's name for a PHP extension first and returns immediately for all non-PHP files before walking up to 6 parent dentries or inspecting the current task.

The policy

150 lines of BPF C, attached at lsm/inode_create.

// 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,
	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 is_php_ext(const char *s)
{
	char c0 = s[0];
	char c1 = s[1] | 0x20;
	char c2 = s[2] | 0x20;
	char c3 = s[3] | 0x20;

	return c0 == '.' && c1 == 'p' &&
	       ((c2 == 'h' && (c3 == 'p' || c3 == 't')) ||
		(c2 == 'h' && c3 == 'a') ||
		(c2 == 'g' && c3 == 'i'));
}

static __always_inline bool has_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[64] = {};

	if (!name || len < 4)
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
		return false;
	for (__u32 i = 0; i < sizeof(buf) - 4; i++) {
		if (!buf[i])
			break;
		if (is_php_ext(&buf[i]))
			return true;
	}
	return false;
}

static __always_inline bool dentry_is_wp_workeera(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[12] = {};

	if (!dentry || len != 11)
		return false;
	if (bpf_probe_read_kernel(buf, 11, name))
		return false;
	return buf[0] == 'w' && buf[1] == 'p' && buf[2] == '-' &&
	       buf[3] == 'w' && buf[4] == 'o' && buf[5] == 'r' &&
	       buf[6] == 'k' && buf[7] == 'e' && buf[8] == 'e' &&
	       buf[9] == 'r' && buf[10] == 'a';
}

static __always_inline bool inside_wp_workeera(const struct dentry *dentry)
{
	const struct dentry *cur = BPF_CORE_READ(dentry, d_parent);

	for (int i = 0; i < 6; i++) {
		const struct dentry *parent;

		if (!cur)
			return false;
		if (dentry_is_wp_workeera(cur))
			return true;
		parent = BPF_CORE_READ(cur, d_parent);
		if (parent == cur)
			return false;
		cur = parent;
	}
	return false;
}

static __always_inline bool is_php_or_httpd_name(const char *buf)
{
	if (buf[0] == 'p' && buf[1] == 'h' && buf[2] == 'p')
		return true;
	if (buf[0] == 'a' && buf[1] == 'p' && buf[2] == 'a' &&
	    buf[3] == 'c' && buf[4] == 'h' && buf[5] == 'e')
		return true;
	if (buf[0] == 'h' && buf[1] == 't' && buf[2] == 't' &&
	    buf[3] == 'p' && buf[4] == 'd')
		return true;
	return false;
}

static __always_inline bool current_is_php(void)
{
	char comm[16] = {};
	struct task_struct *task;
	const struct dentry *exe;
	const unsigned char *ename;
	char ebuf[16] = {};

	if (bpf_get_current_comm(comm, sizeof(comm)) == 0 &&
	    is_php_or_httpd_name(comm))
		return true;
	task = bpf_get_current_task_btf();
	exe = BPF_CORE_READ(task, mm, exe_file, f_path.dentry);
	ename = BPF_CORE_READ(exe, d_name.name);
	if (ename && bpf_probe_read_kernel_str(ebuf, sizeof(ebuf), ename) > 0 &&
	    is_php_or_httpd_name(ebuf))
		return true;
	return false;
}

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

SEC("lsm/inode_create")
int BPF_PROG(cve_2026_77018_create, const struct mnt_idmap *idmap,
	     struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
	if (ret)
		return earlier_verdict(ret);
	if (!has_php_name(dentry))
		return 0;
	if (!inside_wp_workeera(dentry) || !current_is_php())
		return 0;
	count(REFUSED_CREATE);
	return -EPERM;
}

Process

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

  1. 27 Aug 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #66 openedAdd CVE-2026-77018: Refuses creating PHP files in Workeera upload directoriesromanlab
  3. 25 Nov 2026CIUpdate upatch.devpassed
  4. 25 Nov 2026CICIpassed
  5. 25 Nov 2026MergeMerged #66romanlab

No human review is recorded on GitHub for this upatch yet.

Evidence

On WordPress 6.7.2 with Workeera Remote Tech Job Board 1.0.5, the loaded upatch refused the .php file creation in wp-workeera/application-files during job application submission, while the probe wrote the .php file before loading and after unloading.

Tested
25 Nov 2026
Target
WordPress 6.7.2 with Workeera Remote Tech Job Board 1.0.5 on PHP built-in web server and MariaDB, loopback only
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Distribution
Ubuntu 26.04
Results
StateApplication copy writes .php file in wp-workeera/application-files
Before loadingyes (reached)
Upatch loadedno (blocked)
After unloadingyes (reached)
tools-test.log Output of tools/test --setup showing reached before, blocked while loaded, and reached again after.
tools/test --setup, 2026-11-25T13:54:20Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-77018
  setup   done         WORKEERA_URL=http://127.0.0.1:18080 WORKEERA_WP_PATH=/opt/upatch-payload/cve-2026-77018/wordpress CANDIDATE_ID=4 SOURCE_PDF=/opt/upatch-payload/cve-2026-77018/wordpress/wp-content/uploads/wp-workeera/candidate-cvs/probe.pdf UPLOADS_DIR=/opt/upatch-payload/cve-2026-77018/wordpress/wp-content/uploads/wp-workeera
  before  reached      application copy wrote probe-0461bec72164.php in application-files; removed it
  loaded  blocked      copy_cv_to_application_files failed to create the .php file
  after   reached      application copy wrote probe-24f5b91ae508.php in application-files; 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.

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-77018
Publish and roll out
shirudo bpm push build/packages/cve-2026-77018-1.0.0.bee oci://<registry>/<namespace>/cve-2026-77018 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-77018-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>