Skip to content
Path traversal Advisory Intermediate CVE-2021-32833

GHSL-2021-051: Unauthenticated file read in Emby Server - CVE-2021-32833

Emby Server had two unauthenticated file read vulnerabilities on Windows: one route allowed reading any file via an absolute path, and two image routes allowed reading image files via path traversal. An attacker could read sensitive files from the server if it was exposed to the internet.

jarlob Follow

Originally disclosed on GitHub Security Lab

The /Videos/{Id}/hls/{PlaylistId}/{SegmentId}.{SegmentContainer} route allows arbitrary file read on Windows. It is possible to set the {SegmentId}.{SegmentContainer} part of the route to an absolute path using the Windows path separator \ (%5C when URL encoded).

jarlob, on GitHub Security Lab

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 report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the routes failed to sanitise user-supplied path segments, allowing Windows path separators to escape the intended directory or specify absolute paths.

Impact

This could lead to unauthorised access to the system, especially when Emby Server is configured to be accessible from the Internet; the image routes only allow reading image files.

What the attacker needed

Windows host; Server reachable from the internet; For issue 1: a valid media file GUID

How it was found

  1. Obtain a media file GUID (Id) from an authenticated response.
  2. Send a request to the HLS segment route with the SegmentId set to an absolute Windows path.
  3. For image routes, send a request with a relative or absolute path in the theme or name parameter.

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 report has not been written yet. The Original tab links to the source.

Emby Server is a media server that lets you stream videos and music. Two web addresses on the server did not properly check the file path requested, so someone could ask for files outside the intended media folder, like system files, without logging in. This only worked on Windows and only if the server was reachable from the internet.

What is Path traversal?

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

More by jarlob

View all

192 more disclosed reports, best first.

More from GitHub Security Lab

View all

The newest disclosed reports for this program.

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.