Patching this week's Joomla cache bug on sites past end of life
December 4, 2026
On December 1st the Joomla project published a security advisory for a bug in its file-based cache storage, tracked as CVE-2026-133347. Joomla can store rendered pages and data as files on disk, and each of those files begins with a small guard header that stops the file from being opened directly in a browser. The bug is in how that header is removed when a cache entry is read back: Joomla stripped every copy of the header found anywhere in the content, instead of only the one at the start. Under the right conditions, that mismatch lets carefully chosen content change what the site reads back, and because the content is then unserialized by PHP, it could ultimately let someone make the server run code without logging in. The fix shipped in Joomla 5.4.12 and 6.2.2, but the bug reaches back through every Joomla release since 1.5.
What we did
We maintain two Joomla sites that run on older branches the vendor no longer updates. For software past end of life there is no update to install, so we backported the fix: we took the small behavior change from the official patch (remove the guard header only when it is at the very start of the content) and applied it to the affected core file on both sites, the same day the advisory came out.
Editing core files by hand is exactly the kind of work that goes wrong when done casually, so the change ran as a gated, scripted job. The code was inspected first to confirm it matched the expected shape, a backup and checksum were taken, the edit was applied by a script that verified it changed exactly the expected number of places, the file passed a PHP syntax check, the resulting diff was reviewed, and the public pages and admin login pages of both sites were confirmed working from the outside afterwards. A marker comment in the file means any future run detects the patch instead of applying it twice. Over the following hours we also confirmed on disk that real cache entries are still written and read back correctly through the patched code.
One detail worth passing on: both sites have Joomla's global caching switched off, which at first glance makes this bug unreachable. It turned out not to be, because an e-commerce extension on the sites turns caching back on for its own category pages, so cache files are written daily regardless of the global setting. A colleague spotted this, and it changed our read of the urgency. A global "off" switch is not proof that a feature is off everywhere.
If you run Joomla
- On a supported branch, update to 5.4.12 or 6.2.2. The fix is small and safe to take promptly.
- On an older branch, you are still affected (the bug goes back to 1.5). Either arrange for the fix to be backported, or verify that file caching is genuinely never used on your site.
- Do not rely on the global caching setting alone. Extensions can enable caching for their own pages, so check what is actually being written under your cache directory.
- If you are running a branch that no longer gets vendor fixes, treat this as a nudge to plan a migration. Backports work, but each new advisory needs one.
The sites we look after were patched the day the advisory appeared and have been verified working since, so if you are a client reading this, there is nothing you need to do.