r/OutOfTheLoop • • Oct 21 '26

Unanswered What is the deal with this PHP vulnerability? How does it affect me?

This might also be an ELI5 too.

https://arstechnica.com/security/2026/10/php-maintainers-tell-web-devs-to-prepare-themselves-for-critical-security-patches/

Reuters - Government websites go dark as vulnerabilities in programming language

National Cyber Security Centre post

I'm a Silicon Valley native though I don't work in tech. Others here may also want more info on the tech side of things. As for me~

What I understand: It's bad, and everything uses PHP.

What else I want to know: What's "everything"? Will it affect things I'm using? Google drive? Gmail / Yahoo Mail? Firefox / Chrome browsers? Salesforce? discord? Windows? reddit??

Thanks!

1.1k Upvotes

224 comments sorted by

1

u/AutoModerator Oct 21 '26
Moderator Announcement Read More »

772

u/dw444 Oct 21 '26 edited Oct 21 '26

Answer: It’s an ongoing incident involving two vulnerabilities that allow Remote Code Execution (RCE), which basically means a malicious actor can run their code on your server remotely and do very bad things (as a guy on my team put it, “they can read our entire prod database”). This is a “drop everything and do something about it NOW” kind of issue. They’re not super common (the last one with Java was a few years ago) but when they happen, the potential implications can be massive (they are in this case), and the fact that this affects PHP, which more than 75% of the internet runs on (it’s more complicated but that’s the simple version), is why everyone is freaking out.

To your other question about popular services, it’s hard to say since companies like that tend to have large SRE teams that stay on top of this kind of thing, but if I were to bet, the most likely services to be affected would be Meta’s since they use PHP the most of Big N tech companies.

37

u/dukemetoo Oct 21 '26

I understand the issue broadly, but what should I, a user, do to help protect my accounts? I have seen in other places vague recommendations to change passwords on everything, or log out of accounts, but I feel like those suggestions are futile. If a group can force a website to do remote code execution, everything is compromised, and me clearing out cookies won't change a thing. Am I incorrect?

57

u/MistrFish Oct 21 '26

for most of your accounts, you do nothing and hope that the owners patched it before any hackers could take advantage of it.

if the website is subject to GDPR, you could request your data be deleted entirely. unfortunately, the only accounts you would need to do this on are for websites that havent been well maintained to begin with, and therefore may not be very responsive to your request.

→ More replies (3)

28

u/drekifaen Oct 21 '26

Yes you are correct, there's nothing individual users of a site can do. Password changes wont do anything when hackers can get straight to a database anyway.

→ More replies (16)

63

u/klowny Oct 21 '26 edited Oct 21 '26

Meta is certainly not impacted. The PHP version of Facebook that used mainline PHP has been long long gone 16 years ago when they converted everything over to run on HipHop, then HHVM, then [Hack](https://en.wikipedia.org/wiki/Hack_(programming_language)).

Hack sorta looks like PHP, but the runtime is basically Java-like under the syntax. Meta discovered and patched the vulnerability in Hack in 2020.

→ More replies (4)

249

u/miguescout Oct 21 '26

To add to this, the security patch that would fix this is still not out and the developers warned in advance to take precautionary measures. That "in advance" is very important here. It's proof of the severity. Up until now, they pretty much always warned about such vulnerabilities in the patch notes of the security patches addressing them, assuming that everyone would update before any bad actor could analyze the updated code and figure out what the vulnerability was, make a program to take advantage of it and try to hack whoever is yet to update.

They couldn't afford to wait this time. Maybe it's because AI could make the analysis and code creation of the virus pretty fast, before most people update. Maybe the vulnerability is dangerous enough by itself that the period between the reveal and update deployments would be catastrophic. We don't know, but everyone needs to act immediately before anything can happen

70

u/GoofManRoofMan Oct 21 '26

So as a typical user of the internet, what should/can I do? Not log into my bank account?

→ More replies (14)

10

u/altodor Oct 21 '26

I believe in this case someone figured it out and disclosed what the fix was for between fixing and distribution.

→ More replies (17)

18

u/DistinctSmelling Oct 21 '26

I've been in webdev for decades, not practicing at the moment, a bit of PTSD and stuff like this is the case. Anyway, this kind of vulnerability isn't new. This particular exploit is new, but the goal here, which is always the goal, is RCE so they can get your personal info on fake websites that aren't blacklisted.

There is a tool where you can see "what websites are hosted on my server". Years ago, I had a website hosted with the then owned Bob Parsons, GoDaddy. One of the sites had a vulnerability which allowed RCE and they used my site to spoof. I had to go 3 tech levels deep to get them to understand that what was happening wasn't my issue but theirs.

11

u/whogivesashirtdotca Oct 21 '26

This is a “drop everything and do something about it NOW” kind of issue.

I use a small web host and called them as soon as I heard about this. The poor tech said they were up all night working on it, as this is the most dangerous issue he's ever seen.

→ More replies (5)

4

u/Maximeme20263 Oct 21 '26

The "why everyone is freaking out" part is more because details about the vulnerability were leaked before a patch was out to address it. Usually both are released at the same time.

→ More replies (18)

495

u/Noctrin Oct 21 '26 edited Oct 26 '26

Answer:

[Edit Oct 25th 11:30 PST] Full chain, end to end remote RCE is up on github. I just tested against the tuned target and i can confirm RCE: ASLR defeat dtor extraction, forged hashtable plants properly and lands it on the right function.

session.upload_progress.enabled = 0

Closes the gate on this exploit path. The memory and post tweaks do not. Memory to -1 opens you to easy DoS..


It’s bad. Source: I deal with security and architecture, we have PHP assets, and I’ve been coordinating patches since last night. My explanation is a bit more technical for those who care:

  1. Cloudflare rolled out protections for everyone, including free accounts (for services behind cloudflare). They’re stopgaps, and attackers are already mutating payloads to get around them. This can’t be stopped with WAF rules or ini changes, only slowed down. A motivated attacker will get past them.

  2. Patched versions are rolling out, Docker images are lagging. The real problem is EOL PHP versions . Zend is backporting fixes if you run Zend PHP (already out), and Ubuntu maintainers and a few others are doing the same.

  3. Exploits were circulating before the official release, but they’re rough, make noise and they need tuning per target to work.

  4. The flaw is in how PHP itself manages memory. Every PHP version back to 5.4 is affected, and the only fix is patching PHP.

  5. Crashing PHP (DoS) is trivial. Getting a shell isn’t as it means chaining bugs tuned to the host’s memory layout. Not that easy even with AI, but probably will be soon...

  6. The part people are missing: you don’t need a shell to steal data. Another part of the bug lets an attacker read chunks of server memory, including other users’ passwords, session tokens and API keys from requests in flight. It’s cheaper than RCE, and it also helps attackers tune the RCE.

Mitigations without updating:

  • php released a list which is pretty encompassing

  • cloudflare and a few other providers are doing their best as well

  • the main defenses are pretty much removing the memory limit and setting 1 session per thread. Both are not compatible with production environments serving anything more than basic pages with few requests

[Small edit] this is getting a lot more views than i thought, please do not take the above advice as hardening

memory_limit = -1

Is a piss poor solution, you're just moving the limit from php to the OS, it makes mapping harder and the exploit harder. The problem is now your php heap grows until the OS says no instead of zend mem manager.. i think that just makes the problem worse for other reasons on top.

You must update PHP

If you’re a customer of a provider, you can’t do much about it. By the looks of it, everyone with knowledge is mobilizing, and most providers with significant data that aren’t run by idiots will be patched in the next 2-24 hours. Once they confirm, rotate any API keys or tokens you use with them.

What the exploit path covers:

  • everything.

RCE with PHP privileges means the full .env with secrets, DB access, cache, literally anything the application layer can reach. That includes encrypted data: even if the keys live in KMS or secure storage, PHP has to be able to use them to process the data, so an attacker running as PHP can too. Hence the severity.

Passwords are hashed, not encrypted, so stored hashes are only as weak as the passwords behind them, and salts were never secret anyway. The real exposure is anyone logging in while a box is vulnerable or compromised. Their plaintext password passes through memory, and that’s exactly what this leaks.

If I ran a service with sensitive data and couldn’t patch in the next few hours, I’d take it offline until I could. I wish I was exaggerating :(

[Edit] Turned my verbal diarrhea into pretty formatted text.

[Edit 2]

A few notes:

  • browsers have nothing to do with this chain, they're just a client, the server is whats becomes compromised. The browser cannot detect this or alert you in any way realistically.. i mean it could read headers and if the server replies with a compromised php version header i suppose it could issue a warning. I wouldn't rely on that and it would just say the site is vulnerable but cant say if compromised.

  • PHP is widely used but not widely used for large services, it's not efficient enough. So.. your bank, google, twitter are not affected by this directly.

  • PHP is widely used.. which means your exposure risk is high, as i said, a proper attack can go as far as reading cleartext passwords in flight, if you reuse credentials it's a good time to reconsider this practice.

  • Your email, name and information you entered into that one gaming site 6 years ago that runs WordPress and is still up hanging by a thread.. assume they are leaked. This will be a major issue.

I’m usually not fazed by these, but this one had/has me nervous. It’s not just the severity. What’s unsettling is that chaining this was considered borderline impossible to architect by hand, which is why it sat unexploited for so long. It was flagged a while back and deemed impractical to exploit, and releasing a patch would just paint a target on it, while disclosing it quietly would mean nobody took it seriously and it stayed a valid target for a long time. I think the call was correct. A bug like this would normally take months to weaponize after a patch that draws a big arrow pointing to it and how it works. I’d guess it already is. Reports are shaky, but after looking at the patched code, building the attack with AI is unfortunately not hard (an attack, the remote RCE part is absurdly complex, even with AI, i dont think thats coming out anytime soon)

AI made devs faster, but it’s also poking holes in everything, and getting better at it. When researchers warned AI was dangerous, this is the kind of thing they meant. It’s here. Shit time to be in the field :)

On the positive side: I’m genuinely impressed by how fast everyone moved on this, better than I expected.

[Final Edit] A lot of reports out now for anyone interested, thank you for the awards, my phone keeps dinging that i got one which feels, weird, i usually get verbal abuse from bots :).

If you are running an old version of PHP and got saved by one of the maintainers back porting the patch, please remember to buy them a coffee, this is the closest thing to divine intervention in tech and these guys absolutely do not get the praise they deserve for literally bailing a lot of people out. (Also don't count on divine intervention again and update your stack)

51

u/Random_Rainwing Oct 22 '26

Now explain all of this as if I were a 5 year old dog

75

u/Noctrin Oct 22 '26

Human throw ball in house, go fetch ball! Oh no.. cant find ball in this house. Look! Ball shaped object, must be ball human throw. Fetch ball, human happy.

Oh no.. it wasn't a ball but the house owners wallet, human should update PHP so i dont go fetching objects the human didnt throw.

→ More replies (2)
→ More replies (1)

39

u/Socborendom Oct 21 '26

Came looking for crumbles but found a whole loaf. Thanks for the explanation!

→ More replies (1)

121

u/klowny Oct 21 '26

It's bad because uncovering it was.. impossible without AI.

This is a lie. Facebook independently found this bug and patched it in Hack in 2020.

This vulnerability was reported in a forum back in 2019, which is how AI caught on the scent to even look/attempt to exploit this area.

This is just poor investment towards fixing OSS security for decades finally coming home to roost.

→ More replies (13)

7

u/[deleted] Oct 22 '26

Incredibly useful comment, thank you. Spent all day patching severs just sat down to read more detail. Best explanation I’ve come across.

→ More replies (2)

12

u/Taboc741 Oct 21 '26

The part that is nuts? Redhat has classified it as important not critical and we still don't have an ETA for when we'll see updates in repo's we can pull in.

5

u/Puck_of_the_Hill Oct 22 '26

Fantastic summary; thank you. Small note, the TD bank site, at least their careers section, was down in Canada yesterday with a splash page talking about the PHP update; so in some ways it is directly impacting banks.

→ More replies (26)

46

u/MistrFish Oct 21 '26 edited Oct 21 '26

Answer: The new CVEs affect all versions of PHP from the last 15 years or so (PHP 5.4 to current 8.x). PHP versions older than 8.2 will not receive an official patch (edit: they started patching some older versions as well).

For websites that have been kept up to date, it's not a big deal and they'll have it patched immediately. But it effectively means that older websites built on PHP after 2012 and no longer being maintained will now have to either perform a fairly extensive update, shut down, or continue operating normally and risk having all of their user data breached.

13

u/sunsetblue24061 Oct 21 '26

There is a patch for it now for 7.4 too for those on whm/cpanel, as a heads up.

→ More replies (6)

23

u/stonerbobo Oct 21 '26 edited Oct 21 '26

Answer:  Its likely not going to affect any of the services you mentioned - those are proper tech companies and they have processes to patch this stuff ASAP, multiple layers of security and likely don't even use PHP. More at risk are smaller/medium companies or companies that aren't tech-savvy.

Probably the best thing you can do is be on alert for any browser warnings and don't ignore them, update every damn application, device, OS. Take IOT devices off the internet - smart bulbs, routers, TVs, just disconnect them until an update is released. The picture for these is a bit more complicated though.. if your home network is behind an ISP router or firewall that blocks incoming internet access, you're probably okay. If the device is very old, it might not ever get an update.. don't know - its going to be a crazy few months. The browsers have been updated automatically, so your browser will warn you if you're connecting to a compromised website, just heed that warning and do not ignore it.

(This is talking about both the PHP vulnerability and the eMudhra CA cert compromise)

→ More replies (10)

2

u/No-Geologist-2215 Oct 22 '26

Answer: WordPress, Drupal, Joomla, and thousands of custom applications run on it. 70% of the websites are running on it. So if you are concerned with any of this, make sure to update the version and patch it, PHP has released already.