Home / Digium / Asterisk / CVE-2007-6170
CVE-2007-6170: is it exploited, and which versions of Digium Asterisk are affected and fixed?
CVE-2007-6170 is a SQL injection vulnerability in Digium Asterisk. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 08:38 UTC). Affected: asterisk from 1.2.0 before 1.2.25, asterisk from 1.4.0 before 1.4.15, asterisk from b.2.3.0 before b.2.3.4 and 3 more (NVD). Fixed in 1.2.25, 1.4.15 and b.2.3.4 (NVD). Severity: Medium (6.5, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 08:38 UTC, CVE record November 19, 2026, 07:21 UTC and NVD November 19, 2026, 08:52 UTC.
What is CVE-2007-6170?
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.
From the CVE record by mitre, last updated August 7, 2024, 15:54 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| digium | asterisk | from 1.2.0 before 1.2.25 | application |
| digium | asterisk | from 1.4.0 before 1.4.15 | application |
| digium | asterisk | from b.2.3.0 before b.2.3.4 | application |
| digium | asterisk | c.1.0 | application |
| debian | debian linux | 3.1 | operating system |
| debian | debian linux | 4.0 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 22:47 UTC.
How severe is CVE-2007-6170?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.5 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2007-6170 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.81% probability of exploitation activity in the next 30 days, percentile 86.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
Where are the vendor advisories and references?
- 29782 third-party-advisory, x_refsource_SECUNIA
- GLSA-200804-13 vendor-advisory, x_refsource_GENTOO
- 29242 third-party-advisory, x_refsource_SECUNIA
- 27892 third-party-advisory, x_refsource_SECUNIA
- 20071129 AST-2007-026 - SQL Injection issue in cdr_pgsql mailing-list, x_refsource_BUGTRAQ
- http://downloads.digium.com/pub/security/AST-2007-026.html x_refsource_CONFIRM
- SUSE-SR:2008:005 vendor-advisory, x_refsource_SUSE
- 1019020 vdb-entry, x_refsource_SECTRACK
- 26647 vdb-entry, x_refsource_BID
- DSA-1417 vendor-advisory, x_refsource_DEBIAN
- 27827 third-party-advisory, x_refsource_SECUNIA
- asterisk-cdrpqsql-sql-injection(38765) vdb-entry, x_refsource_XF
- ADV-2007-4056 vdb-entry, x_refsource_VUPEN
When was it published, and where is the official record?
- Reserved
- November 29, 2007
- Published
- November 30, 2007, 01:00 UTC
- CVE record updated
- August 7, 2024, 15:54 UTC by mitre
- NVD
- Modified, last modified June 16, 2026, 22:47 UTC
- Last checked
- CVE list November 19, 2026, 07:21 UTC; NVD November 19, 2026, 08:52 UTC; KEV December 3, 2026, 08:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Asterisk?
- Aug 30, 2022CVE-2021-46837 Certified Asterisk: NULL pointer dereference (crash)
- Apr 15, 2022CVE-2022-26651 Digium Asterisk: SQL injection
- Apr 15, 2022CVE-2022-26499 Digium Asterisk: server-side request forgery (SSRF)
- Apr 15, 2022CVE-2022-26498 Digium Asterisk: denial of service (uncontrolled resource consumption)
- Jul 27, 2021CVE-2021-32558 Digium Asterisk: injection
- Jul 27, 2021CVE-2021-31878 Digium Asterisk: reachable assertion (crash)
- Feb 19, 2021CVE-2021-26713 Digium Asterisk: out-of-bounds write (memory corruption)
- Feb 18, 2021CVE-2021-26712 Digium Asterisk: n/a
Questions about CVE-2007-6170
Is CVE-2007-6170 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 08:38 UTC. FIRST's EPSS gives it a 2.81% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Digium Asterisk are affected by CVE-2007-6170?
asterisk from 1.2.0 before 1.2.25, asterisk from 1.4.0 before 1.4.15, asterisk from b.2.3.0 before b.2.3.4, asterisk c.1.0, debian linux 3.1 and debian linux 4.0, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2007-6170?
1.2.25, 1.4.15 and b.2.3.4, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2007-6170?
Medium (6.5, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2007-6170?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.