{"answers":{"affected":"It affects 6 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-0146 exists.","fix":"Upgrade to a fixed version.","what":"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."},"fix_prompt":"Check this codebase for CVE-2006-0146 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-0146 exists.\n\nAffected product: Moodle Moodle. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2006-0146/ (Markdown: https://insights.sbomify.com/CVE-2006-0146/index.md)","id":"CVE-2006-0146","markdown":"https://insights.sbomify.com/CVE-2006-0146/index.md","name":"CVE-2006-0146","record":{"aliases":["DEBIAN-CVE-2006-0146","GHSA-q9q3-j7rw-3j95"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution","data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"PHP database library","requires_auth":"none","summary":"Remote attackers can execute arbitrary SQL commands via the server.php test script if the MySQL root password is empty.","user_interaction":"not_required","vuln_class":"sql_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"adodb","vendor":"john_lim"},{"product":"mantis","vendor":"mantis"},{"product":"mediabeez","vendor":"mediabeez"},{"product":"moodle","vendor":"moodle"},{"product":"postnuke","vendor":"postnuke_software_foundation"},{"product":"cacti","vendor":"the_cacti_group"}],"cvss":{"score":7.5,"severity":"high","source":"nvd","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","version":"2.0"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"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.","ecosystems":[],"exploits":{"exploitdb":1,"first_seen":"2006-04-11","github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[{"date":"2006-04-11","kind":"exploitdb","ref":"1663","stars":null,"title":"Simplog 0.9.2 - 's' Remote Command Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"SQL injection in n/a","id":"CVE-2006-0146","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"moodle:moodle","products":["moodle:moodle"],"type":"sql_injection","year":"2006"},"n_packages":0,"n_references":40,"next":{"headline":"Code injection in n/a","id":"CVE-2006-0147"},"packages":[],"prev":{"headline":"Integer overflow in n/a","id":"CVE-2006-0145"},"products":["n/a"],"published":"2006-01-09","related":[{"cvss_score":7.5,"headline":"Code injection in n/a","id":"CVE-2006-0147","kev_date_added":null,"published":"2006-01-09"},{"cvss_score":5.1,"headline":"Code injection in n/a","id":"CVE-2006-4618","kev_date_added":null,"published":"2006-09-07"},{"cvss_score":5,"headline":"Information disclosure in n/a","id":"CVE-2011-3699","kev_date_added":null,"published":"2011-09-23"},{"cvss_score":5,"headline":"Information disclosure in n/a","id":"CVE-2004-2664","kev_date_added":null,"published":"2006-09-07"},{"cvss_score":5,"headline":"SQL injection in n/a","id":"CVE-2006-0410","kev_date_added":null,"published":"2006-01-25"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2006-0806","kev_date_added":null,"published":"2006-02-21"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-07","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary SQL commands via the server.php test script if the MySQL root password is empty.","url":"https://insights.sbomify.com/CVE-2006-0146/"}