Skip to content
Path traversal Write-up Intermediate

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.

Kerem Follow

Published on medium.com

How a missing validation check in the subtitle upload endpoint chains into database extraction, credential theft, and remote code execution as root.

Kerem, on medium.com

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

  1. Identify a target video ID via the API.
  2. Craft a traversal payload for the format parameter.
  3. Upload a malicious subtitle file with the traversal payload.
  4. Trigger a library scan to parse the written .strm file.
  5. Extract the database contents from logs or error responses.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.