Website security and administration

PHP vulnerabilities — Ministry of Digital Affairs notice of 22.10.2026 and what WordPress site owners should do

Text
Table of contents

On 22 October 2026, the Ministerstwo Cyfryzacji (Polish Ministry of Digital Affairs) published an announcement about vulnerabilities in PHP, and the Pełnomocnik Rządu ds. Cyberbezpieczeństwa (Government Plenipotentiary for Cybersecurity) issued recommendation no. 2026/33/6. It concerns two vulnerabilities — CVE-2026-109618 and CVE-2026-109619 — that allow anyone to execute any command on the server without logging in. They affect every PHP site from version 5.4 onward, including WordPress, WooCommerce and Joomla. The only full protection is PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or a patch from your hosting provider). Below: the full text of the announcement, which updates along with the gov.pl page, what these vulnerabilities mean in practice and what to do with your site in fifteen minutes — before someone else does it for you.

What exactly the Ministry of Digital Affairs announced

The box below is not our paraphrase, but an announcement pulled automatically from gov.pl/web/cyfryzacja. Sprawdzamy ją co godzinę; gdy ministerstwo dopisze aktualizację (np. o przywróceniu stron BIP), zobaczysz ją tutaj w tej samej godzinie, razem z datą zmiany. Ostatnie sprawdzenie: 18.11.2026, 08:40.

Three things the notice leaves out that are worth knowing. First, the vulnerability identifiers: CVE-2026-109618 and CVE-2026-109619 — both are listed in the attached recommendation from the Government Plenipotentiary. Second, the safe version numbers (see the section below). Third, the recommendation is formally addressed to entities in the national cybersecurity system, but its technical content applies to anyone with a PHP website: a salon, a law firm, an online store, a municipality.

What these vulnerabilities are — PHP2Shell in three sentences

Researchers at Wiz named this pair of bugs PHP2Shell. Both sit in the PHP engine itself, not in any plugin or theme, so there’s no way to “work around” them at the application level. The PHP team rated each one 9.2/10 on the CVSS 4.0 scale and released fixes outside the normal cycle — on 21 October 2026, one day after the announcement.

  • CVE-2026-109618 — memory corruption on out-of-memory (OOM). A specially crafted request (e.g. a multipart form without a valid length, with many headers or nested fields) exhausts the request’s memory, PHP aborts it midway, and the cleanup routine treats the unfinished structures as valid. The result: code execution with the privileges of the web server process — without logging in and before any WordPress code even runs.
  • CVE-2026-109619 — “stale” global state between requests. Parts of one request’s state (errors, sessions, extension objects) survive the freeing of memory and are used by the next request handled by the same PHP process. Confirmed attack paths: the session upload progress mechanism (session.upload_progress, enabled by default) and, in PHP 8.5, fatal error tracking (fatal_error_backtraces).

According to the PHP team, every installation serving internet traffic is at risk: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. The highest risk is with mod_php — that’s where the exploit was demonstrated end to end. For PHP-FPM (the most common setup on Polish shared hosting), no full exploit of the first vulnerability has been published, but code analysis indicates it is vulnerable once a request has started successfully, and the second vulnerability works there too. In other words: “I’m on FPM” is no reason to wait.

Timeline: Wiz discovered the first vulnerability on August 19, 2026, and within two days achieved remote code execution on a fresh Drupal and WordPress install; the report to the PHP team was sent on August 24. The same bugs were independently reported by researchers from Calif and OpenAI — OpenAI stresses in its statement that an AI model found the vulnerability before attackers did. Cloudflare reported that, even before the patches were published, it had seen the first attack attempts and blocked them with WAF rules. In cases like this, public attack tools appear within days, not weeks — hence the ministry's urgency.

Which PHP versions are safe

PHP branchFirst secure versionSecurity supportWhat to do
8.58.5.12until 12/31/2029Update; afterwards, also fatal_error_backtraces=0 if you don’t use it
8.48.4.27until 12/31/2028Update — the recommended version for new deployments
8.38.3.36security patches only, until 12/31/2027Update — the safe choice for most WordPress sites
8.28.2.35security patches only, until 31 Dec 2026Update now and plan a move to 8.3/8.4 by the end of the year
8.1 / 8.0 / 7.4no official releaseendedThe PHP team has released only "minimal" source patches for those who compile it themselves; on hosting — a patch from your provider or a version change
7.3 and older, 5.xnoneended years agoVulnerable since 5.4 inclusive. The only way out: a patch from your provider (if they've prepared one) or migration

Watch out for one trap: your host may apply the fix without changing the version number (that’s what Linux distributions do — Debian and Ubuntu “backport” the patch to their 8.2.x). In that case the panel will show, say, 8.2.28, and the server is still safe. If you see a number lower than the one in the table, don’t guess — ask your host whether the CVE-2026-109618/109619 patch has been applied on your server. We covered the support timelines for each branch in more detail in our article on the PHP version on your hosting.

Are WordPress, WooCommerce, and Joomla vulnerable?

Yes — but not because they have a bug. The vulnerability is in PHP, and WordPress, WooCommerce, Joomla, Drupal, PrestaShop and Laravel simply run on it. No WordPress or plugin update will fix this, and neither will any security plugin. The researchers demonstrated a working attack on the latest WordPress, Drupal and Joomla images — with no extra plugins, no account and no login form. The attacker sends a single HTTP request to any URL on the site.

For the same reason, it doesn’t matter whether your site is “small” or “of no interest to anyone.” Automated scanners don’t pick targets — they sweep entire address ranges. VirusTotal estimates there are over 5 million internet-facing hosts running PHP. A hacked business card website is just as valuable to a criminal as an online store: it hosts phishing, sends spam, mines cryptocurrency and damages your domain’s reputation — in other words, your SEO. If it happens to you, see our guide WordPress hacked — what now.

What to do in 15 minutes — a checklist for website owners

  1. Check your PHP version. In WordPress: Tools → Site Health → Info → Server → PHP version. Compare it with the table above. No access to the dashboard? Log in to your hosting panel (DirectAdmin, cPanel, Plesk, the cyber_Folks panel) — the PHP version is usually in the domain settings.
  2. Check your host’s announcement. Major providers patched their servers on 21–22 October. For example, cyber_Folks announced on 21 Oct that it had applied fixes on its managed servers for all versions, including PHP 5.x and 7.x, for which the PHP team released no official patches — customers don’t need to install anything. If your host is silent, contact support and ask directly about CVE-2026-109618. No reply within 24 hours is an answer in itself — more in our WordPress hosting comparison.
  3. If your host lets you change the version yourself and you’re on 7.4, 8.0 or 8.1 — switch to 8.3 (the safest choice for plugin compatibility) or 8.4. With older plugins, do it on a staging copy first; for a simple business website the risk is low, and rolling back takes one click.
  4. Do you have a VPS, a dedicated server or your own container? You handle the update yourself — instructions are in the section below. Until you update, apply the temporary settings from the Plenipotentiary’s recommendation.
  5. Make a backup now, before you change anything — files and database, stored off the server. How to set this up for good: the 3-2-1 strategy.
  6. Update WordPress, your plugins and your theme too. It won’t fix this vulnerability, but an attacker who gets in through PHP usually leaves backdoors precisely in plugins. A safe procedure: risk-free WordPress updates.
  7. Check for traces (see the section “How to tell if someone has already tried”). If something doesn’t add up, reporting it to CERT Polska via incydent.cert.pl is free; CERT is a support team, not a regulator.
An administrator finishing a PHP update on a server: a terminal with a list of updated packages, next to a screen with a security bulletin and a printed recommendation with one paragraph highlighted
The package update on the server and the Government Plenipotentiary's recommendation: two documents an administrator should look at today.

The Government Plenipotentiary's recommendation — temporary settings in php.ini

The attachment to the announcement, recommendation no. 2026/33/6 of 22 Oct 2026, signed by Deputy Prime Minister Krzysztof Gawkowski as the Government Plenipotentiary for Cybersecurity, requires entities covered by KSC (the National Cybersecurity System) to do three things: update PHP immediately, wait for new images from vendors of devices and applications distributed as containers (Docker), and, until the patch is available, set four parameters in php.ini. The document was prepared after consulting CSIRT NASK, CSIRT GOV and CSIRT MON, which confirmed that a critical incident could occur.

ParameterRecommended valueWhy
memory_limit-1, if resources allow; otherwise 128M or moreMakes it harder to trigger the out-of-memory error that the CVE-2026-109618 attack starts with
post_max_size8M or lessLimits the size of a crafted request (php.net allows 32M if the site accepts file uploads; upload_max_filesize must be smaller)
max_input_vars1000 or lessLimits the number of fields an attacker uses to "pump up" memory
session.upload_progress.enabledOffCloses the confirmed CVE-2026-109619 attack path through sessions

Two caveats that both the recommendation and php.net stress. This is not protection, only risk reduction. To quote CERT Polska: “even applying all of the listed settings does not rule out exploitation of the vulnerability.” Second, the settings must be applied at the server level (php.ini, the FPM pool via php_admin_value, Apache configuration), not via ini_set() in code or .user.ini, because those take effect too late, after PHP has already parsed the request. After making the change, restart the PHP processes. On shared hosting, these values are set by the server administrator; at most, you can check in Site Health what is active.

What not to do: php.net warns against limiting memory via RLIMIT_AS or RLIMIT_DATA (they can themselves trigger the vulnerable allocation-failure path), and says that hiding errors via display_errors=0, error_reporting or the @ operator achieves nothing. An empty error log is not proof of security.

If you have a VPS or dedicated server — update and restart

Distributions received the patches in advance, so in most cases a standard package update and a PHP restart are enough. Example for Debian/Ubuntu with PHP-FPM 8.3 and for RHEL-family systems:

# Debian / Ubuntu
sudo apt update && sudo apt install --only-upgrade 'php8.3*'
sudo systemctl restart php8.3-fpm apache2    # lub: nginx

# AlmaLinux / Rocky / RHEL
sudo dnf upgrade 'php*'
sudo systemctl restart php-fpm httpd

# check — version and whether FPM came back up after the restart
php -v && systemctl status php8.3-fpm --no-pager | head -3

Three practical notes. If you use the deb.sury.org or Remi repository, check the date of the latest package: as of 21 October, Remi had no update yet, and php.net recommended distribution packages or compiling from source at the time. If PHP runs in a Docker container, updating the host won’t help: you need to pull an image with the patched PHP version and rebuild the container. And after the restart, make sure the temporary settings (if you applied them) haven’t blocked things like photo uploads in your store: post_max_size=8M is less than a single photo from a phone.

How to tell if someone has already tried

The vulnerabilities were reported in August and the patches came out in October; no one can guarantee that nobody else found them during those two months. Wiz and Rapid7 point to signs worth checking in your server logs from the past few weeks:

  • unusual multipart POST requests followed by Allowed memory size exhausted errors in the PHP log, or bursts of HTTP 500 responses on random URLs;
  • very long or malformed PHPSESSID cookies in the access logs;
  • unusually frequent restarts of PHP-FPM worker processes (child exited in the FPM log);
  • and the classic signs of any break-in: new .php files in wp-content/uploads, modified wp-config.php or .htaccess, unknown administrators, cron jobs you didn’t add.

If you see any of this: take the site offline (maintenance mode at the server level or a block in the WAF), secure a copy of the logs before they get overwritten, report the incident through the CERT Polska form, and only then clean up. The order matters: a cleaned-up site without logs is an incident that can no longer be explained. For ongoing file integrity monitoring on our own and our clients’ sites, we use our own WP Strażnik plugin, and we cover what to monitor day to day in our article on website monitoring.

Why the government took BIP sites offline — and what businesses can learn from it

The Central Informatics Center shut down the Public Information Bulletin (BIP) sites run on the SSDIP system (ssdip.bip.gov.pl), which many public institutions use — from municipalities to inspectorates. The decision was made after a meeting of the Joint Cybersecurity Operations Center. This is not a Polish peculiarity: according to industry reports, similar preventive shutdowns of services were announced by the Netherlands, Denmark, Finland, Germany and the United Kingdom, among others, and the US NSA recommended immediately patching or shutting down vulnerable systems. In its advisory, CERT Polska allowed the same logic for businesses: “temporary shutdown of PHP-based services accessible from the Internet, provided it does not disrupt the organization's operations.”

For a small business, taking the site down is usually a worse outcome than an hour of an administrator’s time, but the principle itself is sound: a site that can’t be patched quickly should have a plan agreed in advance: “what we shut down, who decides, who informs customers”. That is exactly what the amended KSC act will require of some companies, so check whether your company falls under NIS2/KSC. And if an incident affects you directly, the order of steps from our article on the plan for the first 72 hours applies here too.

How we handle this for Websky clients

The sites and stores we maintain run on PHP 8.3 or 8.4 with hosting providers that patch their servers centrally. For this vulnerability, that meant getting confirmation from the provider that the fix was on the specific server, not just “in the announcement.” The checklist we go through with every alert like this: PHP version and patch date on each server, a review of the last 14 days of logs for the signs listed in the section above, a file integrity check, an off-server backup “from today,” and WordPress updates. If a site runs an older PHP version because a plugin is holding it back, we switch versions on a staging copy first and only then in production. This is a standard part of website administration, not a separate one-off service. If you don’t have anyone who can do this for you this week, get in touch: checking the version and patch for a single site takes 15 minutes or so.

FAQ — PHP vulnerabilities and the Ministry of Digital Affairs' announcement

My site runs on WordPress — does this affect me?

Yes. The vulnerability is in PHP, which every WordPress site runs on. The WordPress version, theme, and plugins don't matter — only the PHP version on the server does. Check it under Tools → Site Health → Info → Server.

My hosting provider said it has applied a fix. Do I need to do anything else?

On shared hosting — no, other than confirming that the notice applies to your server and your PHP version. While you're at it, it's worth updating WordPress and plugins, making a backup, and reviewing the logs from the last few weeks. If you're on PHP 7.x or 8.0/8.1, plan your move to 8.3 or 8.4 — the hosting patch closes this vulnerability but doesn't extend support for those versions.

My dashboard shows PHP 8.2.28, and the table lists 8.2.35 as safe. Am I vulnerable?

Not necessarily. Linux distributions and some hosting providers backport the fix to their version without changing the version number. A number lower than the one in the table only means you need to confirm with your hosting provider that the patch for CVE-2026-109618 and CVE-2026-109619 is on your server. A number equal to or higher than the table means you're safe.

Does a security plugin (Wordfence, WP Strażnik, Sucuri) protect against this vulnerability?

No. The attack works at the PHP level, before WordPress, and therefore any plugin, even starts up. A plugin can help you detect the effects (new files, changes to core) and block some scanners, but the only real protection is a patched version of PHP. A server-level or CDN WAF (e.g., Cloudflare) that filters crafted requests also helps.

Have government BIP websites in Poland stopped working?

Only those run on the SSDIP system (ssdip.bip.gov.pl), which the Centralny Ośrodek Informatyki (Central Informatics Center) temporarily took offline while security fixes are implemented. The other BIP sites, run on institutions' own systems, are working normally. The current status is shown in the notice box at the top of this article — the ministry has said it will provide updates on further actions as they happen.

How do I know this article is up to date?

The notice box is pulled automatically from gov.pl every hour and shows the date of the last check and the change history. When the ministry changes the wording, the box updates itself and the article's modified date is bumped. We update our commentary manually after every significant change — if the box shows a newer version than the text, it means the commentary is being updated.

Sources

Author: Adrian Kamiński — Websky Studio, Poznań. We build and maintain WordPress websites and online stores; we treat security as part of every website, not a separate service. Article published 22 Oct 2026; the notice box updates automatically, and we update our commentary after every significant change on gov.pl.

Your feedback

Was this article helpful?

One click — it helps me choose future topics.

Share this article

Websky Newsletter

New posts straight to your inbox.

Once a month — practical insights on WordPress, WooCommerce, SEO and AI. No spam, unsubscribe with one click.

  • Case studies from Polish projects
  • Checklists and templates to download
  • Google and WordPress changes in a nutshell

Your data goes to Websky Studio only. You can unsubscribe with one click in every message.

Website administration

Backups, monitoring and peace of mind.

Ongoing WordPress care: updates, backups, uptime monitoring, and a fast response when something goes wrong.

See website care plans