CVE-2006-4785 SQL injection in n/a

High 7.5 Published Updated

Remote attackers with low privileges can execute arbitrary SQL commands in Moodle via the blog edit format parameter, potentially accessing or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2006-4785?

CVE-2006-4785 is a high-severity SQL injection vulnerability in Moodle Moodle, published on 14 Sep 2006. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-89

Which versions are affected by CVE-2006-4785?

It affects 1 product.

Products include Moodle Moodle.

How do I fix CVE-2006-4785?

No fix has been published for CVE-2006-4785 yet. Limit exposure of the affected software until one is available.

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-4785 being exploited?

There is no known exploitation of CVE-2006-4785 in the wild and no public exploit code.

All Moodle Moodle vulnerabilities

Sources

Also known as CVE-2006-4896, GHSA-68fm-qg53-rwwj.

Is CVE-2006-4785 in your software?

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

Check your SBOMs for free