Description
SQL injection vulnerability in the Call Detail Record Postgres logging engine (cdr_pgsql) in Asterisk 1.4.x before 1.4.15, 1.2.x before 1.2.25, B.x before B.2.3.4, and C.x before C.1.0-beta6 allows remote authenticated users to execute arbitrary SQL commands via (1) ANI and (2) DNIS arguments.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asterisk | 1:1.4.15~dfsg-1 | — |
| Debian 4.0 | asterisk | 1:1.2.13~dfsg-2etch2 | DSA-1417-1 |
| Debian 3.1 | asterisk | 1:1.0.7.dfsg.1-2sarge6 | DSA-1417-1 |
Advisories 1
- DSA-1417-1 asterisk - SQL injection Debian Security (DSA / DLA) · Mar 9, 2026
References
- 29782 third-party-advisory
- GLSA-200804-13 vendor-advisory
- 29242 third-party-advisory
- 27892 third-party-advisory
- 20071129 AST-2007-026 - SQL Injection issue in cdr_pgsql mailing-list
- http://downloads.digium.com/pub/security/AST-2007-026.html
- SUSE-SR:2008:005 vendor-advisory
- 1019020 vdb-entry
- 26647 vdb-entry
- DSA-1417 vendor-advisory
- 27827 third-party-advisory
- asterisk-cdrpqsql-sql-injection(38765) vdb-entry
- ADV-2007-4056 vdb-entry