upatch.dev

CVE-2026-88069

Path traversal in Pandora archive extractor allows arbitrary file writes outside the extraction directory in pandora analysis

Refuses Pandora archive extractor writes outside a task's extracted directory to mitigate CVE-2026-88069.

Critical 9.3Vetted

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

At a glance

CVE-2026-88069 is a critical (CVSS 9.3) vulnerability in Pandora, published 9 September 2026. A vetted upatch, cve-2026-88069-extractor-block, blocks it on running Linux machines with shirudo until Pandora is upgraded.

Severity
Critical 9.3 CVSS 4.0
Chance of exploitation
0.5% in the next 30 days (EPSS, 25 Nov 2026)
Known exploited
No, not on CISA’s KEV list
Weakness
CWE-22
Affected software
Pandora (pandora-analysis)
Upatch status
Vetted, merged into the registry
How to apply
Build, sign and roll out with shirudo

Overview

CVE-2026-88069 (also tracked as gcve-1-2026-20209), published by CIRCL on 9 September 2026, is a path traversal vulnerability (CWE-22) in the Extractor worker (pandora/workers/extractor.py) of pandora-analysis/pandora through version 1.12.7. When extracting files from archives or disk images (such as CAB archives in _extract_cab or ISO images in _extract_iso), Extractor joined entry paths directly with the task's extracted_dir (tasks/<year>/<month>/<uuid>/extracted) and opened the resulting path with open('wb') without resolving the destination path and verifying that it remained inside extracted_dir. Submitting an archive whose entry filename contains ../ traversal components lets an attacker create or overwrite files outside extracted_dir with the permissions of the Pandora worker process. Upstream fixed the bug in commit d86ac5b260fb9a41e07f1da1bbd326cdcfc188a7 (released in v1.13.0) by adding __safe_save, which resolves dest_path and checks resolved_path.is_relative_to(forced_parent) before opening the file for writing.

Official description

Pandora contains a path traversal vulnerability in its archive extraction worker. When processing a specially crafted archive or disk image, attacker-controlled file paths could be used without ensuring that the resulting destination remained within the intended extraction directory. An attacker able to submit a malicious file for analysis could use path traversal sequences or crafted paths to cause extracted content to be written outside the designated extraction directory, potentially overwriting files accessible to the Pandora worker process. Successful exploitation could result in unauthorized modification of application or system files, denial of service, and potentially further compromise depending on the permissions of the Pandora process and the files that can be overwritten. The vulnerability is addressed by resolving each extraction destination path before writing and verifying that it remains below the expected extraction directory. Extraction attempts resolving outside this directory are rejected and reported as path traversal attempts.

Affected versions

Application vulnerability: pandora-analysis/pandora versions up to and including 1.12.7 are affected; 1.13.0 and later include commit d86ac5b260fb9a41e07f1da1bbd326cdcfc188a7.

Kernel requirements: Linux kernels with BPF LSM and the four-argument inode_create LSM hook taking const struct mnt_idmap * first (Linux 6.3 and later, including Linux 7.4).

Sources

More references from NVD (1)

Mitigation

Two BPF LSM programs match processes whose task comm is Pandora Worker: (set by BaseWorker.run via setproctitle.setproctitle(f'Pandora Worker: {self.name}')) and check whether the target file's parent dentry lies within a tasks/<year>/<month>/<uuid>/extracted directory hierarchy:

Hook Refused
lsm/inode_create Creating a new file whose parent directory is not extracted (or a subdirectory up to 7 levels below extracted) under tasks/<year>/<month>/<uuid>/
lsm/file_open Opening any file with write intent (FMODE_WRITE, O_WRONLY, O_RDWR, O_CREAT or O_TRUNC) whose parent directory is not under tasks/<year>/<month>/<uuid>/extracted/

Because the kernel resolves .. path components during VFS path lookup before calling security_inode_create and security_file_open, dentry->d_parent is the real destination directory. Any path traversal that escapes extracted/ has a resolved d_parent outside extracted/ and is refused with -EPERM, causing the Python open('wb') call in the worker to raise PermissionError ([Errno 1] Operation not permitted). Legitimate extractions into tasks/<year>/<month>/<uuid>/extracted/ and its subdirectories succeed.

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

Side effects

  • Any Pandora Worker:* process is prevented from creating or opening files for writing outside tasks/<year>/<month>/<uuid>/extracted/.
  • Normal archive extraction into tasks/<year>/<month>/<uuid>/extracted/ and read-only file opens by workers continue to work.
  • If another Pandora worker (other than extractor) writes temporary files to /tmp or another directory outside tasks/<year>/<month>/<uuid>/extracted/, those writes are also refused with -EPERM while the upatch is loaded.

Preemption model and cost

The programs keep no shared mutable state beyond the per-CPU refused counter, updated with __sync_fetch_and_add, so they are safe under every preemption model including PREEMPT_LAZY, preemptible RCU and PREEMPT_RT. On file_open, read-only opens return immediately after checking f_mode and f_flags. On writes and file creations, non-Pandora processes return immediately after checking bpf_get_current_comm.

The policy

134 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
#define FMODE_WRITE 0x2
#define O_WRONLY 01
#define O_RDWR 02
#define O_CREAT 0100
#define O_TRUNC 01000

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 bool name_is(const struct dentry *dentry,
				    const char *want, __u32 want_len)
{
	const unsigned char *name = BPF_CORE_READ(dentry, d_name.name);
	char buf[16] = {};

	if (!dentry || BPF_CORE_READ(dentry, d_name.len) != want_len ||
	    want_len > sizeof(buf) - 1)
		return false;
	if (bpf_probe_read_kernel_str(buf, sizeof(buf), name) < 0)
		return false;
	for (__u32 i = 0; i < sizeof(buf) - 1; i++) {
		if (i == want_len)
			return true;
		if (buf[i] != want[i])
			return false;
	}
	return false;
}

static __always_inline bool current_is_extractor(void)
{
	char comm[16] = {};

	if (bpf_get_current_comm(comm, sizeof(comm)))
		return false;
	return comm[0] == 'P' && comm[1] == 'a' && comm[2] == 'n' &&
	       comm[3] == 'd' && comm[4] == 'o' && comm[5] == 'r' &&
	       comm[6] == 'a' && comm[7] == ' ' && comm[8] == 'W' &&
	       comm[9] == 'o' && comm[10] == 'r' && comm[11] == 'k' &&
	       comm[12] == 'e' && comm[13] == 'r' && comm[14] == ':';
}

static __always_inline bool under_extracted_dir(const struct dentry *dir)
{
	const struct dentry *cur = dir;

	for (int i = 0; i < 8; i++) {
		if (!cur)
			return false;
		if (name_is(cur, "extracted", 9)) {
			const struct dentry *tasks = BPF_CORE_READ(
				cur, d_parent, d_parent, d_parent, d_parent);

			return name_is(tasks, "tasks", 5);
		}
		const struct dentry *parent = BPF_CORE_READ(cur, d_parent);

		if (parent == cur)
			break;
		cur = parent;
	}
	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_88069_create, const struct mnt_idmap *idmap,
	     struct inode *dir, struct dentry *dentry, umode_t mode, int ret)
{
	if (ret)
		return earlier_verdict(ret);
	if (!current_is_extractor())
		return 0;
	if (under_extracted_dir(BPF_CORE_READ(dentry, d_parent)))
		return 0;
	count(REFUSED_CREATE);
	return -EPERM;
}

SEC("lsm/file_open")
int BPF_PROG(cve_2026_88069_open, struct file *file, int ret)
{
	const struct dentry *dentry;
	unsigned int flags;
	fmode_t mode;

	if (ret)
		return earlier_verdict(ret);
	flags = BPF_CORE_READ(file, f_flags);
	mode = BPF_CORE_READ(file, f_mode);
	if (!(mode & FMODE_WRITE) &&
	    !(flags & (O_WRONLY | O_RDWR | O_CREAT | O_TRUNC)))
		return 0;
	if (!current_is_extractor())
		return 0;
	dentry = BPF_CORE_READ(file, f_path.dentry);
	if (under_extracted_dir(BPF_CORE_READ(dentry, d_parent)))
		return 0;
	count(REFUSED_OPEN);
	return -EPERM;
}

Process

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

  1. 9 Sept 2026CVECVE published
  2. 25 Nov 2026Pull requestPull request #108 openedAdd CVE-2026-88069: Refuses Pandora archive extractor writes outside a task's extracted directoryromanlab
  3. 25 Nov 2026CICheck entriespassed
  4. 25 Nov 2026CIingestpassed
  5. 25 Nov 2026CICompile with clang 23passed
  6. 25 Nov 2026MergeMerged #108romanlab

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

Evidence

On a vulnerable Pandora 1.12.7 Extractor worker, the loaded upatch refused the ISO path traversal write outside the task's extracted/ directory with EPERM while allowing normal extraction into extracted/.

Tested
25 Nov 2026
Target
Pandora 1.12.7 Extractor worker (_extract_iso on Python 3.12, loopback only)
Kernel
7.4-shirudo-ci-20261123
Architecture
x86_64
Machine
shirudo test VM
Distribution
Ubuntu 26.04
Results
StateTraversal write outside extracted/
Before loadingreached (HTTP 200)
Upatch loadedblocked (EPERM)
After unloadingreached (HTTP 200)
tools-test.log Output of tools/test --setup before, while loaded and after unloading cve-2026-88069-extractor-block.
tools/test --setup, 2026-11-25T16:30:54Z
Target: shirudo test VM, Linux 7.4-shirudo-ci-20261123, x86_64, swtpm
cve-2026-88069
  setup   done         PANDORA_URL=http://127.0.0.1:16100 PANDORA_HOME=/opt/upatch-payload/cve-2026-88069/pandora-1.12.7
  before  reached      Extractor wrote upatch-probe-0581bff92f34.txt outside extracted/ (HTTP 200); removed it
  loaded  blocked      kernel refused the traversal file write outside extracted/ with EPERM
  after   reached      Extractor wrote upatch-probe-84986c7a5e92.txt outside extracted/ (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.

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