CVE-2022-26651

An issue was discovered in Asterisk through 19.x and Certified Asterisk through 16.8-cert13

published April 15, 2022

CVSS
—
EPSS
7%
Percentile
94.2
In the wild
Unconfirmed
What it is

⚠️ A sneaky escape character is lurking in the func_odbc module! This potential flaw could turn perfectly good SQL queries into a playground for attackers. 🔥 Think of it like a restaurant where the chef ignores certain special requests; one wrong ingredient can spoil the entire dish. In this case, unescaped backslashes in user data can lead to broken—or worse, harmful—SQL queries. If exploited, this could allow an attacker to inject malicious SQL commands, compromising the integrity of your database. Imagine someone rewriting the menu with their own ingredients, potentially leading to data leaks or corruption—yikes!

Put simply

Think of it like a restaurant where the chef ignores certain special requests; one wrong ingredient can spoil the entire dish. In this case, unescaped backslashes in user data can lead to broken—or worse, harmful—SQL queries. The func_odbc module in Asterisk versions up to 19.x and 16.8-cert13 inadequately escapes backslash characters in SQL queries. This could lead to broken queries or SQL injection attacks if user-provided data isn't properly handled.

What to do

If exploited, this could allow an attacker to inject malicious SQL commands, compromising the integrity of your database. Imagine someone rewriting the menu with their own ingredients, potentially leading to data leaks or corruption—yikes! Update to Asterisk versions 16.25.2, 18.11.2, 19.3.2, or 16.8-cert14 to fix this vulnerability. Review your SQL queries to ensure proper escaping of characters and implement input validation to prevent future issues. You've got this! With these updates and precautions, you'll keep your database safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.07026 · 94.2th percentile
Published
2022-04-15T00:00Z
EPSS history
Timeline
  • 15 APR 00:00Z
    An issue was discovered in Asterisk through 19.x and Certified Asterisk through 16.8-cert13
    cvelistv5