CVE-2022-26651 SQL injection in n/a
Inadequate escaping in Asterisk's func_odbc module allows SQL injection via user-provided data, potentially exposing 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-26651?
CVE-2022-26651 is a critical SQL injection vulnerability in Debian Debian Linux, published on 15 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An issue was discovered in Asterisk through 19.x and Certified Asterisk through 16.8-cert13. The func_odbc module provides possibly inadequate escaping functionality for backslash characters in SQL queries, resulting in user-provided data creating a broken SQL query or possibly a SQL injection. This is fixed in 16.25.2, 18.11.2, and 19.3.2, and 16.8-cert14.
Weakness: CWE-89
Which versions are affected by CVE-2022-26651?
It affects 3 products.
Products include Debian Debian Linux, Digium Asterisk, Digium Certified Asterisk.
How do I fix CVE-2022-26651?
Upgrade to a fixed version.
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-26651 being exploited?
There is no known exploitation of CVE-2022-26651 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2022-26651, DEBIAN-CVE-2022-26651, GHSA-6pcv-f66p-pqqj, UBUNTU-CVE-2022-26651.