Skip to content
SQL injection Write-up Advanced

(CVE-2024-7009) Calibre SQLite Injection

A SQL injection flaw was identified in Calibre's handling of SQL commands, classified as CWE-89. The advisory assigns a medium severity score but provides no technical detail on how the injection is reached or what an attacker could achieve beyond low confidentiality and integrity impact.

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 some part of Calibre builds a database query by joining untrusted input into the SQL string instead of using parameterised queries.

Impact

An attacker with low privileges could potentially read or alter limited data, but the advisory gives no concrete exploitation detail.

What the attacker needed

Low privileges required; high attack complexity

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.

SQL injection is when user-supplied text is placed into a database query without being properly separated from the query's instructions, so the text can change what the database does. This entry is only a CVE summary: it names the weakness and a severity score but does not explain the vulnerable feature or show an attack.

What is SQL injection?

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.

Similar reports

View all

Same bug class and techniques, clearest first.

SQL injection

The lesson behind this report.

Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.