# CVE-2026-88069: Path traversal in Pandora archive extractor allows arbitrary file writes outside the extraction directory in pandora analysis

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

## At a glance

CVE-2026-88069 is rated Critical 9.3 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects Pandora (pandora-analysis) and was published on 9 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.5%: the estimated chance it is exploited in the next 30 days, as of 25 Nov 2026. The upatch `cve-2026-88069-extractor-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-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.

## What the upatch does

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`.

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

## 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`.

## 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).

## How it was tested

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

| State           | Traversal write outside extracted/ |
| --------------- | ---------------------------------- |
| Before loading  | reached (HTTP 200)                 |
| Upatch loaded   | blocked (EPERM)                    |
| After unloading | reached (HTTP 200)                 |

## 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-88069
```

Publish and roll out:

```sh
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>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-88069 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-88069)
- [Fix commit d86ac5b260fb9a41e07f1da1bbd326cdcfc188a7](https://github.com/pandora-analysis/pandora/commit/d86ac5b260fb9a41e07f1da1bbd326cdcfc188a7)
- [Pandora v1.13.0 release notes](https://github.com/pandora-analysis/pandora/releases/tag/v1.13.0)
- [Pandora v1.12.7 release tag](https://github.com/pandora-analysis/pandora/releases/tag/v1.12.7)

### Links

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

### More references from NVD (1)

- [github.com](https://github.com/pandora-analysis/pandora/commit/d86ac5b260fb9a41e07f1da1bbd326cdcfc188a7)
