Summary
CVE-2012-20002 is a path traversal vulnerability in the TinyMCE Thumbnail Gallery WordPress plugin before version 1.1.0. Unauthenticated remote attackers can read arbitrary files from the server, including wp-config.php, which holds database credentials. The CVE record rates it 8.7 (High) under CVSS v4.0.
Technical details
- Root cause: The plugin’s
/php/download-image.phpfile doesn’t properly restrict thehrefparameter, so directory traversal sequences are accepted (CWE-22). - Trigger conditions: The plugin is installed in a version before 1.1.0. No authentication or user interaction is required.
- Attack vector: Network. An attacker sends a crafted HTTP request to
download-image.phpwith anhrefvalue such as../../../../wp-config.php. - Impact: Disclosure of sensitive files, including database credentials in
wp-config.php. The CVE record lists confidentiality impact only. - Exploitation: The issue was publicly disclosed in 2012 (Exploit-DB EDB-19022). The CVE record cites Shadowserver Foundation evidence of exploitation dated October 19, 2023.
Affected software
- TinyMCE Thumbnail Gallery WordPress plugin (author: James Charlesworth) versions before 1.1.0
Severity
- CVSS v4.0 base score: 8.7 (High),
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - The CVE record also lists a CVSS v3.1 score of 7.5 (High),
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Mitigation and recommended actions
- Immediate: Upgrade the plugin to version 1.1.0 or later.
- If you can’t upgrade: Deactivate and remove the plugin. Block external access to
/wp-content/plugins/tinymce-thumbnail-gallery/php/download-image.phpat the web server or WAF. - Credentials: If the plugin ran an affected version on an internet-facing site, treat the database credentials and the secrets in
wp-config.phpas potentially exposed. Rotate them, and review web logs for requests todownload-image.php.

