CVE-2012-6112: Moodle/moodle PHP Spellchecker Addon For TinyMCE Vulnerability
MODERATECVE-2012-6112 is a MODERATE php spellchecker addon for tinymce vulnerability (General Security Weakness) affecting Moodle/moodle libraries in the Packagist ecosystem. The issue involves php spellchecker addon for tinymce allows attackers to trigger arbitrary outbound http requests. Remediation is available by upgrading affected packages to version 2.1.10, 2.2.7, 2.3.4, 2.4.1.
CVE-2012-6112 at a Glance
How to Fix CVE-2012-6112
To remediate this vulnerability, upgrade all affected Moodle/moodle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade moodle/moodle to 2.1.10
Upgrade moodle/moodle to 2.2.7
Upgrade moodle/moodle to 2.3.4
Upgrade moodle/moodle to 2.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for moodle/moodle
How to Check if You Are Affected
To determine whether your application is affected by CVE-2012-6112, inspect your project dependencies for Moodle/moodle:
inspect dependencies for moodle/moodle
Analyze the terminal output to locate any version of Moodle/moodle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.1.10), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Moodle/moodle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2012-6112 Affected Moodle/moodle Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
moodle/moodle
|
Packagist |
≥ 2.1.0
< 2.1.10
|
2.1.10
|
|
moodle/moodle
|
Packagist |
≥ 2.2.0
< 2.2.7
|
2.2.7
|
|
moodle/moodle
|
Packagist |
≥ 2.3.0
< 2.3.4
|
2.3.4
|
|
moodle/moodle
|
Packagist |
≥ 2.4.0
< 2.4.1
All 1 versions
2.4.0
|
2.4.1
|
References
Frequently Asked Questions
What is CVE-2012-6112?
Which Moodle/moodle versions are affected?
What version fixes CVE-2012-6112?
Is moodle/moodle affected?
What CWE is associated with CVE-2012-6112?
How can I check Packagist dependencies for CVE-2012-6112?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fx5h-3786-h2w6",
"modified" : "2024-01-25T20:27:58Z",
"published" : "2022-05-13T01:12:57Z",
"aliases" : [ "CVE-2012-6112" ],
"summary" : "PHP Spellchecker addon for TinyMCE allows attackers to trigger arbitrary outbound HTTP requests",
"details" : "classes/GoogleSpell.php in the PHP Spellchecker (aka Google Spellchecker) addon before 2.0.6.1 for TinyMCE, as used in Moodle 2.1.x before 2.1.10, 2.2.x before 2.2.7, 2.3.x before 2.3.4, and 2.4.x before 2.4.1 and other products, does not properly handle control characters, which allows remote attackers to trigger arbitrary outbound HTTP requests via a crafted string.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.10"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.4"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "moodle/moodle"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.4.1"
} ]
} ],
"versions" : [ "2.4.0" ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2012-6112"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/6fac8f7f04c9fe7f8bbb54a9c00ec5f9ea4f09e0"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/9803d8fc3ce08c8f8b88ad3a95d9a7c97678a3e3"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/a3243760c243ddad76e91840134009c3681cb16a"
}, {
"type" : "WEB",
"url" : "https://github.com/moodle/moodle/commit/f938b1a89b8f381129120a37915d1b345333b3fb"
}, {
"type" : "WEB",
"url" : "https://github.com/tinymce/tinymce_spellchecker_php/commit/22910187bfb9edae90c26e10100d8145b505b974"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/moodle/moodle"
}, {
"type" : "WEB",
"url" : "https://moodle.org/mod/forum/discuss.php?d=220157"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20121015010345/http://www.tinymce.com/develop/changelog/?type=phpspell"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20121129021911/http://www.tinymce.com/forum/viewtopic.php?id=30036"
}, {
"type" : "WEB",
"url" : "http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-37283"
}, {
"type" : "WEB",
"url" : "http://openwall.com/lists/oss-security/2013/01/21/1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-01-25T20:27:58Z",
"nvd_published_at" : "2013-01-27T22:55:00Z"
}
}