CVE-2006-0146 SQL injection in n/a

High 7.5 Published Updated

Remote attackers can execute arbitrary SQL commands via the server.php test script if the MySQL root password is empty.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2006-0146?

CVE-2006-0146 is a high-severity SQL injection vulnerability in Moodle Moodle, published on 9 Jan 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The server.php test script in ADOdb for PHP before 4.70, as used in multiple products including (1) Mantis, (2) PostNuke, (3) Moodle, (4) Cacti, (5) Xaraya, (6) PHPOpenChat, (7) MAXdev MD-Pro, and (8) MediaBeez, when the MySQL root password is empty, allows remote attackers to execute arbitrary SQL commands via the sql parameter.

Weakness: CWE-89

Which versions are affected by CVE-2006-0146?

It affects 6 products.

Products include John Lim Adodb, Mantis Mantis, Mediabeez Mediabeez, Moodle Moodle, Postnuke Software Foundation Postnuke, The Cacti Group Cacti.

How do I fix CVE-2006-0146?

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-2006-0146 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-0146 exists.

Public exploit code: 1 Exploit-DB entry.

All Moodle Moodle vulnerabilities

Sources

Also known as DEBIAN-CVE-2006-0146, GHSA-q9q3-j7rw-3j95.

Is CVE-2006-0146 in your software?

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

Check your SBOMs for free