{"id":"CVE-2006-4785","aliases":["EUVD-2006-4772","GHSA-68fm-qg53-rwwj"],"status":"published","title":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers...","description":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.03047,"percentile":0.87637,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-89"],"published":"2006-09-14T10:00:00Z","modified":"2026-06-16T22:29:47Z","products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/29001","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/bid/19995","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Third Party Advisory","VDB Entry"]},{"url":"http://secunia.com/advisories/21899","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Patch","Third Party Advisory"]},{"url":"http://www.attrition.org/pipermail/vim/2006-September/001040.html","tags":["mailing-list","x_refsource_VIM","x_transferred","Third Party Advisory"]},{"url":"http://www.attrition.org/pipermail/vim/2006-September/001038.html","tags":["mailing-list","x_refsource_VIM","x_transferred","Third Party Advisory"]},{"url":"http://www.securityfocus.com/bid/20085","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Third Party Advisory","VDB Entry"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/28904","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://www.securityfocus.com/archive/1/446227/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://securitytracker.com/id?1016877","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Third Party Advisory","VDB Entry"]},{"url":"http://docs.moodle.org/en/Release_notes#Moodle_1.6.2","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://www.vupen.com/english/advisories/2006/3591","tags":["vdb-entry","x_refsource_VUPEN","x_transferred","Third Party Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4785"},{"url":"https://github.com/advisories/GHSA-68fm-qg53-rwwj"}],"sources":{"cve":[{"id":"CVE-2006-4785","description":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.","status":"published","published":"2006-09-14T10:00:00Z","modified":"2024-08-07T19:23:41.121Z","updated_at":"2026-11-02T14:33:50.738595Z"}],"euvd":[{"id":"EUVD-2006-4772","description":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.","status":"published","published":"2006-09-14T10:00:00Z","modified":"2024-08-07T19:23:41Z","updated_at":"2026-11-03T01:15:50.383789Z"}],"ghsa":[{"id":"GHSA-68fm-qg53-rwwj","title":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers...","description":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.","status":"published","published":"2022-05-01T07:22:02Z","modified":"2023-01-31T05:02:15Z","cwes":["CWE-89"],"updated_at":"2026-11-02T14:48:13.510148Z"}],"nvd":[{"id":"CVE-2006-4785","description":"SQL injection vulnerability in blog/edit.php in Moodle 1.6.1 and earlier allows remote attackers to execute arbitrary SQL commands via the format parameter as stored in the $blogEntry variable, which is not properly handled by the insert_record function, which calls _adodb_column_sql in the adodb layer (lib/adodb/adodb-lib.inc.php), which does not convert the data type to an int.","status":"published","published":"2006-09-14T10:07:00Z","modified":"2026-06-16T22:29:47.543Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:01:06.675668Z"}]}}
