CVE-2022-30765 SQL injection in calibreweb

Critical 9.8 Published Updated

An attacker can perform SQL injection on the user table in Calibre-Web, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-30765?

CVE-2022-30765 is a critical SQL injection vulnerability in n/a, published on 16 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Calibre-Web before 0.6.18 allows user table SQL Injection.

Weakness: CWE-89

Which versions are affected by CVE-2022-30765?

3 open source packages ship an affected version, including calibreweb. It affects 1 product.

PackageAffectedFixed in
calibreweb PyPIAll versions0.6.18
calibreweb PyPIAll versions0.6.18
calibreweb PyPIAll versions0.6.18

Products include Janeczku Calibre-Web.

How do I fix CVE-2022-30765?

Upgrade calibreweb to 0.6.18 or later.

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-2022-30765 being exploited?

There is no known exploitation of CVE-2022-30765 in the wild and no public exploit code.

Sources

Also known as GHSA-8ppf-x4gr-2x7g, PYSEC-2026-305.

Is CVE-2022-30765 in your software?

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

Check your SBOMs for free