{"api_version":"1","generated_at":"2026-07-23T09:40:53+00:00","cve":"CVE-2006-4785","urls":{"html":"https://cve.report/CVE-2006-4785","api":"https://cve.report/api/cve/CVE-2006-4785.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2006-4785","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2006-4785"},"summary":{"title":"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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2006-09-14 10:07:00","updated_at":"2018-10-17 21:39:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"http://www.attrition.org/pipermail/vim/2006-September/001040.html","name":"20060619 Re: Moodle issue - invalid vendor ack? and extra vulns","refsource":"VIM","tags":["Third Party Advisory"],"title":"[VIM] Moodle issue - invalid vendor ack? and extra vulns","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/28904","name":"moodle-unspecified-sql-injection(28904)","refsource":"XF","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.attrition.org/pipermail/vim/2006-September/001038.html","name":"20060919 Moodle issue - invalid vendor ack? and extra vulns","refsource":"VIM","tags":["Third Party Advisory"],"title":"[VIM] Moodle issue - invalid vendor ack? and extra vulns","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/19995","name":"19995","refsource":"BID","tags":["Patch","Third Party Advisory","VDB Entry"],"title":"Moodle Multiple Input Validation and Information Disclosure Vulnerabilities","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.vupen.com/english/advisories/2006/3591","name":"ADV-2006-3591","refsource":"VUPEN","tags":["Third Party Advisory"],"title":"Webmail : Solution de messagerie professionnelle - OVHcloud- OVH","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/29001","name":"moodle-edit-sql-injection(29001)","refsource":"XF","tags":["Third Party Advisory","VDB Entry"],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/archive/1/446227/100/0/threaded","name":"20060917 Sql injection in Moodle","refsource":"BUGTRAQ","tags":[],"title":"SecurityFocus","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://securitytracker.com/id?1016877","name":"1016877","refsource":"SECTRACK","tags":["Third Party Advisory","VDB Entry"],"title":"SecurityTracker.com Archives - Moodle Input Validation Flaw in '/blog/edit.php' Lets Remote Users Inject SQL Commands","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/20085","name":"20085","refsource":"BID","tags":["Patch","Third Party Advisory","VDB Entry"],"title":"Moodle Edit.PHP SQL Injection Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://secunia.com/advisories/21899","name":"21899","refsource":"SECUNIA","tags":["Patch","Third Party Advisory"],"title":"Moodle Multiple Vulnerabilities - Advisories - Secunia","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://docs.moodle.org/en/Release_notes#Moodle_1.6.2","name":"http://docs.moodle.org/en/Release_notes#Moodle_1.6.2","refsource":"CONFIRM","tags":["Vendor Advisory"],"title":"Release Notes - MoodleDocs","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2006-4785","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-4785","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2006","cve_id":"4785","vulnerable":"1","versionEndIncluding":"1.6.1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"moodle","cpe5":"moodle","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2006-4785","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"moodle-edit-sql-injection(29001)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/29001"},{"name":"19995","refsource":"BID","url":"http://www.securityfocus.com/bid/19995"},{"name":"21899","refsource":"SECUNIA","url":"http://secunia.com/advisories/21899"},{"name":"20060619 Re: Moodle issue - invalid vendor ack? and extra vulns","refsource":"VIM","url":"http://www.attrition.org/pipermail/vim/2006-September/001040.html"},{"name":"20060919 Moodle issue - invalid vendor ack? and extra vulns","refsource":"VIM","url":"http://www.attrition.org/pipermail/vim/2006-September/001038.html"},{"name":"20085","refsource":"BID","url":"http://www.securityfocus.com/bid/20085"},{"name":"moodle-unspecified-sql-injection(28904)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/28904"},{"name":"20060917 Sql injection in Moodle","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/446227/100/0/threaded"},{"name":"1016877","refsource":"SECTRACK","url":"http://securitytracker.com/id?1016877"},{"name":"http://docs.moodle.org/en/Release_notes#Moodle_1.6.2","refsource":"CONFIRM","url":"http://docs.moodle.org/en/Release_notes#Moodle_1.6.2"},{"name":"ADV-2006-3591","refsource":"VUPEN","url":"http://www.vupen.com/english/advisories/2006/3591"}]}},"nvd":{"publishedDate":"2006-09-14 10:07:00","lastModifiedDate":"2018-10-17 21:39:00","problem_types":["CWE-89"],"metrics":{"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","versionEndIncluding":"1.6.1","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2006","CveId":"4785","Ordinal":"20124","Title":"CVE-2006-4785","CVE":"CVE-2006-4785","Year":"2006"},"notes":[{"CveYear":"2006","CveId":"4785","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2006","CveId":"4785","Ordinal":"2","NoteData":"2006-09-14","Type":"Other","Title":"Published"},{"CveYear":"2006","CveId":"4785","Ordinal":"3","NoteData":"2018-10-17","Type":"Other","Title":"Modified"}]}}}