Skip to main content
mySites.guru
Joomla securityJoomla 6.2.2 and 5.4.12 are out, fixing a Critical file cache flaw: update nowWhat changed

Joomla 6.2.2 and 5.4.12 Fix a Critical File Cache Flaw

Joomla 6.2.2 and 5.4.12 Fix a Critical File Cache Flaw

Joomla released Joomla 6.2.2 and 5.4.12 on 1 December 2026. The release has one security fix, advisory 20261201, a PHP object injection flaw in the file cache that Joomla rates Critical for impact. The announcement says: “This is an important security release and you should update immediately.”

This is the release Joomla gave a day’s notice of on 30 November. Update every Joomla 5 and Joomla 6 site now. If a site cannot be updated today, Joomla gives one workaround, and it is a different setting from the one most people will reach for.

What to do now

  • Update Joomla 5 sites to 5.4.12 and Joomla 6 sites to 6.2.2.
  • Take Joomla 4 sites to 4.4 first and then to 5.4.12.
  • If a site cannot be updated today, change its Cache Handler away from File: System, Global Configuration, System tab, Cache section.
  • Do not rely on switching System Cache off. Joomla core writes to the cache store with that switch off too.
9.4CVSS 4.0

CVE-2026-133347: PHP object injection through file cache guard handling

CriticalJoomla CNA, CVE record

The vector says the attacker needs a highly privileged account (PR:H), such as a Joomla administrator. With one, Joomla rates the damage High for confidentiality, integrity and availability, on the site and on systems beyond it.

CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
What does this mean?

CVSS 4.0 scores how severe a flaw is, from 0 (no impact) to 10 (critical). Each pair of letters in the string above is one metric; here is what this one's says.

How it is reached

AV:N
Network: Reachable across the internet
AC:L
Low: Nothing to work around, it just works
AT:N
None: Works against any affected install
PR:H
High: Needs an account with elevated rights
UI:N
None: Nobody has to be tricked into anything

What it does to the site

VC:H
High: Everything the site holds can be read
VI:H
High: Data and files can be altered at will
VA:H
High: The site can be taken down

What it does beyond the site

SC:H
High: Data on other systems can be read
SI:H
High: Other systems can be altered
SA:H
High: Other systems can be taken down

TL;DR

  • Joomla 6.2.2 and 5.4.12 fix one security issue, CVE-2026-133347, reported by Nicolas Markitanis. Joomla rates it Critical for impact, Moderate for severity and Moderate for probability, with the exploit type given as PHP Object Injection / RCE.
  • The affected versions are 1.5.0 to 5.4.11 and 6.0.0 to 6.2.1. That range includes Joomla 3 and Joomla 4, and neither gets a fix of its own.
  • The flaw is in the File cache handler, the default on every new Joomla install.
  • Joomla’s workaround is to use a cache handler other than File. Switching System Cache off is not that workaround.
  • The CVE record scores it 9.4 Critical under CVSS 4.0, and its vector says the attacker needs a highly privileged account. Joomla has not reported exploitation.

What Went Wrong in the Joomla File Cache

The advisory describes the flaw in one sentence: “The file cache storage removed every occurrence of its protection header from cached data instead of only the leading one, leading to PHP object injection vectors.”

The protection header is a line of PHP. Every file Joomla writes to its file cache starts with <?php die("Access Denied"); ?>#x#, so that requesting the cache file directly in a browser prints nothing useful. When Joomla reads the file back, it has to take that line off again before using the data.

The public diff between 5.4.11 and 5.4.12 shows how it did that, in the get() method of libraries/src/Cache/Storage/FileStorage.php. Before the fix:

return str_replace('<?php die("Access Denied"); ?>#x#', '', $data);

After the fix:

$guard = '<?php die("Access Denied"); ?>#x#';

if (!str_starts_with($data, $guard)) {
    return false;
}

return substr($data, \strlen($guard));

The old line removed the guard wherever it appeared in the file. The new code checks that the file starts with the guard, refuses the file if it does not, and removes only those leading bytes.

Joomla added a unit test alongside the fix, tests/Unit/Libraries/Cms/Cache/Storage/FileStorageTest.php, with two cases. A serialized array whose value holds the guard string twice must come back unchanged after a store and a get. A cache file that does not start with the guard must be rejected, with get() returning false.

Our reading of the diff

The advisory stops at that one sentence, so what follows is our reading of the public diff and the tests. Joomla has not said this itself.

Cached data is often a PHP serialized string, and in that format every string is prefixed by its length in bytes. If the guard text sits inside a cached value and is stripped on the way out, the stored lengths no longer match the bytes that follow them. unserialize() then reads the bytes after the shortened string as structure rather than as text.

Someone who can get crafted text into a cached value can use that mismatch to have unserialize() build objects of their choosing. That is what PHP object injection means, and with a suitable chain of classes it can lead to code execution. The advisory lists RCE in its exploit type.

Which Joomla Sites Are Exposed?

Every Joomla site from 1.5.0 to 5.4.11 and from 6.0.0 to 6.2.1 is in the affected range, according to the advisory. The File handler is the default: the Joomla installer writes cache_handler = 'file' into configuration.php on every new install, so a site is using it unless someone changed it.

It is tempting to read this as a problem only for sites with caching enabled. The code says otherwise. In 5.4.11, libraries/src/Version.php creates a cache controller with caching forced on for its media version value, so Joomla core writes to the cache store even when System Cache is off in Global Configuration.

The advisory text does not say what an attacker needs, but the CVE record’s vector does: PR:H, a highly privileged account, such as a Joomla administrator. Neither says which cached content has to be reached, and we are not going to guess. Joomla rates the probability Moderate and has not reported exploitation, and the issue is not in the CISA Known Exploited Vulnerabilities catalogue.

The record, published by the Joomla CNA at 16:24 UTC on 1 December 2026, scores it 9.4 Critical: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H. The score is that high despite the login requirement because the vector rates every impact High, including on systems beyond the vulnerable component (SC:H/SI:H/SA:H).

Changing the Joomla Cache Handler When You Cannot Update

Updating is the fix. For a site that cannot be updated today, the advisory gives this workaround: “Use a different Cache Handler than “File”, see Global Configuration.”

On Joomla 5 and Joomla 6 the setting is here:

  1. Open System, then Global Configuration.
  2. Select the System tab and find the Cache section.
  3. Look for the field labelled Cache Handler. It is only shown when System Cache is switched on.
  4. Choose a handler other than File, then save.

The list only offers the handlers the server supports. Joomla has storage classes for APCu, Memcached, Redis and File, so the alternatives depend on which of the first three the host provides.

On a server with none of APCu, Memcached or Redis available, File is the only choice in the list. There is no workaround for that site, and updating is the only fix.

Once a site is on 5.4.12 or 6.2.2 the File handler reads its files with the corrected code, so the workaround is no longer needed there.

Two Joomla Security Releases in One Week

This is the second Joomla security release in a week. Joomla 6.2.1 and 5.4.11 came out on 24 November 2026 with 58 security fixes, four of them ranked Critical. The flaw fixed in this release was reported the next day, 25 November, and Joomla announced this release on 30 November with a rating of “critical impact, moderate probability”.

A site still on 5.4.10 or 6.2.0 has missed both. It does not need two updates: going to 5.4.12 or 6.2.2 installs all 59 fixes in one step.

Most sites are one step away. Of the Joomla 5 and Joomla 6 sites connected to mySites.guru that reported in during the last 30 days, 78% were already on 5.4.11 or 6.2.1 when this release came out. About one in five (21%) were still behind both releases, so for those sites this update installs all 59 fixes at once.

Apart from the security fix, the only other entry in the changelog is a fix to media manager search on Windows. The announcement also notes that Joomla 5.4 gets security fixes only until 12 October 2027, which we cover in our post on the Joomla 5.4 end of support dates.

Joomla 6.2.1 and 5.4.11 Fix 58 Security Issues, Four CriticalRead the full post

Joomla 4 and Joomla 3 Sites

Joomla 4 is end of life and gets no fix. The 5.4.12 release notes say: “Don’t update directly from a version lower than 4.4 it is important that you first update to 4.4 and then update to 5.x”. So a Joomla 4 site goes to 4.4 first and then to 5.4.12. Joomla 6.2.2 is for sites already on Joomla 6.

Joomla 3 is in the affected range, which starts at 1.5.0, and Joomla has released no fix for it. The only thing Joomla offers a Joomla 3 site is the workaround: change the cache handler away from File if the server offers another.

For the wider picture, joomla3security.com has a page on Joomla 3 core vulnerabilities and one on the options for a Joomla 3 site: stay, patch or migrate.

How mySites.guru Helps

The slow part of a release like Joomla 6.2.2 and 5.4.12 is working out which sites still need it. The mySites.guru dashboard shows the Joomla version of every connected site and flags the ones on an out-of-date Joomla core, so you can see which sites are still below 5.4.12 or 6.2.2.

You can update Joomla sites in bulk rather than logging in to each one. We also email affected customers about security releases like this one.

If you look after more than a handful of sites, see how we manage multiple Joomla sites, or run a free audit on one site first.

Timeline

  1. Joomla 5.4.11 and 6.2.1 are released

    The previous security release, with 58 fixes, four of them ranked Critical.

  2. The file cache flaw is reported

    The Reported Date on advisory 20261201, reported by Nicolas Markitanis.

  3. Joomla announces a release for 1 December

    A day's notice, rating the issue critical impact, moderate probability.

  4. Joomla 5.4.12 and 6.2.2 are released

    Both were tagged on GitHub at 16:00 UTC.

  5. Advisory 20261201 and this post are published

    The advisory names Nicolas Markitanis as the reporter.

  6. The CVE record is published

    The Joomla CNA published CVE-2026-133347 at 16:24 UTC, scoring it 9.4 Critical under CVSS 4.0.

Further Reading

Frequently Asked Questions

When were Joomla 6.2.2 and 5.4.12 released?
Both were released on 1 December 2026, tagged on GitHub at 16:00 UTC. Joomla had announced the release the day before, on 30 November 2026.
Which Joomla versions fix the file cache flaw?
Joomla 5.4.12 and Joomla 6.2.2. The advisory lists 1.5.0 to 5.4.11 and 6.0.0 to 6.2.1 as affected, so every earlier release in those ranges has the flaw.
Are Joomla 3 and Joomla 4 sites affected?
Yes. The affected range starts at 1.5.0, so both are in it. Joomla 4 is end of life and gets no fix of its own: a Joomla 4 site updates to 4.4 first and then to 5.4.12. Joomla released no fix for Joomla 3, so the only thing on offer there is changing the cache handler away from File if the server has another one.
Can I switch System Cache off instead of updating?
No. Joomla core writes to the cache store even when System Cache is off in Global Configuration, because its media version value is cached regardless of that setting. The workaround Joomla gives is to use a cache handler other than File. Updating is the fix.
Has the flaw been exploited?
Joomla has not reported any exploitation, and the issue is not in the CISA Known Exploited Vulnerabilities catalogue. The advisory rates the probability Moderate and the impact Critical.
What is the CVSS score for CVE-2026-133347?
9.4 Critical under CVSS 4.0, in the CVE record the Joomla CNA published on 1 December 2026. The vector, CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H, says the attacker needs a highly privileged account. Joomla's advisory separately rates the impact Critical and the severity Moderate.
EU icon: AI MODIFIEDWritten and edited by a human, with AI assistance. Our approach to AI

What our users say

Edwin Witlox
Edwin WitloxScorpion Computers & Software
★★★★★

Updating all my sites at once and monitoring everything and being on top of vulnerabilities. This saves me so much time. I love mySites.guru

Read more reviews
Peter Dowse
Peter DowseMarketeam, Brisbane
★★★★★

Saves time, saves money, saves websites from being hacked. What more could you ask for???

Read more reviews

Read all 313 reviews →

Get an email when the next post is published

Ready to Take Control?

One free audit of one site · no card · about 2 minutes to connect

Get Your Free Site Audit