CVE-2022-30765 in Calibre-Webinfo

Summary

by MITRE • 05/16/2022

Calibre-Web before 0.6.18 allows user table SQL Injection.

If you want to get best quality of vulnerability data, you may have to visit VulDB.

Analysis

by VulDB Data Team • 11/19/2024

Calibre-Web versions prior to 0.6.18 contain a critical SQL injection vulnerability in the user table functionality that enables authenticated attackers to execute arbitrary SQL commands against the underlying database. This vulnerability resides in the handling of user table parameters within the web application's database queries, where input validation and sanitization mechanisms fail to properly filter malicious user-supplied data. The flaw specifically manifests when the application processes user table operations such as sorting, filtering, or searching within the administrative interface, allowing an attacker to inject malicious SQL payloads that bypass normal security controls.

The technical implementation of this vulnerability stems from improper parameter binding and input handling within the application's database abstraction layer. When users interact with the user management features, the application directly incorporates user-provided parameters into SQL query strings without adequate sanitization or prepared statement usage. This creates an environment where an attacker can manipulate database queries through carefully crafted inputs that alter the intended execution flow of SQL commands. The vulnerability is classified as CWE-89 SQL Injection, which represents one of the most prevalent and dangerous web application security flaws according to the CWE database.

The operational impact of this vulnerability extends beyond simple data theft, as authenticated attackers can potentially gain complete administrative control over the database backend. Successful exploitation could result in unauthorized data access, modification, or deletion of user accounts, personal information, and system configurations. The vulnerability affects all authenticated users with sufficient privileges to access the user table management features, making it particularly dangerous in environments where multiple administrators or users maintain access to the application. Attackers could leverage this vulnerability to escalate privileges, create backdoor accounts, or extract sensitive information from the database, including user credentials and personal data.

Mitigation strategies for this vulnerability require immediate patching to Calibre-Web version 0.6.18 or later, which implements proper input validation and parameterized queries to prevent SQL injection attacks. Organizations should also implement additional security measures including regular security audits, input validation at multiple layers, and monitoring for suspicious database activity. The ATT&CK framework categorizes this vulnerability under T1078 Valid Accounts and T1566 Phishing, as exploitation typically requires authenticated access and could lead to further system compromise. Network segmentation and least privilege access controls should be implemented to limit potential damage from successful exploitation, while regular security updates and vulnerability assessments help prevent similar issues in other components of the system infrastructure.

Reservation

05/16/2022

Disclosure

05/16/2022

Moderation

accepted

CPE

ready

EPSS

0.01094

KEV

no

Activities

very low

Sources

Want to stay up to date on a daily basis?

Enable the mail alert feature now!