CVE-2024-7009
NixOS vulnerability analysis and mitigation

Overview

Calibre versions 7.15.0 and earlier contain an SQL injection vulnerability that affects users with permissions to perform full-text searches. The vulnerability was discovered in July 2024 and assigned identifier CVE-2024-7009. The issue affects the Calibre content server feature, specifically impacting the full-text search functionality (STAR Labs Advisory, NVD).

Technical details

The vulnerability exists due to unsanitized user input in the highlightstart and highlightend parameters of the /fts/snippets/{book_ids} endpoint. These parameters are directly incorporated into SQL queries without proper sanitization, allowing for SQL injection attacks. The issue has received a CVSS v3.1 Base Score of 7.1 (HIGH) from NIST and 4.2 (MEDIUM) from STAR Labs, with the vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N (NVD, STAR Labs Advisory).

Impact

An attacker with privileges to perform full-text searches can exploit this vulnerability to inject arbitrary SQL code into search queries. This could lead to unauthorized access to sensitive information from any SQLite databases on the server's filesystem, including authentication credentials stored in the server-users.sqlite file. Additionally, the vulnerability allows for limited file writes to the filesystem, potentially enabling the creation of malicious files (STAR Labs Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 7.16.0. The fix involves properly sanitizing the highlightstart and highlightend parameters before using them in query strings. For earlier versions, it is recommended to implement parameterized queries where possible (Calibre Patch, STAR Labs Advisory).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61609HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management