CVE-2026–35031: Critical Path Traversal to RCE in Jellyfin Medi
The subtitle upload endpoint fails to validate the format parameter, allowing path traversal and arbitrary file write. An attacker with upload permission could write malicious .strm files, extract the database, crack admin credentials, and achieve root-level remote code execution.
How a missing validation check in the subtitle upload endpoint chains into database extraction, credential theft, and remote code execution as root.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The format parameter is used directly in file path construction without validation or canonicalisation, allowing directory traversal.
Impact
An attacker with basic upload permission could achieve root-level remote code execution, leading to complete system compromise.
What the attacker needed
Access to Jellyfin instance; User account with 'Upload Subtitles' permission; Valid video ID to target
The fix
The format parameter should be sanitised to remove path separators and the resulting path canonicalised and verified to be within the base directory.
How it was found
- Identify a target video ID via the API.
- Craft a traversal payload for the format parameter.
- Upload a malicious subtitle file with the traversal payload.
- Trigger a library scan to parse the written .strm file.
- Extract the database contents from logs or error responses.
- Crack the admin password offline using hashcat.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A media server lets users upload subtitle files. The server does not check the 'format' value properly, so an attacker can use '..' to write files outside the intended folder. This lets them place harmful files, steal the user database, crack the admin password, and run commands as the system's root user.
What is Path traversal?
Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.