CVE-2022-30765 SQL injection in calibreweb
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.
| Package | Affected | Fixed in |
|---|---|---|
calibreweb PyPI | All versions | 0.6.18 |
calibreweb PyPI | All versions | 0.6.18 |
calibreweb PyPI | All versions | 0.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.
Other vulnerabilities in n/a
- CVE-2020-12627 Hardcoded credentials in n/a
- CVE-2022-0990 Server-Side Request Forgery (SSRF) in janeczku/calibre-web
- CVE-2022-0767 Server-Side Request Forgery (SSRF) in janeczku/calibre-web
- CVE-2022-0939 Server-Side Request Forgery (SSRF) in janeczku/calibre-web
- CVE-2021-25965 Calibre-web - Admin Account Takeover via Cross-Site Request Forgery (CSRF)
Sources
Also known as GHSA-8ppf-x4gr-2x7g, PYSEC-2026-305.