---
id: "CVE-2026-62965"
kind: "vulnerability"
aliases: ["CVE-2026-62965"]
title: "SABnzbd: API orphan-job path check lets a key holder delete arbitrary directories"
severity: "high"
cvss: 7.0
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "sabnzbd", "self-hosted", "usenet"]
not_affected_if: ["api-not-exposed", "version-5.1.0beta3-or-later"]
published_at: "2026-10-30T21:17:14+00:00"
first_seen_at: "2026-10-30T21:25:53+00:00"
updated_at: "2026-10-30T21:26:47+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-62965", "first_seen_at": "2026-10-30T21:25:53+00:00"}]
---

# SABnzbd: API orphan-job path check lets a key holder delete arbitrary directories

SABnzbd, a Usenet download tool, passes a user-supplied path to recursive deletion without confining it to the download directory, so an absolute path escapes the intended folder. An attacker holding a valid API key can delete files and directories the SABnzbd process can write to, including its config, queue and downloads.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed SABnzbd version with `sabnzbd --version` or the version shown in the web interface; versions before `5.1.0Beta3` are affected.
- Confirm whether the API is reachable from untrusted networks and whether the API key is shared widely.

## Fix

- SABnzbd: move to `5.1.0Beta3` or later.

## Timeline

- 2026-10-30T21:25:53+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-62965

## From the sources

SABnzbd is an open source automated Usenet download tool. Prior to 5.1.0Beta3, orphan-job management in `sabnzbd/api.py` accepts the user-controlled `value` parameter without path confinement before `os.path.join()` with `download_dir`. An absolute path discards that base directory. An attacker with a valid API key can invoke `mode=status` with `name=delete_orphan` to reach `_api_delete_orphan` and `remove_all()` in `sabnzbd/filesystem.py`, which uses `shutil.rmtree()` for recursive deletion. The advisory also identifies `_api_add_orphan` and `_api_delete_all_orphan` as affected by the path-validation issue, while its concrete arbitrary-deletion trace is through `_api_delete_orphan`. The API key is stored in plaintext in `sabnzbd.ini`. The attacker can delete files or directories writable by the SABnzbd process, including configuration, queue data, and downloads, but system files outside the regular user's ownership are not affected. This issue is fixed in version 5.1.0Beta3.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
