Independent hosting research · no paid rankings

Desk checked

Data Centers & Routes

We protected more than 6 million websites from Hypertext Preprocessor code-to-shell attacks.

Published: Last checked:

OVHcloud patched unsupported PHP versions to block code-to-shell attacks, protecting 6 million websites and highlighting fleet-wide hosting security.

OVHcloud's response to CVE-2026-109618 and CVE-2026-109619 shows that a PHP security incident on shared hosting is not only an engine problem. It is also a fleet-management problem. The platform contains around 5,000 servers in Europe and Canada, hosts more than 6 million websites, and lets customers choose PHP versions from 5.3 to 8.5. Because more than half of those versions no longer receive fixes from the PHP project, OVHcloud had to protect older PHP versions itself. Its stated timeline is notable: four days separated the pre-announcement from packages ready for fifteen PHP versions, eight of them with no official support.

Core Judgment

The main risk came from a narrow PHP behaviour: what happens when a request exceeds the memory limit. The two CVEs exploit the same underlying mechanism. CVE-2026-109618 occurs when PHP is still preparing a request and the memory limit is exceeded, leaving memory in an inconsistent state during cleanup. CVE-2026-109619 occurs when cleanup between requests is incomplete, allowing leftovers from a previous visit to be read by the next one.

For a dedicated server, the impact is usually limited because only a small number of sites share the machine. On shared hosting, the same PHP version may power many sites at once. Customers do not control the PHP engine, so the hosting provider must fix the engine quickly and everywhere. That makes the incident less about one vulnerable application and more about platform-wide runtime maintenance.

How the PHP Memory-Limit Bug Works

PHP handles each HTTP request in a process that runs requests one after another. When a script exceeds its memory limit, PHP jumps abruptly to the end of the request, then cleans up before moving on to the next one.

The source describes two specific failure paths.

CVEConditionTechnical effectAttack path
CVE-2026-109618A script exceeds the memory limit while PHP is still preparing the requestPHP starts cleaning data that is only half ready, leaving memory in an inconsistent stateAn attacker can trigger the moment by submitting a form with a file size calculated for that purpose
CVE-2026-109619Cleanup between visits is incompleteLeftovers from the previous visit can be read by the next oneFile upload progress tracking, `session.upload_progress`, is described as the easiest entry point because it reads session data before the site has started

Combined, the two flaws can, under certain conditions, allow arbitrary code to run in the context of the targeted site without credentials. The source does not provide exploit code, full technical details, or independent validation, so the risk should be read as a platform-level exposure rather than a universal guarantee that every site was compromised.

The Shared-Hosting Pressure Point

OVHcloud's platform has around 5,000 servers in Europe and Canada, hosting more than 6 million websites. Customers may choose PHP versions from 5.3 to 8.5. That freedom keeps older sites running, but it also means many sites use versions that no longer receive fixes from the PHP project.

The official fix for maintained versions runs to nearly 3,000 lines and reworks how memory overruns are handled at the heart of the engine. OVHcloud says it cannot be applied as is to PHP 5.6 or 7.2. For PHP 7.4, 8.0, and 8.1, which normally no longer receive fixes, the PHP project released a minimal out-of-cycle mitigation. For earlier versions, nothing exists, so OVHcloud had to produce its own backported mitigation.

This is the operational tension: a host can either force customers onto supported versions, which may break legacy sites, or maintain unsupported versions under pressure. OVHcloud chose the latter, but the source also warns that maintained versions receive fixes within hours, while end-of-life versions require painstaking work for every vulnerability.

OVHcloud's Five-Layer Response

The company describes its approach as "defence in depth". The first layer stops attacks at the platform entry point. Later layers fix PHP itself.

1. Detect Attack Attempts Before the Official Fix

The official fixed versions were released on 21 October at 4 pm. Until then, sites needed protection without delay. OVHcloud placed its web servers behind a web application firewall built with the open-source tools OpenResty and NAXSI. Every visit passes through this filter before reaching a site.

Once the PHP project pre-announced the fixes, the firewall was taught to recognise signs of the attack. These included a specific form field that activates file upload progress tracking, certain user agents, and typical request content. A second rule blocked bots scanning the web for vulnerable sites.

The rule first ran in observation mode, flagging relevant requests without blocking them. This was cautious because the same form field can be legitimate, such as on sites that display a progress bar while a file uploads. Blocking it outright could have broken those sites. Observation allowed OVHcloud to measure affected sites while staying ready to block.

2. Apply Official Fixes as Soon as They Are Released

On 21 October at 4 pm, the PHP project published its security advisories and official fixed versions: 8.2.35, 8.3.36, 8.4.27, and 8.5.12.

For PHP 8.2 to 8.5, which the PHP project still maintains, the official fix is included in these versions. OVHcloud took them as released and compiled them for its platform. They then went through the same tests and gradual rollout as the other versions.

For PHP 7.4, 8.0, and 8.1, the PHP project released a minimal mitigation outside its usual schedule. OVHcloud says it integrated the mitigation into its packages within hours.

3. Backport the Fix to PHP 5.3 to 7.3

For PHP 5.3 to 7.3, which have reached end of life, the PHP project no longer releases fixes. OVHcloud backported the fix itself, adapting the newer mitigation to older engines. The source describes this as the most delicate part because the PHP engine changed a lot since those versions.

Two major adjustments were made.

First, upload progress tracking can no longer run code before the script starts. The official mitigation simply disables the feature. OVHcloud chose to keep it because hosted applications use it, but to harden it. The session is decoded in a mode where no class is resolved, and neither autoloaders nor magic methods run. The data is rewritten byte for byte. If decoding fails, the session is left intact rather than destroyed. This is a deliberate departure from the official fix, intended so that a visitor is never logged out.

Second, a memory overrun no longer lets the process continue in a corrupted state. The worker process ends immediately, and the process manager starts a fresh one. The "Allowed memory size exhausted" message remains visible in error logs and on the page in development mode. Many developers rely on that message, and the official mitigation would have removed it.

Additional hardening measures include limits on the headers accepted in a multipart body, strict enforcement of `post_max_size` while reading, and a systematic reset of the internal state between two requests.

4. Review Together and Test

A poorly written security fix can break sites or create a new vulnerability. Before release, each version was compiled and run through PHP project automated test suites for relevant areas: sessions, serialisation, and the engine core. OVHcloud also added non-regression tests written for the occasion to check that behaviour before the fix still worked after it.

Automated tests did not cover everything. Each backport went through a cross code review. These reviews uncovered two defects that had slipped past the test suites, both fixed before release:

  • Some complex data stored in a visitor's session, described as an SPL container, could be rewritten incorrectly.
  • In one particular error case, the hardened protection stayed active for the rest of the script when it should only have applied while the session was being read.

OVHcloud also compared its work with the Debian and Ubuntu communities, which maintain older PHP versions for their users. The source says their choices were similar, supporting OVHcloud's approach.

5. Roll Out Gradually

Rather than updating all servers at once, OVHcloud moved in stages. New PHP versions were delivered as packages and first installed on pre-production clusters, which are groups of servers used for testing before production. They only reached production once validated.

On each updated server, a check confirmed two things: the fix was present in the installed PHP program, and PHP responded as expected to a file upload and a memory overrun. Problems were meant to be caught before reaching all sites. For customers on OVHcloud shared hosting, the source says no update or restart is needed, and the automatic rollout is now complete across the entire platform.

What Site Owners Should Notice

For the vast majority of sites, the source says nothing visible changes. Two behaviours do change, and they matter to PHP developers.

AreaBeforeAfter the fixPractical note
Memory limit exceededScript could stop with certain shutdown and cleanup behaviour still runningScript stops deadError message remains, but `register_shutdown_function` callbacks are not executed, object destructors are not called, and output buffer content is lost
Upload progress trackingCould expose the vulnerable cleanup pathHardened for older PHP versionsThe progress bar keeps working. If a session cannot be decoded, progress is not recorded and the visitor's session is kept

If an application relies on shutdown functions or destructors to log errors or clean up resources after a memory-limit error, this is a point to check. The source frames this as the trade-off for protection on this path.

Risks and Limitations

The source does not claim that every site was under attack, nor does it provide a full public exploit analysis. It describes mitigations and a rollout, not confirmed compromise. That distinction matters.

Three limitations remain visible from the facts:

  • End-of-life PHP versions still require manual work for each vulnerability. OVHcloud says it will keep protecting them, but maintained versions receive fixes within hours, while end-of-life versions do not.
  • The backport changes runtime behaviour. Applications that depend on cleanup during memory exhaustion may need adjustment.
  • Shared hosting places the burden on the provider because customers do not control the PHP engine. The incident shows how a single engine-level flaw can become a large operational task across a platform hosting more than 6 million websites.

FAQ

Do customers need to restart their sites?

For OVHcloud shared hosting, the source says customers do not need to update or restart anything. The automatic rollout is described as complete across the entire platform.

Are PHP 5.3 to 7.3 still safe?

The source says OVHcloud backported its own mitigation because the PHP project no longer releases fixes for those versions. It also warns that older versions require painstaking work for every vulnerability, and that customers can switch versions from the Control Panel.

Does upload progress tracking still work?

Yes. The source says the upload progress bar keeps working. In rare cases where a session cannot be decoded, progress is not recorded, and the visitor's session is kept.

What should developers check first?

Check code that depends on `register_shutdown_function`, object destructors, or output buffer content when `memory_limit` is exceeded. Also review use of `session.upload_progress` and file-upload flows.

Source and Last Updated

Source: OVHcloud incident note and the PHP version facts provided in the source text, including CVE-2026-109618, CVE-2026-109619, the 21 October 4 pm release of 8.2.35, 8.3.36, 8.4.27, and 8.5.12, and the stated platform scale of around 5,000 servers and more than 6 million websites.

Last updated: 21 October

Spec tagsOVHcloudPHP SecurityShared HostingCVE MitigationCode-to-Shell

Reader notes 0

  • No notes yet. Corrections and first-hand test results are welcome.