Pular para o conteúdo
← Back to Skalablog

Published article

PHP 8.4 Bug Timeline: What Really Happened

Software Engineering

The PHP 8.4 bug timeline runs from a German-funded audit in 2024 through AI-assisted reproduction in August 2026 to an emergency patch after three leaks. PHP contributor Derick Rethans says the allocator flaw was hard to fix well, that the coordinated release was pulled a day forward, and that users of supported branches should upgrade now.

What the PHP 8.4 bug timeline actually shows

The PHP 8.4 bug timeline runs from a German-funded audit in 2024, which hinted at a memory allocator problem, to an August 2026 reproduction that proved exploitability, and finally a coordinated security release pulled forward by leaks. The patch itself landed in October 2026. In an interview published on 23 October 2026, PHP internals contributor Derick Rethans said the flaw sat unresolved because a fix that did not harm extensions was hard to write.

Rethans is a PHP Foundation member and a long-standing internals contributor. He described the process as normal software development under unusual pressure, with a small security team absorbing a wave of AI-generated bug reports at the same time.

The headline point is not that PHP hid a known exploit. The project knew something could go wrong under certain memory conditions but could not yet say whether it was exploitable. That distinction disappeared once the reproduction arrived.

2024 audit vs August 2026: when was the flaw reported?

Reports conflict because two different events are being described. In 2024, an audit funded by the German government flagged a possible problem in the memory allocator. In August 2026, three organizations independently reproduced a same or very similar issue and demonstrated that it was exploitable in defined circumstances.

The 2024 audit did not establish exploitability. Rethans said the project knew something could potentially fail under certain conditions but lacked enough evidence to make a statement. A hint is not a proof of concept, and the gap between the two is where most of the confusing reporting sits.

The August 2026 work came through the PHP security ecosystem, which put the researchers in touch with the relevant people. Their report included a reproduction path, which is what changed the status from suspected to confirmed.

Why AI-assisted bug hunting mattered here

Three separate organizations used AI models to hunt for bugs in PHP and found the same or a very similar allocator issue independently. Derick Rethans said the PHP security team has grown as AI tooling accelerates vulnerability discovery. That growth is a response to volume, not a claim that AI solved the problem alone.

The useful output was a reproducible report, including how to trigger the flaw. A reproduction turns a suspicion into a decision, because maintainers can verify it, size the risk, and start talking to distribution partners.

Rethans also pushed back on how the story was framed in the press. He called some UK coverage overblown, particularly the idea that AI was suddenly finding everything. In this case, he said, the findings were real and confirmed, but the alarm was broader than the specific case justified.

Why the fix took two years to write

The patch was hard because the failure lives in the memory allocator and appears when memory runs out. Rethans described a fix as far from trivial, and one that had to avoid breaking extensions. A patch that works in isolation but disturbs the wider ecosystem is not a fix you can ship to millions of deployments.

He also pointed to capacity. The security team is small, even after growing, and cannot prioritise every open question at once. Time spent on a problem of unknown severity competes with releases, reviews, and ordinary maintenance, most of which is done by volunteers.

That is an explanation of constraints, not an excuse for delay. The project had a suspected flaw in 2024 and a confirmed exploitable one in 2026, and the interval is a real cost of underfunded maintenance.

Who leaked the PHP security advisory?

Rethans described three separate information leaks before the coordinated release. The first came from a person who posted on Hacker News without knowing an embargo existed, and who later apologised. The second involved the group that made an exploit website and published a video of it, withholding the technical details.

The third is the one he criticised most sharply. He said an organisation decided on its own to publish its builds to its customers while claiming it knew the vulnerability was being exploited live. Rethans said he has not seen substantiated evidence for that claim, and referred to a long LinkedIn post by Niels Aderman questioning it.

His view that the organisation should probably be removed from the private notification list is explicitly labelled as his own opinion, not the PHP Foundation's position. Keep that boundary when repeating it.

Embargo, backports and who should upgrade

PHP makes releases for supported branches, and Rethans named 8.2 through 8.5 in the October 2026 interview. The project backported some fixes to older branches, but users on those branches have to compile the result themselves. Third-party vendors offer long-term support builds for much older releases, including PHP 5-era code.

The practical recommendation is to upgrade to a supported version, because an already-current installation can take a security release quickly. Reaching that state from an untested legacy codebase takes longer, which is exactly why starting early matters.

Rethans said he took the Xdebug website offline briefly as a precaution, knowing that Debian packages would let him update in minutes. Organisations that do not know where their PHP servers run, or what version they run, face a much harder decision about whether to take systems down while they patch.

Two different claims that get merged

There are two distinct things to compare. One is the bug itself: a memory allocator failure under low-memory conditions, present in the code for a long period and confirmed exploitable in August 2026. The other is the coordination process: an embargo, a set of partner notifications, and a release date.

Confusion between them produces bad headlines. A late patch does not prove the maintainers sat on an exploit, and an early leak does not mean the vulnerability was public knowledge before August 2026.

Funding the people who maintain PHP

Rethans asked developers to take the case to their employers and argue for funding the open source they depend on. He put the PHP Foundation's budget in the region of a few hundred thousand pounds a year, a figure he gave loosely in conversation and which should be checked against the foundation's published accounts before quoting.

His argument is about time, not gratitude. Paid maintainers get hours to write careful patches, review contributions, and respond to reports, which is what the allocator fix required.

He also named Rémy and Ondřej Surý in connection with Debian and RPM packaging, and said the incident should lead to more support for that work. Single unpaid developers are no longer a realistic defence for software that large organisations run in production.

FAQ

  • Was the PHP vulnerability known since 2024? A 2024 government-funded audit flagged a possible memory allocator problem, but exploitability was not established. The flaw was independently reproduced as exploitable in August 2026, which is when it became a confirmed security issue.
  • Why was the PHP security release moved earlier? Derick Rethans said three separate leaks preceded the coordinated release, one of which led the project to move the date forward by a day. Docker images appeared later than the project would have liked as a result.
  • Can I stay on an old PHP version? The project makes releases for supported branches. Backports exist for some older branches, but you compile them yourself, and third-party vendors sell long-term support for very old releases. Upgrading to a supported version is the path that makes future security releases quick.
  • Did AI find the PHP vulnerability? Three organisations used AI models to search PHP for bugs and independently found the same or a similar allocator issue in August 2026. The confirmable result was a working reproduction, which is what turned suspicion into a confirmed vulnerability.
  • Should a business take its PHP site offline to patch? That is an organisational decision, not a PHP recommendation. Rethans said taking systems down can be sensible when you do not know which versions or servers you run, and unnecessary when a package upgrade takes minutes.

Source video