CVE-2012-6112
PHP Spellchecker addon for TinyMCE allows attackers to trigger arbitrary outbound HTTP requests
Also known as GHSA-fx5h-3786-h2w6
Mitigation
- Upgrade moodle/moodle to one of 2.1.10, 2.2.7, 2.3.4, 2.4.1 (or later in the same release line).
Who should check
- Projects that depend on Packagist package moodle/moodle (>= 2.1.0, < 2.1.10)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- moodle/moodle >= 2.1.0, < 2.1.10
- Fixed in
- 2.1.10, 2.2.7, 2.3.4, 2.4.1
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.0 (v2.0, NVD)AV:N/AC:L/Au:N/C:N/I:P/A:N
Show all 6 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Authentication: None
- Confidentiality impact: None
- Integrity impact: Partial
- Availability impact: None
- EPSS
- 2.29% chance of exploitation in 30 days (percentile 84, 2026-11-26)
- CWE
- CWE-264
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Packagist moodle/moodle | >= 2.1.0, < 2.1.10 | 2.1.10, 2.2.7, 2.3.4, 2.4.1 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2012-6112. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2012-6112.md Affected: moodle/moodle >= 2.1.0, < 2.1.10 Fixed in: 2.1.10, 2.2.7, 2.3.4, 2.4.1 Steps: 1. Search this machine and project for moodle/moodle (Packagist), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://github.com/tinymce/tinymce_spellchecker_php/commit/22910187bfb9edae90c26e10100d8145b505b974
- https://github.com/moodle/moodle/commit/6fac8f7f04c9fe7f8bbb54a9c00ec5f9ea4f09e0
- https://github.com/moodle/moodle/commit/9803d8fc3ce08c8f8b88ad3a95d9a7c97678a3e3
- https://github.com/moodle/moodle/commit/a3243760c243ddad76e91840134009c3681cb16a
- https://github.com/moodle/moodle/commit/f938b1a89b8f381129120a37915d1b345333b3fb
Other
- http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-37283
- http://www.tinymce.com/develop/changelog/?type=phpspell
- http://openwall.com/lists/oss-security/2013/01/21/1
- https://moodle.org/mod/forum/discuss.php?d=220157
- https://github.com/moodle/moodle
- https://web.archive.org/web/20121015010345/http://www.tinymce.com/develop/changelog/?type=phpspell
- https://web.archive.org/web/20121129021911/http://www.tinymce.com/forum/viewtopic.php?id=30036
FAQ
Is CVE-2012-6112 being exploited?
There is no confirmed exploitation: CVE-2012-6112 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 2.29% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2012-6112?
Medium: CVSS 5.0 (v2.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2012-6112?
moodle/moodle >= 2.1.0, < 2.1.10.
Is there a fix for CVE-2012-6112?
Yes. Fixed in 2.1.10, 2.2.7, 2.3.4, 2.4.1. Upgrade moodle/moodle to one of 2.1.10, 2.2.7, 2.3.4, 2.4.1 (or later in the same release line).
How do I check if I'm affected by CVE-2012-6112?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.