Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| sabnzbd | sabnzbd | < 5.1.0Beta3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sabnzbdplus | 5.1.1+dfsg-1 | — |
| Debian 13 | sabnzbdplus | No fix yet | — |
| Debian 12 | sabnzbdplus | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | sabnzbdplus | No fix yet | — |
| Ubuntu 24.04 LTS | sabnzbdplus | No fix yet | — |
| Ubuntu 22.04 LTS | sabnzbdplus | No fix yet | — |
| Ubuntu 20.04 LTS | sabnzbdplus | No fix yet | — |
| Ubuntu 18.04 LTS | sabnzbdplus | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | sabnzbdplus | No fix yet | — |