CVE-2024-7009 Calibre SQL Injection

Medium 4.2 Published Updated

Attackers with search permissions can inject SQL into the SQLite database via unsanitized input in Calibre.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-7009?

CVE-2024-7009 is a medium-severity SQL injection vulnerability in Calibre, published on 6 Aug 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Unsanitized user-input in Calibre <= 7.15.0 allow users with permissions to perform full-text searches to achieve SQL injection on the SQLite database.

Weakness: CWE-89

Which versions are affected by CVE-2024-7009?

It affects 1 product.

Products include Calibre-Ebook Calibre.

How do I fix CVE-2024-7009?

Apply the vendor's patch.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2024-7009 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-7009 exists.

Sources

Also known as DEBIAN-CVE-2024-7009, GHSA-mc4x-r58f-6h93, UBUNTU-CVE-2024-7009.

Is CVE-2024-7009 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free