CVE-2012-6112: PHP Spellchecker addon for TinyMCE allows attackers to trigger arbitrary outbound HTTP requests

moodle/moodle Updated 02 Oct 2025

Summary

13/05/2022
Yes i
Moderate
Not published

CVE-2012-6112: PHP Spellchecker addon for TinyMCE allows attackers to trigger arbitrary outbound HTTP requests. Affects moodle/moodle across 4 version ranges.

>= 2.1.0, < 2.1.10 >= 2.2.0, < 2.2.7 >= 2.3.0, < 2.3.4 >= 2.4.0, < 2.4.1

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2012-6112 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The PHP Spellchecker addon for TinyMCE is a component used in various products, including Moodle. It provides spellchecking functionality using the Google Spellchecker service. The addon is integrated into Moodle versions 2.1.x to 2.4.x. This vulnerability affects the addon before version 2.0.6.1. The vulnerability arises from improper handling of control characters in the GoogleSpell.php file, allowing remote attackers to trigger arbitrary outbound HTTP requests by exploiting a crafted string.

Vulnerability Detail

The vulnerability in the PHP Spellchecker addon for TinyMCE allows attackers to manipulate the addon's functionality to send arbitrary outbound HTTP requests. By crafting a specific string, an attacker can trigger the addon to make requests to external servers, potentially leading to unauthorized access or data leakage. This vulnerability can be exploited remotely, posing a moderate risk to affected systems.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.1.0, < 2.1.10 2.1.10
    composer require moodle/moodle:2.1.10
  • >= 2.2.0, < 2.2.7 2.2.7
    composer require moodle/moodle:2.2.7
  • >= 2.3.0, < 2.3.4 2.3.4
    composer require moodle/moodle:2.3.4
  • >= 2.4.0, < 2.4.1 2.4.1
    composer require moodle/moodle:2.4.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. It is recommended to apply the fix by updating the PHP Spellchecker addon for TinyMCE to the latest version.

Conclusion

The PHP Spellchecker addon for TinyMCE is vulnerable to a remote code execution vulnerability that allows attackers to trigger arbitrary outbound HTTP requests. To mitigate this vulnerability, it is crucial to update the addon to version 2.0.6.1 or later. Users of Moodle should also ensure they are running the latest available version that includes the patched addon. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

The vulnerability allows attackers to trigger arbitrary outbound HTTP requests, which can potentially lead to unauthorized access or data leakage.

Yes, this vulnerability can be exploited remotely.

Moodle versions 2.1.x to 2.4.x are affected.

There are no known instances of this vulnerability being exploited at the moment.

Yes, updating the PHP Spellchecker addon for TinyMCE to version 2.0.6.1 or later fixes this vulnerability.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 2.1.0, < 2.1.10 2.1.10
    composer require moodle/moodle:2.1.10
  • >= 2.2.0, < 2.2.7 2.2.7
    composer require moodle/moodle:2.2.7
  • >= 2.3.0, < 2.3.4 2.3.4
    composer require moodle/moodle:2.3.4
  • >= 2.4.0, < 2.4.1 2.4.1
    composer require moodle/moodle:2.4.1

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback