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.
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Link | Tags |
---|---|
https://downloads.asterisk.org/pub/security/ | vendor advisory |
https://downloads.asterisk.org/pub/security/AST-2022-003.html | vendor advisory |
http://packetstormsecurity.com/files/166746/Asterisk-Project-Security-Advisory-AST-2022-003.html | vdb entry third party advisory |
https://lists.debian.org/debian-lts-announce/2022/11/msg00021.html | third party advisory mailing list |
https://www.debian.org/security/2022/dsa-5285 | third party advisory vendor advisory |