Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP Security Alert: Is Your Server Really Patched?
New
1 students

PHP Security Alert: Is Your Server Really Patched?

Learn to tell whether a PHP security advisory affects your server, apply the fix, and prove the new code is running.
Created by김 승현
Last updated 11/2026
English
English

What you'll learn

  • Judge whether your server is really affected by a PHP security advisory, instead of trusting php -v alone
  • Find the PHP that actually serves web requests and read distribution changelogs to tell fixed from vulnerable
  • Check for signs of compromise, back up safely, and apply temporary mitigations when you cannot patch yet
  • Patch Ubuntu and Docker setups, prove the new code is running, and smoke-test for regressions

Course content

7 sections • 23 lectures • 2h 57m total length
  • Three Things to Check Right Now10:03

    PHP Emergency Security Response Lab: From Checking Your Server to Verifying the Patch · Information current as of 2026-11-08

    Lab files, exercises and solutions are on GitHub; the link is in the external resources of Lesson 1.

    In one line

    Decide which PHP actually handles web requests → install the security update → restart and confirm the new code is running. Judging by php -v alone can give the wrong answer.

    Key ideas

    • The incident: The PHP project gave advance notice on 2026-10-20 and released fixed versions on 2026-10-21. The two vulnerabilities (CVE-2026-109618 and CVE-2026-109619) allow remote code execution without authentication, and both were rated CVSS v4.0 9.2.

    • Fixed versions: 8.2.35 · 8.3.36 · 8.4.27 · 8.5.12 (8.6.0 includes the fix from RC4). For 8.1 and earlier the project releases no update, so check the packages from your distribution or long-term-support vendor.

    • CISA KEV: Both vulnerabilities were added to the US CISA "Known Exploited Vulnerabilities" catalog (KEV) on 2026-10-26.

    • CLI PHP ≠ web PHP: A server can have several PHP installations. What matters is the PHP that handles web requests.

    • Distribution packages keep the version number and only add the fix. That is why PHP_VERSION in the web response is still 8.3.6 after the update. You judge whether the fix is present from the package changelog (covered in detail in 2-3).

    • You are not done until you restart. Replacing the package does not change processes that are already running; they still hold the old code in memory.

    Follow along

    Preparation: start the lab server as described in lab/README.md. Each time you begin, return it to its starting state.

    # Run on: your computer, in the lab/ folder
    docker compose down && docker compose up -d

    Every command below is run on your computer, in the lab/ folder. docker compose exec server runs it inside the server for you, which does the same job as logging in to the server and typing it there.

    Step 1 — Version verdict

    ① CLI PHP version (V1)

    # Run on: your computer (executes inside the server)
    docker compose exec server php -v

    The first line shows PHP 8.4.27 (cli). That is a fixed version, but it is only the PHP that runs on the command line.

    ② The PHP that handles web requests (V2)

    # Run on: your computer (executes inside the server)
    docker compose exec server curl -s | head -4

    You see PHP_VERSION 8.3.6 and PHP_SAPI fpm-fcgi. The same server has two PHPs, and the web uses the 8.3 one. runtime.php is a check page for the lab. It is blocked from outside the server, and on a real service you must delete it after checking.

    ③ Does the package contain the fix? (first part of V3)

    # Run on: your computer (executes inside the server)
    docker compose exec server bash /opt/lab/tools/package-check.sh | sed -n '/PHP 8.3/,/Verdict/p'

    Before the update, both CVEs show not in the changelog and Verdict: VULNERABLE (security update needed).

    Step 2 — Update

    # Run on: your computer (executes inside the server)
    docker compose exec server bash -c "apt update && apt install -y --only-upgrade 'php8.3-*'"

    • To limit the blast radius, upgrade only the PHP 8.3 packages (--only-upgrade 'php8.3-*'). A full apt upgrade belongs in your regular maintenance.

    • The line invoke-rc.d: policy-rc.d denied execution of restart. at the end of the output means this lab server is set up so that upgrading a package does not restart the service automatically. Do not assume a real server restarts by itself either; check it.

    After the update, run ③ again and it changes to in the changelog and Verdict: FIXED. But run ② again and PHP_VERSION is still 8.3.6, because the distribution keeps the version number and adds only the fix.

    Step 3 — Restart and verify

    # Run on: your computer (executes inside the server)
    docker compose exec server bash /opt/lab/tools/restart-check.sh # before restart
    docker compose exec server service php8.3-fpm restart # on a real server: systemctl restart php8.3-fpm
    docker compose exec server bash /opt/lab/tools/restart-check.sh # after restart

    restart-check.sh shows three things: when the packages last changed, when the running PHP processes started, and which processes still use files that were deleted.

    • Process start time — Before restart: Earlier than the package change time · After restart: After the package change time

    • Executable — Before restart: /usr/sbin/php-fpm8.3 (deleted) · After restart: /usr/sbin/php-fpm8.3

    • Result line — Before restart: Result: a restart is needed. · After restart: Result: the running PHP processes are using the files that are installed now.

    (PIDs and times differ on every run. Look less at the values and more at "did the process start before the update?" and "is (deleted) attached?")

    Check this · Common mistakes

    • Concluding "it is a fixed version, so it is safe" from php -v alone. → Check the PHP that handles web requests separately.

    • Judging whether you are patched from PHP_VERSION in the web response. → A distribution package shows the same number before and after the patch. Judge by the changelog.

    • Updating but not restarting. → The old code keeps running. Compare before and after the restart with restart-check.sh.

    • Cases where these three steps are not enough

    • If the server was already attacked, a restart can erase evidence. Patched is not the same as not compromised. The first-pass check before restarting is in Section 3.

    • A security update can also break your service, so check key features after patching. That is in Section 4.

    • Docker needs an image rebuild rather than a restart, shared hosting needs you to ask the hosting company, and 8.1 or earlier needs you to check the distribution or LTS packages.

    • If patching right now is hard, temporary mitigation settings exist, but they only reduce risk and are not the fix. The fix is the update.

    Related exercise

    Exercise 1. Three-step quick check in exercises/exercises.md (try it yourself first, then check exercises/exercises_solutions.md).

    Sources and dates checked

    • Official PHP announcements (fixed versions, vulnerability description, mitigation guidance) — checked 2026-11-08

    • CISA KEV catalog (both CVEs added 2026-10-26) — checked 2026-11-08

    • The lab server output was captured by running it on 2026-11-08. Official announcements and package versions may change afterwards, so check again before applying anything to a real server.

    Next lesson

    1-2 The Incident Timeline and How to Read Official Advisories

  • The Incident Timeline and How to Read Official Advisories10:37

    PHP Emergency Security Response Lab: From Checking Your Server to Verifying the Patch · Information current as of 2026-11-08

    Lab files, exercises and solutions are on GitHub; the link is in the external resources of Lesson 1.

    In one line

    Read three places in the official advisory: impact, fixed versions and mitigation. Use CVSS to ask "how dangerous is it?" and CISA KEV to ask "is it actually being exploited?", and set priorities from both. Each source defines the affected range differently, so decide by asking "does the package I use contain the fix?"

    Key ideas

    Timeline (2026)

    • 10/17 — What happened: Amazon's threat analysis team saw attack attempts on a honeypot (a decoy server), four days before disclosure · Source: Tenable summary

    • 10/20 — What happened: The vulnerability IDs spread first. The PHP project pre-announced an "urgent security release tomorrow" · Source: php.net

    • 10/21 — What happened: Fixed versions 8.2.35 · 8.3.36 · 8.4.27 · 8.5.12 and the security advisory · Source: php.net

    • 10/22 — What happened: KISA Boho Nara published "Corporate security response guidelines for the PHP vulnerability (PHP2Shell)" · Source: Boho Nara

    • 10/23 — What happened: Information notice about the session upload progress feature (separate from these two vulnerabilities) · Source: php.net

    • 10/24 — What happened: A researcher reported three honeypots compromised · Source: Tenable summary

    • 10/26 — What happened: Added to CISA KEV (remediation due 10/29); Windows builds re-released · Source: CISA, php.net

    The 10/17 and 10/24 entries follow Tenable's summary. Attack attempts began before disclosure, so the clock did not start on the day the patch was released.

    How the php.net security advisory (10/21) is organized

    Summary → who is at risk → description of each vulnerability (CVE and GHSA numbers) → how to update → mitigation when you cannot update. In practice, read three places carefully.

    • Impact: Every installation that handles web requests (PHP-FPM, Apache mod_php, php-cgi, FrankenPHP, LiteSpeed). The differences between them are covered in 1-4.

    • Fixed versions: 8.2.35 · 8.3.36 · 8.4.27 · 8.5.12. For 8.1 and earlier, where official support has ended, the project releases no update (7.4 · 8.0 · 8.1 get source patches only).

    • Mitigation: Each vulnerability has its own settings, and the advisory itself says they "only reduce the risk and do not make you safe." You practice this in 3-3.

    Why the affected range differs by source

    • Wikipedia — Versions: 5.4 – 8.5 · What question it answers: The range where the faulty code existed (Calif's analysis, quoted by Tenable)

    • KISA, KNVD and many news reports — Versions: 8.2 – 8.5 · What question it answers: The range where fixed versions were released

    • Source patch only — Versions: 7.4 · 8.0 · 8.1 · What question it answers: No installer, but a source patch is provided

    • No fix from the project — Versions: 5.4 – 7.3 · What question it answers: Check the distribution or LTS package

    • GHSA — Versions: below 8.2.35 · 8.3.36 · 8.4.27 · 8.5.12 · What question it answers: The exact impact and fix criteria

    They are not contradicting each other; they answer different questions. The question to ask about your own server is not "is this version in the affected range?" but "does the package I use contain the fix?" (you practice this in 2-3).

    CVSS v4.0 9.2

    • The scale runs from zero to ten, and 9.0 or higher is Critical. Both vulnerabilities score 9.2.

    • The score is technical severity. Whether the flaw is being attacked right now, or whether your server is open to the internet, is not part of the score.

    • Tenable's summary says the identifiers that circulated during the advance notice carried a 10.0, which the PHP foundation said was a wrong value. Read from the official announcement and the GHSA.

    CISA KEV

    • It is a catalog of vulnerabilities with "confirmed exploitation in the wild." Many high-scoring vulnerabilities are not on the list.

    • Both CVEs were added 2026-10-26 with a remediation due date of 2026-10-29 (a rule for US federal agencies, not a legal deadline for your server). It is a good basis for setting priorities.

    • knownRansomwareCampaignUse is "Unknown." Do not read "unknown" as "no." Not being on the list does not mean there are no attacks either.

    Two follow-up notices (separate from the fix for these two vulnerabilities)

    • 10/23 Session upload progress (CVE-2026-115560) — Content: Remote code execution under special conditions: the app changes session.serialize_handler at run time and the session upload progress feature is on · Status as of 11-08: The notice names no fixed version ("to be handled in a regular release"). Mitigation: session.upload_progress.enabled=0 (in php.ini, the FPM pool and so on; ini_set and .user.ini are too late to help). No extra action if you already turned it off as the 10/21 advisory said

    • 10/26 Windows builds (CVE-2026-111497) — Content: A vulnerability in the Brotli library. Rebuilt as 8.5.12-1 · 8.4.27-1 · 8.3.36-1 · 8.2.35-1. The -1 is a rebuild that changes only a dependent library; the PHP source version is the same · Status as of 11-08: Applies when automatic decompression is turned on in the cURL extension (off by default). Added to CISA KEV on 2026-10-27

    The most recent php.net announcement is the 8.6.0 RC5 (pre-release) on 11-05, and there was no new security advisory. Keep checking, because new ones can appear.

    Check it yourself

    This is a slides lesson, so you do not need the lab server. Below is how to confirm on your own computer what the lesson described.

    ① Read the entries in the KEV catalog

    This is the result of running it on 2026-11-08. The catalog is updated continuously, so other entries may have been added even if the date is the same.

    CVE-2026-109618 2026-10-26 2026-10-29 PHP Memory Corruption Vulnerability
    CVE-2026-109619 2026-10-26 2026-10-29 PHP Stale Internal Request-State Vulnerability

    ② Practice reading the official advisory

    1. Open the 10/21 security advisory at and underline the three places above: "impact · fixed versions · mitigation."

    2. Open the GitHub security advisory using the GHSA number in the announcement and confirm that the affected versions are written as "below."

    3. Find the security advisory for your own environment (distribution or hosting) and check whether your package version is on the fixed list.

    Check this · Common mistakes

    • Deciding from the version range in a news headline → Each source uses a different basis. Decide by whether your package contains the fix.

    • Setting priority from CVSS alone → It is severity, not proof of exploitation. Look at KEV and whether your server is exposed as well.

    • "It is not in KEV, so it is safe" or "ransomware is Unknown, so no" → Both are readings with no basis.

    • Skipping the follow-up notices as "I already patched, so not relevant" → For the session issue, no fixed version is named in the notice as of 11-08, and on Windows you must replace the build with the rebuild.

    • Quoting a secondary source as if it were primary → The 10/17 and 10/24 events come from Tenable's summary. For an important report, check the original and cite it.

    • Information can change. Check the official announcement again before applying anything to a real server.

    Related exercise

    There is no exercise attached to this lesson. When you work on case G of Exercise 4 (the -1 in the Windows build), refer to the "Two follow-up notices" section. Try it yourself first, then check exercises/exercises_solutions.md.

    Sources and dates checked

    • Official PHP news (advance notice, fixed versions, security advisory, information notice, Windows builds, most recent announcement) — checked 2026-11-08

    • GHSA-w8hw-w9fx-j79w (CVE-2026-109618) — checked 2026-11-08 (for CVE-2026-109619, only the number of GHSA-6wmf-4rv5-p3rp was checked)

    • CISA KEV — downloaded and checked 2026-11-08 (feed updated 2026-11-06)

    • KISA Boho Nara security notice — posted 2026-10-22, checked 2026-11-08

    • Timeline 10/17 and 10/24, affected-range analysis, explanation of the CVSS error: Tenable FAQ — checked 2026-11-08 (secondary source)

    • PHP supported versions table — checked 2026-11-08

    Next lesson

    1-3 How the Two Vulnerabilities Work: Concept Diagrams

    Some command listings are not repeated here; see the downloadable PDF for the full commands.

  • How the Two Vulnerabilities Work: Concept Diagrams12:05

    PHP Emergency Security Response Lab: From Checking Your Server to Verifying the Patch · Information current as of 2026-11-08

    Lab files, exercises and solutions are on GitHub; the link is in the external resources of Lesson 1.

    In one line

    Both vulnerabilities arise where cleanup and initialization fall out of step while PHP "prepares → handles → cleans up" a request, and the advisory states that both are possible without authentication. The only complete fix is the update; temporary mitigation only reduces exposure. This lesson covers concepts only and does not reproduce any attack.

    Key ideas

    The life of one request

    1. Start: Prepare the memory and state for this request alone.

    2. Handle: Your code runs on top of that prepared state.

    3. Clean up: Put away the memory and state that were used.

    The cleanup step assumes that "the start finished properly." Both vulnerabilities occur where that assumption breaks.

    Worker reuse

    The processes that run PHP under a web server (workers) do not disappear when one request ends; they take over the next one. That is why restoring a clean state between requests is the crux. For the same reason, when an update replaces files, workers that are already running still hold the old code in memory, so a restart is needed (4-2).

    The two vulnerabilities (per the php.net advisory and GHSA)

    • Where it goes wrong — CVE-2026-109618: Within one request: it stops with the start half finished → cleanup reads it wrongly · CVE-2026-109619: Between requests: the previous request's state is left over and the next request uses it

    • Cause (advisory) — CVE-2026-109618: Out-of-memory handling can abort PHP at a moment when the request data is only partly initialized, and cleanup can treat that bad data as valid · CVE-2026-109619: The request's internal state outlives the memory beneath it once that memory is freed, and the next request on the same worker can use it before it is initialized

    • Conditions (GHSA) — CVE-2026-109618: With several workers or other requests mixed in, the number of attempts only increases; the condition does not go away · CVE-2026-109619: The earlier and later requests must reach the same worker. Several workers do not remove the condition

    • Confirmed impact — CVE-2026-109618: Unauthenticated remote code execution with the privileges of the web worker account · CVE-2026-109619: Unauthenticated use after free, memory exposure, remote code execution

    • Score · fixed versions — CVE-2026-109618: CVSS v4.0 9.2 · 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 · CVE-2026-109619: Same

    Analogies: a person clearing a table that was only half set, who assumes it was fully laid and goes to collect the plates (the first); a person who trusts the key of a locker that was already returned and uses it as is (the second).

    Why no authentication is needed

    The problem is not a feature of your app but the part where the engine prepares and cleans up a request, and that happens on every request, separately from any login check. For Apache mod_php, the most dangerous setup, the advisory explains that an unauthenticated request can trigger the attack before any app code runs (differences for FPM and other setups are in 1-4). So hardening your app's login is not the fix.

    What the temporary mitigations point at (settings are practiced in 3-3)

    • 109618 — What the mitigation touches: Memory limit, request size limits · Limit stated in the advisory: Cannot stop the underlying memory allocation failure. Do not use RLIMIT_AS or RLIMIT_DATA

    • 109619 — What the mitigation touches: Session upload progress feature, logging of fatal-error calls in PHP 8.5 · Limit stated in the advisory: Blocks only the confirmed paths and not other variants

    The advisory states that "the only complete fix is the update." Mitigation is a way to buy time.

    Mitigation in a little more detail (based on the advisory's wording)

    • 109618, two kinds of running out of memory: memory_limit=-1 removes the failure that is controllable because of PHP's own limit, but the advisory notes the limitation that real allocation failures below it can still reach the vulnerable path. It tells you to enforce it with php_admin_value (in the FPM pool or Apache config) so the app cannot change it, and to check that no pool, directory or app setting restores a finite limit. Container and cgroup limits are boundaries that contain the damage, and where possible it recommends a policy that ends only the faulty worker. RLIMIT_AS and RLIMIT_DATA can instead cause the very allocation failures at issue, so they are not used.

    • 109619, app-side checks: Remove invalid or deprecated settings that apply on every request (the ones that emit diagnostic messages before initialization). The advisory states that error_reporting, display_errors and hiding messages with @ do not help. Fix fatal errors and execution time-outs that can be reached from outside (including failures in callbacks, upload and import handling, and cleanup).

    • The concrete values and where to apply them are practiced in 3-3.

    Check it yourself

    This is a slides lesson, so you do not need the lab server. Here is how to check against the original text.

    1. Open the 2026-10-21 security advisory at and compare its cause descriptions for the two vulnerabilities with the table above.

    2. Using the GHSA numbers in the advisory, open the GitHub security advisories (GHSA-w8hw-w9fx-j79w, GHSA-6wmf-4rv5-p3rp) and check the "below the affected version" wording, the CVSS and the "no authentication needed" notation.

    3. In the advisory's "when you cannot update" section, find the mitigation and limit sentences for each vulnerability and compare them with the table above.

    Check this · Common mistakes

    • Downloading and running exploit code → Do not. According to a security vendor's analysis (per the fact sheet), the public code works only on particular OS, PHP and web server combinations, and unverified code can itself be malware. This reflects content not re-checked against the original, so read it together with other sources.

    • "It needs a login, so I am fine" → The advisory states that unauthenticated remote code execution is possible.

    • "I have several workers, so I am safe" → The GHSA says that several workers only lower the chance of success and do not remove the condition.

    • Mistaking temporary mitigation for the fix → It blocks only the confirmed paths. You still need the update and a restart.

    • Replacing the files with the new version and leaving the workers running → Running workers hold the old code (4-2).

    • Information can change. Check the official announcement again before applying anything to a real server.

    Related exercise

    There is no exercise attached to this lesson (exercises/exercises.md). You do the mitigation settings in Exercise 6 (3-3) and the restart check in Exercise 7 (4-2).

    Sources and dates checked

    • Official PHP news, 2026-10-21 security advisory (cause descriptions, affected SAPIs, fixed versions, mitigation and limits) — checked 2026-11-08

    • GHSA-w8hw-w9fx-j79w (CVE-2026-109618) — checked 2026-11-08

    • GHSA-6wmf-4rv5-p3rp (CVE-2026-109619) — checked 2026-11-08

    • Limits of the public exploit code: based on the Rapid7 and Tenable summaries in the fact sheet (not re-checked against the originals this time)

    Next lesson

    1-4 Why mod_php Is the Riskiest and FPM Is Not Safe Either

  • Why mod_php Is the Riskiest and FPM Is Not Safe Either8:09

    PHP Emergency Security Response Lab: From Checking Your Server to Verifying the Patch · Information current as of 2026-11-08

    Lab files, exercises and solutions are on GitHub; the link is in the external resources of Lesson 1.

    In one line

    Even for the same two vulnerabilities, the risk differs by how PHP receives web requests (the SAPI). mod_php is the most dangerous (it can be attacked before app code runs), and PHP-FPM, php-cgi, FrankenPHP and LiteSpeed are conditionally exposed or not immune, so every setup needs the patch and a restart.

    Key ideas

    SAPI

    This is the way PHP is connected to receive a request and return a result. The command line (CLI) is also a SAPI. These vulnerabilities arise between the start and the cleanup of a request, and the start stage differs by SAPI, which is why the risk differs.

    • mod_php: PHP runs inside the web server (Apache) process.

    • PHP-FPM: PHP runs as a separate process pool and exchanges messages with the web server.

    • php-cgi, FrankenPHP, LiteSpeed (LSAPI): Other ways of connecting.

    Guessing the SAPI from the web server's name can be wrong (even behind the same Nginx it may be FPM, and not every Apache is mod_php). How to confirm your own server's setup is practiced in 2-2.

    Comparing five setups

    • Apache mod_php — Risk as read in the advisories: The project sees the risk as highest. There is a demonstration of an unauthenticated request triggering the attack before app code runs · Source: php.net advisory

    • PHP-FPM — Risk as read in the advisories: Conditional exposure. Code execution for the session vulnerability was verified on both mod_php and FPM · Source: GHSA-6wmf-4rv5-p3rp

    • php-cgi — Risk as read in the advisories: Included in the affected targets. No detailed comparison is given · Source: php.net advisory

    • FrankenPHP — Risk as read in the advisories: The same initial configuration path was not found in the default setup, but it is "not immune" · Source: GHSA-6wmf-4rv5-p3rp

    • LiteSpeed (LSAPI) — Risk as read in the advisories: A conditional candidate · Source: GHSA-6wmf-4rv5-p3rp

    I did not verify which setup is the most common, so this guide does not say either.

    Why mod_php is the most dangerous

    • The problem arises at the start stage, before the request reaches the app, so it cannot be stopped even if your app code is safe. No authentication is needed either.

    • mod_php runs inside the Apache process, and directory-level Apache settings are applied before the request start function. The security advisory explains that this can become the initial input.

    • Basis: the "demonstrated attack" in the php.net advisory, and the security advisory's "code execution through the fatal-error path was confirmed on mod_php."

    Is FPM safe? Conditional exposure

    • What it blocks: if request start fails, FPM ends that worker. That blocks the sequence demonstrated on mod_php.

    • What remains: Rapid7 considers that, from source analysis, the path after a successful start may still be vulnerable. However, no complete attack case on FPM has been reported for the first vulnerability (CVE-2026-109618).

    • What is confirmed: the advisory states that, for the second vulnerability, code execution related to the session lifecycle was verified on both mod_php and FPM.

    • When a setting takes effect also affects the conditions. According to the advisory, FPM pool settings apply when a worker starts, and a user directory's .user.ini applies after normal initialization finishes. That is why you must restart the workers after changing a setting.

    Limits of the public PoC, and why you still patch now

    • The public PoCs that Rapid7 reviewed each showed code execution only on a particular combination of OS, PHP version and web server, and none was generally reliable.

    • The honeypot compromise reported by Tenable was also a single-worker mod_php setup (PHP 8.4.26) deliberately configured to favor the attacker.

    • Reasons to patch anyway: ① The CISA KEV listing (2026-10-26) is evidence of real exploitation. ② The foundation said it had found no working code at disclosure, but Tenable reports that Trail of Bits later reported working code against unpatched 8.2 to 8.5 (secondary source). ③ "The exploit code is weak" and "my server is safe" are different statements.

    • Do not download or run a PoC whose source you have not verified. Some contain malware. Do your checking through patching and version checks.

    Follow along

    This is a slides lesson, so there are no commands to follow. Below is a checklist for wrapping up.

    1. Write down how your PHP runs (mod_php / FPM / something else). If you do not know, find out with the 2-2 lab (do not guess from the web server's name).

    2. Whatever the setup, upgrade to a fixed version (8.2.35 · 8.3.36 · 8.4.27 · 8.5.12) or to your distribution's fixed package.

    3. After upgrading, restart so the web runtime runs the new code (4-2). For mod_php, that means restarting Apache.

    Check this · Common mistakes

    • "It is FPM, which is safer than mod_php, so it is not urgent" → It is conditional exposure, and the session vulnerability was verified on FPM as well. It needs the patch and a restart.

    • "My app has no vulnerable code, so I am safe" → With mod_php, an attack is possible before app code runs.

    • "The public PoC does not run in my environment, so I am fine" → It only means the PoC works on certain combinations, not that no other attack method exists.

    • "FrankenPHP is not affected" → The advisory itself says "not immune."

    • Downloading a PoC and testing it on my own server → Do not. It may be malware, and the KISA guidelines also advise against running public PoCs.

    • Information can change. Check the official announcement again before applying anything to a real server.

    Related exercise

    There is no exercise attached to this lesson. How to check the SAPI yourself is in 2-2, and the restart is in 4-2.

    Sources and dates checked

    • Official PHP news (affected SAPIs, mod_php risk assessment) — checked 2026-11-08

    • GHSA-6wmf-4rv5-p3rp (CVE-2026-109619, description by SAPI) — checked 2026-11-08

    • Rapid7 (description of FPM, review of public PoCs; updated 2026-10-27) — checked 2026-11-08

    • Tenable FAQ (honeypot configuration, later reports, malware warning; secondary source) — checked 2026-11-08

    • CISA KEV (added 2026-10-26) — checked in 1-2

    Next lesson

    2-1 Setting Up the Lab Environment (Section 2: Is My Server Affected?)

Requirements

  • Basic Linux command-line skills (cd, ls, editing a file)
  • Docker Desktop (free) installed, to follow the hands-on lab on your own computer

Description

You read the PHP security advisory. Now what? Is your server actually affected, and is it really fixed once you have patched it?

Applying an update takes a few commands. The hard part comes before and after it. Is php -v showing 8.3.6 on a server that is already fixed? Is the PHP in your terminal the same PHP that answers web requests? You upgraded the package, but is the process running right now still the old code?

This course walks you through one complete sequence: judge, check and back up, patch, then prove the new code is running. You practice every step on a disposable Docker lab on your own computer, so nothing you try can touch a real server.

What you will learn

  • Read an official PHP advisory and pull out what matters: affected versions, fixed versions and mitigations

  • Find the PHP that really handles web requests (CLI, FPM, Apache mod_php, Docker, hosting panels)

  • Read distribution changelogs to tell a backported fix from a vulnerable build, even when the version number looks old

  • Check for early signs of compromise and preserve evidence before you restart anything

  • Back up and rehearse a restore, then apply temporary mitigations when you cannot patch right away

  • Patch Ubuntu and rebuild Docker images, then confirm that the running processes use the new code

  • Run smoke tests so a security patch does not quietly break your application

  • Build a routine for end-of-life versions, advisory subscriptions and a final check-fix-verify report

How the course works

Most lessons are short, focused demos you can pause and repeat in the lab. Each lesson ends with a clear takeaway, and downloadable practice material is included. The course starts with the concepts, then moves into hands-on work, and closes with what to do when you suspect a compromise.

Who this course is for

  • PHP developers and small-team server administrators who run PHP sites but are not security specialists

  • Anyone who can read an advisory but gets stuck on "how do I check this on my own server?"

Not for teams that already have dedicated security staff and an automated patching pipeline.

Requirements

  • Basic Linux command-line skills

  • Docker Desktop (free) to follow the lab on your own computer

Information in this course is current as of November 8, 2026. Always check the official PHP announcements for the latest details.

Who this course is for:

  • PHP developers and small-team server admins who run PHP sites but are not security specialists
  • Developers who read a security advisory and are unsure what to check on their own server