CVE-2007-6170 SQL injection in n/a

Medium 6.5 Published Updated

Remote authenticated users can execute arbitrary SQL commands in Asterisk via ANI and DNIS arguments, compromising call detail records.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2007-6170?

CVE-2007-6170 is a medium-severity SQL injection vulnerability in Debian Debian Linux, published on 30 Nov 2007. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2007-6170?

It affects 2 products.

Products include Debian Debian Linux, Digium Asterisk.

How do I fix CVE-2007-6170?

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-2007-6170 being exploited?

There is no known exploitation of CVE-2007-6170 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2007-6170, DSA-1417-1, GHSA-mcqx-w3j9-p34h.

Is CVE-2007-6170 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free