r/PHP • • 12h ago

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix two critical vulnerabilities that can allow unauthenticated remote code execution. All PHP users are strongly encouraged to update immediately.

776 Upvotes

More information here: https://www.php.net/archive/2026.php#2026-10-21-5

This is brutal:

PHP 8.1 and older no longer receive updates from the PHP project. Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version.


r/PHP • • 2d ago

Weekly help thread

7 Upvotes

Hey there!

This subreddit isn't meant for help threads, though there's one exception to the rule: in this thread you can ask anything you want PHP related, someone will probably be able to help you out!


r/PHP • • 6h ago

Hats off to Ondřej Surý

708 Upvotes

I found out about this at 2 am. I'm a sole maintainer, have a full schedule today, and the fix couldn’t wait. Ubuntu servers. I had everything updated by 3 am.

Ondřej will save the internet today.

I’ve got one legacy website running on a system that needs PHP 7.4. It’s not a situation I’ve been comfortable with for a while, but some constraints are what they are. The fact that Ondřej’s repositories had security updates backported all the way to PHP 7.4 absolutely saved my ass.

What a fucking hero.


r/PHP • • 6h ago

Sponsor Ondřej Surý

202 Upvotes

Service Reminder: Don't forget to sponsor Ondřej Surý for his great work on PHP packaging. Hours before FrankenPHP, he was ready.

It even seems that he backported the patch to some old PHP versions – i saw a change in the php 5.6 (!) packages.

Ondřej, if you read this: Thank you so much.


r/PHP • • 8h ago

Todays drama showed how important PHP is

195 Upvotes

From government websites around the world to banks, schools, social media, video game companies, news organizations. They either shut down or made statements about getting the patch. Edit: even the prime minister of Japan made an official statement about this incident. Crazy stuff

if php was truly dead this vulnerability would have gone mostly unnoticed but everyone is talking about it. Even people that are not programmers.

”PHP is dead. How even uses php in 2026”, well like half the internet.


r/PHP • • 11h ago

Today's PHP Security Release, and How We're Strengthening PHP Security

Thumbnail thephp.foundation
306 Upvotes

We have posted more information about today's security releases, including the sequence of events that led to the discovery, how the PHP security team is improving their processes, and what we need from you to continue this critical work.


r/PHP • • 4h ago

PHP2Shell is already being exploited: probing started 5.5h before 8.2.35/8.3.36/8.4.27/8.5.12 shipped, patch now

Thumbnail ellio.tech
52 Upvotes

r/PHP • • 11h ago

Is it just me, or is it taking a concerning amount of time for the docker php updates to build and publish?

94 Upvotes

For what is looking like ‘the worst set of vulns in history’, I find it a bit baffling that the docker builds are still in progress - an hour after the patches have been released. Seemingly all because we’re all waiting on GitHub actions… I bet half of us here have a pc and internet connection that could have built and pushed the containers 45 minutes ago


r/PHP • • 5h ago

New PHP CVE discovered ?

32 Upvotes

Hello,

Apparently 8.5.12 still has a new CVE that the user has apparently reported.

https://mastodon.gougere.fr/@elise@katze.sh/117479383706597320

Nothing confirmed, but maybe ?

EDIT : IluTov answered just below.
https://www.reddit.com/r/PHP/comments/1xbyxd2/comment/19rga18s433qd/?utm_source=share&utm_medium=web3x&utm_name=web3xcss&utm_term=1&utm_content=share_button


r/PHP • • 10h ago

News php 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 are out for CVE-2026-109618 and 109619. things to check besides just updating

67 Upvotes

patches landed today at 14:00 utc. php.net says every php install serving web requests is affected (fpm, mod_php, php-cgi, frankenphp, litespeed). mod_php is the worst case because it can be hit before any app code runs.

easy to miss:
- docker: updating php on the host does nothing for your containers. pull or rebuild the image and check with docker exec <container> php -v
- make sure php-fpm really restarted after the update, old workers keep the old code
- 8.1 and older get nothing upstream. distro or lts backports, or the PHP-8.1-CVE-2026-109618-109619 branch in php-src if you build yourself
- remi repo has no update today (php.net says it), use distro packages or build from source
- outside check: curl -sI https://yoursite | grep -i x-powered-by. a lot of sites still send the php version even behind cloudflare. found one of mine this way

if you cant update right now (php.net: this reduces risk, it is not a fix):
- session.upload_progress.enabled=0 in php.ini or the fpm pool, then restart all workers. ini_set or .user.ini does not count
- memory_limit=-1 via php_admin_value, plus a low post_max_size (8M, or 32M if you need uploads)
- on 8.5 also fatal_error_backtraces=0

cloudflare says its waf blocks known payloads by default since 03:02 utc, free plan too. but they also say attackers already mutate the payload, so dont treat it as the fix.

sources: php.net/archive/2026.php and blog.cloudflare.com/php-vulnerabilities-waf-protection


r/PHP • • 12h ago

This pull request on Github will go down in history

77 Upvotes

r/PHP • • 9h ago

Article Gallery of PHP maintenance pages from today

Thumbnail r74n.com
45 Upvotes

r/PHP • • 9h ago

Docker images updated. Great. Now... PECL is down, and it's not an easy replacement to go PECL -> PIE right now. When is PECL coming back up ?!

33 Upvotes

I'm getting beautiful 500 errors :)

Could not download from "https://pecl.php.net/get/memcached-3.4.0.tgz", cannot download "pecl/memcached" (File https://pecl.php.net:443/get/memcached-3.4.0.tgz not valid (received: HTTP/1.1 500 Internal Server Error))
Error: cannot download "pecl/memcached"


r/PHP • • 9h ago

Discussion Please confirm if fixed

Thumbnail fedi.katze.sh
31 Upvotes

This has been floating around the hosting groups. Can someone please confirm if this is real?


r/PHP • • 5h ago

Meta And now you get this XKCD comic

Thumbnail xkcd.com
14 Upvotes

r/PHP • • 9h ago

After patching, how to validate?

29 Upvotes

Other than just applying the patch and restarting apps, is there a way to test whether the CVEs have been truly mitigated?

I trust the PHP.net team but my non-technical boss wants further validation to prove to our customers that we're well and truly covered.


r/PHP • • 7h ago

CloudLinux Alt-PHP: Why are older PHP versions being patched before PHP 8.2–8.5?

19 Upvotes

I'm genuinely confused by CloudLinux's patch rollout for today's critical PHP vulnerabilities (CVE-2026-109618 and CVE-2026-109619).

According to their status page, patches for older PHP versions such as 7.4 and 8.0 are being released across multiple distributions, while I'm still waiting to see updates for PHP 8.2–8.5.

The official PHP security releases have been available since 14:00 UTC, and cPanel has already released its EA-PHP patches.

I understand that CloudLinux needs to test its packages and backport fixes to older PHP versions, which I appreciate. However, shouldn't currently supported PHP versions be prioritized for critical security vulnerabilities?

Is there a technical reason for this release order?


r/PHP • • 3h ago

Unofficial Windows binaries of PHP 7.4, 8.0 and 8.1 with the PHP2Shell fixes (CVE-2026-109618/109619)

9 Upvotes

php.net announced that the PHP security team published minimal source backports of the PHP2Shell fixes for the end-of-life branches 7.4, 8.0 and 8.1, for people who build from source. There are no official Windows binaries for them, so I built them: https://github.com/Jamalofski/php-eol-security

- Sources: only the upstream backport commits (last official release plus the fix), no other code change.

- Build: the official php/php-windows-builder, with the toolchains (vc15/vs16), configure flags and dependencies of the official builds; x64/x86, TS/NTS.

- Versions: 7.4.33-pl1, 8.0.30-pl1 and 8.1.34-pl1, with SHA256SUMS and a link to the CI run of each build.

These are not official PHP Group binaries. Upgrading to a supported version remains the real fix; this is for setups that cannot move yet.


r/PHP • • 7h ago

How do we scan to see if an attacker got in before we could take down websites?

12 Upvotes

I ended up just disabling php fpm on my hosts when I read the news, but there was a massive 11-12h window where everything was just open to be attacked.

How do I scan my system to make sure nobody did anything? What am I looking for?


r/PHP • • 1d ago

News Upcoming Critical PHP Security Release

Thumbnail php.net
648 Upvotes

r/PHP • • 10h ago

What the PHP2Shell rumors got wrong, from inside the PHP security team

Thumbnail daubois.dev
16 Upvotes

r/PHP • • 9h ago

WAF Release - 2026-10-21 - Emergency - Cloudflare Managed Ruleset

Thumbnail developers.cloudflare.com
14 Upvotes

If you use Cloudflare, you can activate these rules to mitigate until patched.


r/PHP • • 8h ago

Anyone tackled PHP5.6 or PHP7.4 yet?

9 Upvotes

If so, how'd you get on?


r/PHP • • 4h ago

I made a GitHub Action that fails the build if your project still pins a PHP version without the PHP2Shell fix

4 Upvotes

Since PHP2Shell is in PHP itself, composer update doesn't touch it, and the vulnerable version tends to hide in places nobody looks: the Docker base image, config.platform.php in composer.json, a .php-version file, or the setup-php version in CI.

So I put together a small Action that checks all of those plus the runner's PHP, and annotates the exact line in the pull request:

- uses: KyleClouthier/php2shell-action@v1

It errors on unfixed versions (fixed releases are 8.5.12, 8.4.27, 8.3.36, 8.2.35), errors on 8.1 and older since they got no release, and only warns for floating tags like php:8.4-apache and for old versions in a test matrix, since testing on old PHP is fine.

It's on the GitHub Marketplace: https://github.com/marketplace/actions/php2shell-check (source: https://github.com/KyleClouthier/php2shell-action)

Feedback welcome, especially places you've seen PHP versions pinned that it doesn't check yet.


r/PHP • • 18h ago

pecl.php.net is down

57 Upvotes

Probably it's down because of the vulnerabilities discovered lately?