Skip to content
Path traversal Write-up Intermediate

(CVE-2024-6781) Calibre Arbitrary File Read

Calibre 7.14.0 contains a relative path traversal flaw that lets an unprivileged attacker read arbitrary files. The text states the vulnerability allows relative path traversal to achieve arbitrary file read.

starlabs.sg

Published on starlabs.sg

Calibre is a cross-platform free and open-source suite of e-book software. Calibre supports organizing existing e-books into virtual libraries, displaying, editing, creating and converting e-books, as well as syncing e-books with a variety of e-readers.

The author, on starlabs.sg

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

Likely the software fails to properly limit a user-supplied pathname to its intended directory, allowing relative path traversal.

Impact

An unprivileged attacker could read arbitrary files, which may expose sensitive data; the text rates confidentiality impact as high.

What the attacker needed

None

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.

Path traversal is when a program accepts a file path from a user but does not properly restrict it, so someone can use '..' sequences to step outside the intended folder. Here that means an attacker could make the software open and return files it should never expose, such as files elsewhere on the machine.

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.