You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

Almost done. Check your inbox and press the button in our email to confirm. Close

We could not check that you are a person. Please try again. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode The PHP bug that leaked before its fix: how php2shell attacks began on day one

php2shell: the PHP vulnerability that shook the web in 2026

Patching php2shell: why some websites switched off instead of waiting

The fix for php2shell was free, and it was ready in one day. Still, governments chose to switch off their own websites. Updating PHP was harder than it sounds.

  1. 1 Miva reaches your server at last. She puts the new version of PHP on its disk. A fix like this is called a patch.

    Miva reaches your server at last. She puts the new version of PHP on its disk. A fix like this is called a patch.

  2. 2 But the workers that are already running do not read the disk again. They keep the old PHP in memory, with the bug inside.

    But the workers that are already running do not read the disk again. They keep the old PHP in memory, with the bug inside.

  3. 3 So Miva restarts them. Fresh workers start with the new PHP and an empty memory. Only now is your blog safe from php2shell.

    So Miva restarts them. Fresh workers start with the new PHP and an empty memory. Only now is your blog safe from php2shell.

  4. 4 Many servers had it worse. PHP 8.1 and older versions get no fixes any more: they are past their end of life. No new official version came for them.

    Many servers had it worse. PHP 8.1 and older versions get no fixes any more: they are past their end of life. No new official version came for them.

  5. 5 There was no option to turn off that fully blocked the attack. So some owners did not wait. A website that is switched off cannot be attacked. That is why the cyber security centres switched off their own.

    There was no option to turn off that fully blocked the attack. So some owners did not wait. A website that is switched off cannot be attacked. That is why the cyber security centres switched off their own.

  6. 6 Your blog is safe again. php2shell was one way in, through a bug that nobody had fixed yet. How many other ways in do attackers try, every day, on every small website?

    Your blog is safe again. php2shell was one way in, through a bug that nobody had fixed yet. How many other ways in do attackers try, every day, on every small website?

  7. Go further

    Two things worth knowing.

    Two things worth knowing.

You finished the comic Back to the comic

Share this comic

More comics