CVE-2006-0147: Dynamic Code Evaluation in ADOdb for PHP (tmssql.php)
- Vendors
- John LimThe Cacti GroupMantisMoodlePostnuke Software Foundation
ADOdb for PHP before 4.70 contains a dynamic code evaluation vulnerability in the tests/tmssql.php test script. The script takes user input from the 'do' parameter, assigns it to a variable, and then executes it as a PHP function. This allows remote attackers to execute arbitrary PHP functions, as demonstrated with the 'phpinfo' function. The vulnerability affects multiple products that include ADOdb, such as Mantis, PostNuke, Moodle, Cacti, Xaraya, PhpOpenChat, possibly MAXdev MD-Pro, and Simplog.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote attackers can execute arbitrary PHP functions on the server by supplying crafted input to the 'do' parameter in the vulnerable script. This can lead to full compromise of the affected web application and potentially the underlying server, depending on the privileges of the web server process.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, remove the tests/tmssql.php script from all production servers or restrict access to it via web server configuration (e.g., using .htaccess or equivalent). Regularly audit web application directories for the presence of test or development scripts.
Remediation
Patch, then assume compromise.
Upgrade ADOdb to version 4.70 or later, which removes or secures the vulnerable test script. Additionally, ensure that test scripts like tmssql.php are not deployed on production systems. Remove or restrict access to any test or development scripts in production environments.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2006-0147 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2006-0147 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2006-0147?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2006-0147.
- Is there a patch for CVE-2006-0147?
- Upgrade ADOdb to version 4.70 or later, which removes or secures the vulnerable test script. Additionally, ensure that test scripts like tmssql.php are not deployed on production systems.
- What products are affected by CVE-2006-0147?
- Mantis, Moodle, John Lim Adodb, The Cacti Group Cacti, and Postnuke Software Foundation Postnuke.
- How severe is CVE-2006-0147?
- CVE-2006-0147 has a CVSS v2 score of 7.5 (High) and an EPSS score of 13.1% (96th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.