Kurz gesagt
Seit dem 21. Oktober 2026 sind PHP 8.5.12, 8.4.27, 8.3.36 und 8.2.35 verfügbar. Sie schliessen zwei kritische Lücken (CVE-2026-109618 und CVE-2026-109619, CVSS 9,2), über die Angreifer ohne Anmeldung Code auf dem Webserver ausführen können. Erste Angriffe wurden bereits beobachtet. Aktualisieren Sie PHP jetzt, starten Sie danach alle PHP-Dienste neu und lassen Sie sich von Ihrem Hosting-Anbieter bestätigen, dass das Update eingespielt ist.
Gestern hat das PHP-Sicherheitsteam das Update angekündigt (siehe unseren Beitrag vom 20. Oktober). Heute ist es erschienen, zusammen mit den technischen Details. Die Lage ist ernst. Mit einem raschen Update ist sie aber gut beherrschbar.
Die beiden Lücken
CVE-2026-109618, Codeausführung über Speicherfehler. Geht PHP während einer Anfrage der Arbeitsspeicher aus, bricht es die Verarbeitung ab. Das kann in einem Moment geschehen, in dem interne Daten erst teilweise angelegt sind, etwa beim Einlesen eines Formulars mit Datei-Upload. Beim anschliessenden Aufräumen behandelt PHP diese unvollständigen Daten als gültig. Ein Angreifer kann das mit einer präparierten Anfrage gezielt herbeiführen.
CVE-2026-109619, Codeausführung über veralteten Zustand. Ein PHP-Prozess bearbeitet nacheinander viele Anfragen. Nach einem Fehler kann interner Zustand einer Anfrage erhalten bleiben, obwohl der zugehörige Speicher schon freigegeben ist. Die nächste Anfrage im selben Prozess greift dann auf diesen Zustand zu. Laut PHP lassen sich darüber auch Speicherinhalte auslesen.
Beide Lücken sind mit 9,2 nach CVSS 4.0 bewertet. Für einen gezeigten Angriff genügt eine einzige Anfrage ohne Anmeldung, und sie wirkt, bevor überhaupt Code der Webanwendung läuft.
Wer betroffen ist
- Alle PHP-Installationen, die Webanfragen bedienen: PHP-FPM, Apache mit mod_php, php-cgi, FrankenPHP und LiteSpeed. Das höchste Risiko sieht PHP bei mod_php.
- Versionen: PHP 8.5 vor 8.5.12, 8.4 vor 8.4.27, 8.3 vor 8.3.36, 8.2 vor 8.2.35 sowie alle älteren Versionen ab 5.4.
- Anwendungen: Die Lücke liegt in PHP selbst. Forschende haben die Ausnutzung unter anderem gegen WordPress, Drupal, Joomla, Nextcloud, MediaWiki, Roundcube, phpMyAdmin, Magento, Laravel und Symfony gezeigt.
- Geräte und Fremdprodukte: PHP steckt auch in Firewalls, NAS-Systemen, Verwaltungsoberflächen und Control Panels wie Plesk. Hier liefert der Hersteller das Update.
Die Lage
Cloudflare hat am 21. Oktober ab 07:43 UTC erste Angriffe registriert, also schon vor der Veröffentlichung der Updates, und Schutzregeln für Kunden hinter Cloudflare aktiviert. Nach dem Update haben die Entdecker (Calif, Wiz und OpenAI) ihre Analysen veröffentlicht. Sicherheitsfirmen wie Sansec rechnen deshalb mit breit angelegten Angriffen in den nächsten Tagen. CERT-EU stuft Angriffe als wahrscheinlich ein. Im Netz kursiert zudem angeblicher Exploit-Code, der nicht geprüft ist und Schadsoftware enthalten kann.
Was jetzt zu tun ist
1. PHP aktualisieren. Spielen Sie PHP 8.5.12, 8.4.27, 8.3.36 oder 8.2.35 ein. Linux-Distributionen und LTS-Anbieter haben die Korrekturen vorab erhalten und stellen eigene Pakete bereit. Wer das freiwillig betreute Repository rpms.remirepo.net nutzt, erhält dort am 21. Oktober noch keine Updates. PHP empfiehlt in diesem Fall die Pakete der Distribution oder einen eigenen Build aus den Quellen.
2. Alle PHP-Dienste neu starten. Erst der Neustart von PHP-FPM, Apache oder LiteSpeed sorgt dafür, dass wirklich die neue Version läuft. Laufende Prozesse arbeiten sonst mit dem alten Programm weiter, auch wenn auf der Festplatte schon die neue Version liegt.
3. Beim Hosting-Anbieter nachfragen. Bei gehosteten Webseiten aktualisiert der Anbieter. Prüfen Sie im Kundenbereich oder mit einer kurzen phpinfo-Seite, welche Version läuft, und entfernen Sie die phpinfo-Seite danach wieder.
4. Ältere PHP-Versionen ersetzen. PHP 8.1 und älter erhält vom PHP-Projekt keine Updates mehr. Für 7.4, 8.0 und 8.1 gibt es minimale Korrekturen im Quellcode, manche Distributionen liefern eigene Backports. Der nachhaltige Weg ist der Wechsel auf eine unterstützte Version. Planen Sie dabei gleich mit ein, dass auch PHP 8.2 am 31. Dezember 2026 das Ende der Unterstützung erreicht.
5. Geräte und Fremdprodukte prüfen. Spielen Sie die Updates der Hersteller ein, sobald sie verfügbar sind. Das niederländische NCSC führt auf GitHub eine Liste von Produkten mit PHP-Abhängigkeit.
6. Auf Spuren achten. Ungewöhnliche Prozesse, die von PHP gestartet werden (Shells, Skriptinterpreter, curl oder wget), neue PHP-Dateien im Webverzeichnis und auffällige Einträge in den Fehlerprotokollen sind Warnzeichen. Sichern Sie in diesem Fall die Protokolle und ziehen Sie Fachleute bei. Betreiber kritischer Infrastrukturen, dazu zählen auch Gemeindeverwaltungen, melden Cyberangriffe innert 24 Stunden dem BACS (siehe Meldepflicht für Cyberangriffe).
Wenn das Update noch etwas dauert
PHP nennt Massnahmen, die bestimmte Angriffswege erschweren. Sie ersetzen das Update nicht und überbrücken nur die Zeit bis dahin:
session.upload_progress.enabled = 0in der php.ini oder im FPM-Pool setzen und alle Prozesse neu starten. Eine Einstellung per.user.inioderini_set()reicht dafür laut PHP nicht aus.- Auf PHP 8.5 zusätzlich
fatal_error_backtraces = 0setzen. memory_limit = -1so setzen, dass Anwendungen es nicht überschreiben können, undpost_max_sizeklein halten (8M ohne Datei-Uploads, 32M mit Uploads).- Grössen und Anzahl von Formularfeldern, Multipart-Teilen und Headern am Webserver oder Proxy begrenzen.
- Öffentlich erreichbare Systeme, die sich nicht rasch aktualisieren lassen, vorübergehend vom Internet trennen oder den Zugriff einschränken. Das empfiehlt auch CERT-EU.
Sie möchten sicher sein, dass alle Ihre Systeme aktualisiert sind? Im kostenlosen Erstgespräch prüfen wir gemeinsam, wo PHP bei Ihnen läuft und was noch zu tun ist.
Häufige Fragen
Welche PHP-Versionen sind sicher?
PHP 8.5.12, 8.4.27, 8.3.36 und 8.2.35 sowie neuere Versionen. Pakete von Linux-Distributionen können andere Versionsnummern tragen und trotzdem korrigiert sein. Massgebend ist dann die Sicherheitsmeldung der Distribution.
Meine Webseite liegt bei einem Hosting-Anbieter. Bin ich betroffen?
Ja, solange der Anbieter noch nicht aktualisiert hat. Fragen Sie nach und prüfen Sie die PHP-Version im Kundenbereich. Läuft noch PHP 8.1 oder älter, stellen Sie am besten auf eine aktuelle Version um.
Reicht es, WordPress, Moodle oder Nextcloud zu aktualisieren?
Nein. Die Lücken liegen in PHP selbst und wirken, bevor der Code der Anwendung läuft. Entscheidend ist das PHP-Update auf dem Server.
Genügt es, session.upload_progress abzuschalten?
Nein. Die Einstellung blockiert bestätigte Angriffswege für CVE-2026-109619, aber nicht alle Varianten und nicht CVE-2026-109618. Sie überbrückt die Zeit bis zum Update.
Woran erkenne ich einen Angriff?
Hinweise sind Prozesse wie Shells, curl oder wget, die von PHP gestartet werden, neue oder veränderte PHP-Dateien im Webverzeichnis und gehäufte Fehler oder Abstürze von PHP-Prozessen. Bei einem Verdacht Protokolle sichern, Fachleute beiziehen und den Vorfall dem BACS melden.
Quellen
PHP Group: Security advisory, Critical remote code execution vulnerabilities, update now, php.net (21. Oktober 2026) · PHP Group: Release-Meldungen PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 · GitHub Security Advisories GHSA-w8hw-w9fx-j79w und GHSA-6wmf-4rv5-p3rp (php-src) · CERT-EU: Security Advisory 2026-018, Critical Vulnerabilities in PHP · NCSC-NL: php2shell auf GitHub · Tenable: php2shell FAQ · Huntress: Rapid Response php2shell · Sansec: PHP2Shell
In short
Since 21 October 2026, PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 are available. They close two critical flaws (CVE-2026-109618 and CVE-2026-109619, CVSS 9.2) that let attackers run code on the web server without logging in. First attacks have already been observed. Update PHP now, then restart all PHP services, and have your hosting provider confirm that the update is in place.
Yesterday the PHP security team announced the release (see our post of 20 October). Today it was published, together with the technical details. The situation is serious. With a prompt update, it is well under control.
The two flaws
CVE-2026-109618, code execution via out-of-memory handling. When PHP runs out of memory during a request, it aborts processing. This can happen while internal data is only partially initialised, for example while parsing a form with a file upload. The subsequent cleanup then treats this incomplete data as valid. An attacker can trigger this deliberately with a crafted request.
CVE-2026-109619, code execution via stale state. A PHP process handles many requests one after another. After an error, internal state of one request can survive although its memory has already been freed. The next request in the same process then uses that state. According to PHP, this can also be used to read memory contents.
Both flaws are rated 9.2 under CVSS 4.0. A demonstrated attack needs only a single unauthenticated request, and it takes effect before any application code runs.
Who is affected
- All PHP installations serving web requests: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP considers the risk highest for mod_php.
- Versions: PHP 8.5 before 8.5.12, 8.4 before 8.4.27, 8.3 before 8.3.36, 8.2 before 8.2.35, and all older versions from 5.4.
- Applications: The flaw lies in PHP itself. Researchers have demonstrated exploitation against WordPress, Drupal, Joomla, Nextcloud, MediaWiki, Roundcube, phpMyAdmin, Magento, Laravel and Symfony, among others.
- Devices and third-party products: PHP is also embedded in firewalls, NAS systems, management interfaces and control panels such as Plesk. Here the vendor supplies the update.
The situation
Cloudflare registered first attacks on 21 October from 07:43 UTC, before the updates were released, and activated protection rules for customers behind Cloudflare. After the release, the researchers (Calif, Wiz and OpenAI) published their analyses. Security firms such as Sansec therefore expect widespread attacks in the coming days. CERT-EU considers attacks likely. Alleged exploit code is also circulating; it is unverified and may contain malware.
What to do now
1. Update PHP. Install PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. Linux distributions and LTS vendors received the fixes in advance and provide their own packages. Users of the volunteer-maintained repository rpms.remirepo.net will not receive updates there on 21 October. In that case PHP recommends distribution packages or a build from source.
2. Restart all PHP services. Only restarting PHP-FPM, Apache or LiteSpeed ensures that the new version is actually running. Otherwise running processes keep using the old binary, even if the new version is already on disk.
3. Check with your hosting provider. For hosted websites, the provider updates. Check the running version in the customer area or with a short phpinfo page, and remove the phpinfo page again afterwards.
4. Replace older PHP versions. PHP 8.1 and older no longer receive updates from the PHP project. For 7.4, 8.0 and 8.1 there are minimal source fixes, and some distributions ship their own backports. The lasting solution is moving to a supported version. Plan ahead: PHP 8.2 also reaches end of life on 31 December 2026.
5. Check devices and third-party products. Install vendor updates as soon as they are available. The Dutch NCSC maintains a list of products with a PHP dependency on GitHub.
6. Watch for traces. Unusual processes started by PHP (shells, script interpreters, curl or wget), new PHP files in the web directory and conspicuous entries in error logs are warning signs. In that case secure the logs and call in specialists. Operators of critical infrastructure, including municipal administrations, report cyberattacks to the BACS within 24 hours (see reporting obligation for cyberattacks).
If the update takes a little longer
PHP lists measures that make specific attack paths harder. They do not replace the update and only bridge the time until then:
- Set
session.upload_progress.enabled = 0in php.ini or the FPM pool and restart all processes. According to PHP, setting it via.user.iniorini_set()is not sufficient. - On PHP 8.5, also set
fatal_error_backtraces = 0. - Set
memory_limit = -1so that applications cannot override it, and keeppost_max_sizesmall (8M without file uploads, 32M with uploads). - Limit size and number of form fields, multipart parts and headers at the web server or proxy.
- Temporarily disconnect internet-facing systems that cannot be updated quickly, or restrict access. CERT-EU recommends this as well.
Want to be sure all your systems are updated? In a free initial consultation we check together where PHP runs in your organisation and what remains to be done.
Frequently asked questions
Which PHP versions are safe?
PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 and newer. Packages from Linux distributions may carry different version numbers and still be fixed. In that case the distribution’s security notice is authoritative.
My website is with a hosting provider. Am I affected?
Yes, as long as the provider has not yet updated. Ask, and check the PHP version in your customer area. If PHP 8.1 or older is still running, it is best to switch to a current version.
Is it enough to update WordPress, Moodle or Nextcloud?
No. The flaws lie in PHP itself and take effect before the application code runs. The PHP update on the server is what matters.
Is disabling session.upload_progress enough?
No. The setting blocks confirmed attack paths for CVE-2026-109619, but not all variants and not CVE-2026-109618. It bridges the time until the update.
How do I recognise an attack?
Signs include processes such as shells, curl or wget started by PHP, new or modified PHP files in the web directory and frequent errors or crashes of PHP processes. If in doubt, secure the logs, call in specialists and report the incident to the BACS.
Sources
PHP Group: Security advisory, Critical remote code execution vulnerabilities, update now, php.net (21 October 2026) · PHP Group: release announcements PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 · GitHub Security Advisories GHSA-w8hw-w9fx-j79w and GHSA-6wmf-4rv5-p3rp (php-src) · CERT-EU: Security Advisory 2026-018, Critical Vulnerabilities in PHP · NCSC-NL: php2shell on GitHub · Tenable: php2shell FAQ · Huntress: Rapid Response php2shell · Sansec: PHP2Shell