CVE-2008-4740: Directory Traversal in TinyCMS ZZ_Templater Module
- Vendor
- Tinycms
A directory traversal vulnerability exists in templater.php within the ZZ_Templater module of TinyCMS 1.1.2. When PHP's register_globals is enabled and magic_quotes_gpc is disabled, remote attackers can exploit improper sanitization of the config[template] parameter to include and execute arbitrary local files via directory traversal sequences (..).
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows remote attackers to execute arbitrary code on the server by including local files, potentially leading to full compromise of the affected system.
Mitigation
If you can’t patch tonight, do this now.
Disable register_globals and enable magic_quotes_gpc in the PHP configuration. Restrict access to the application and monitor for suspicious activity. Employ web application firewalls to block directory traversal attempts.
Remediation
Patch, then assume compromise.
Upgrade to a version of TinyCMS that properly sanitizes user input in templater.php, or apply a patch that ensures the config[template] parameter is validated and directory traversal sequences are blocked. Additionally, ensure register_globals is disabled and magic_quotes_gpc is enabled or, preferably, migrate to supported PHP configurations.
Exploits
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2008-4740 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2008-4740 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2008-4740?
- Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2008-4740.
- Is there a patch for CVE-2008-4740?
- Upgrade to a version of TinyCMS that properly sanitizes user input in templater.php, or apply a patch that ensures the config[template] parameter is validated and directory traversal sequences are blocked. Additionally, ensure register_globals is disabled and magic_quotes_gpc is enabled or, preferably, migrate to supported PHP configurations.
- What products are affected by CVE-2008-4740?
- Tinycms.
- How severe is CVE-2008-4740?
- CVE-2008-4740 has a CVSS v2 score of 5.1 (Medium) and an EPSS score of 2.4% (84th percentile) as of Oct 16, 2026.
Recent activity
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.