InfraRunBook
    Back to articles

    CVE-2026-129289 and 6 more: PHP use-after-free, FPM request smuggling and session RCE flaws - affected versions and fix

    CVE Advisories
    Published: Nov 19, 2026
    Updated: Nov 19, 2026

    PHP published seven critical (CVSS 4.0 9.2) advisories on 2026-11-19. They cover use-after-free bugs, session deserialization, session file overwrite and PHP-FPM request smuggling. Fixed in PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13.

    CVE-2026-129289 and 6 more: PHP use-after-free, FPM request smuggling and session RCE flaws - affected versions and fix

    At a glance

    • CVE ID(s): CVE-2026-129289, CVE-2026-129474, CVE-2026-129481, CVE-2026-115560, CVE-2026-129182, CVE-2026-129496, CVE-2026-126714
    • Severity: All seven are CVSS 4.0 9.2 CRITICAL. CVE-2026-129289, CVE-2026-129182 and CVE-2026-126714 use
      CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
      . The other four use the same vector with AC:H.
    • Vendor / product: PHP Group / PHP (PHP-FPM, mod_php, CGI and the session extension, depending on the CVE)
    • CVE-2026-129289 (PHP-FPM request smuggling via unread request body), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
    • CVE-2026-129474 (use-after-free in magic method backtraces), CVSS 9.2. Affected: 8.5.* before 8.5.13. Fixed: 8.5.13.
    • CVE-2026-129481 (use-after-free after interrupted session shutdown), CVSS 9.2. Affected: 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.3.37, 8.4.28, 8.5.13.
    • CVE-2026-115560 (session serializer mismatch), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
    • CVE-2026-129182 (use-after-free via last_fatal_error_backtrace after shutdown), CVSS 9.2. Affected: 8.5.* before 8.5.13. Fixed: 8.5.13.
    • CVE-2026-129496 (timezone cache use-after-free, non-thread-safe builds), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
    • CVE-2026-126714 (partially overwritten session files), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
    • Exploited in the wild: No known exploitation. None of the seven is listed in CISA KEV.
    • Attack vector: Network, no authentication and no user interaction in the CVSS vectors. Attack requirements are present for all seven, and most need specific configuration. Details are below.
    • Published by: php (CNA), all on 2026-11-19
    • Official advisory: GHSA-qc49-hpvq-g2w6 (CVE-2026-129289). The other advisories are linked under References.

    What is this vulnerability?

    This is a batch of seven PHP advisories published together. Five are memory or state bugs. Two are logic flaws in session handling and FPM request parsing. Here is each one in plain terms.

    • CVE-2026-129289 (PHP-FPM request smuggling). If an application opens
      php://input
      and does not read it to the end, PHP does not discard the rest of the body at request shutdown. If the front end reuses backend connections, PHP-FPM can parse the leftover bytes as a new FastCGI request. One crafted multipart/form-data request can forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE. That can lead to execution of attacker-controlled PHP code. With LSAPI, later requests on the same connection can be disrupted. Connection reuse is not the default in nginx or Apache. Examples of settings that enable it are nginx
      fastcgi_keep_conn on
      and Apache mod_proxy_fcgi
      enablereuse=on
      .
    • CVE-2026-129474 (magic method backtraces). PHP 8.5 can read stale values when it collects arguments for a backtrace of a call handled by
      __call()
      or
      __callStatic()
      . A fatal error at that moment, such as hitting memory_limit, can corrupt memory. The attacker needs enough control over request data to influence allocation. This needs fatal_error_backtraces enabled (the default in 8.5) and zend.exception_ignore_args disabled.
    • CVE-2026-129481 (session shutdown). If a fatal error occurs in an application callback during session variable destruction, a stale filename pointer survives. A later request on the same worker can free it. The advisory says code execution has not been demonstrated. It needs the filename in request memory, for example when the script is not cached by OPcache. The advisory describes it as an incomplete fix for CVE-2026-109619.
    • CVE-2026-115560 (serializer mismatch). Session upload progress can store attacker-controlled data in a session key under the php_binary or php_serialize serializer. If that session is later read with the php serializer, bytes in the key reach the unserializer. Code execution needs a suitable gadget chain in the reading application.
    • CVE-2026-129182 (last_fatal_error_backtrace). A fatal error while INI settings are restored at shutdown can repopulate a stored backtrace after cleanup. A later request on the same PHP-FPM or mod_php worker can then touch freed memory. It needs per-path configuration, and an early diagnostic enabled by Apache per-directory configuration or by a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end.
    • CVE-2026-129496 (timezone cache). This affects non-thread-safe builds only. A diagnostic written to a file-based error_log during module startup leaves the timezone cache in freed memory. A diagnostic early in a worker's first request, such as the max_input_vars warning, then touches it. An unauthenticated attacker can crash workers with a crafted request. Code execution may be possible and was demonstrated with known memory addresses.
    • CVE-2026-126714 (session files). The default files session handler writes into the existing session file without clearing it. An interrupted write can leave the start of the new session followed by the end of the old one. Bytes of an ordinary string can then be unserialized as objects. An attacker who can influence session data and interrupt a write may inject objects.

    How does it affect you?

    The worst case is remote code execution with the privileges of the PHP worker. Other outcomes are worker crashes, session corruption and denial of service.

    The realistic risk depends on your setup. All seven are scored 9.2, but most need specific conditions on top of an unpatched version.

    • CVE-2026-129289 is the one to look at first. Its attack complexity is Low, it needs no authentication, and the code-execution path is reachable through one crafted request. It only applies if your front end reuses FastCGI connections to PHP-FPM, and an application must leave
      php://input
      unread.
    • The session CVEs (115560, 126714) depend on session upload progress, serializer mismatches, or a usable gadget chain in your code or libraries. The advisory for 115560 reports command execution using Guzzle and Monolog gadgets in a test setup.
    • The use-after-free CVEs (129474, 129481, 129182, 129496) need precise memory conditions. The advisory for 129474 says code execution needs knowledge of usable memory addresses, and that exploitation of a full Laravel or Magento install has not been demonstrated.

    No exploitation in the wild is known. Treat that as a snapshot from publication day, not a guarantee.

    Who is affected?

    You are in scope if you run PHP 8.2 through 8.5 below the fixed release for your branch:

    • 8.2.x before 8.2.36
    • 8.3.x before 8.3.37
    • 8.4.x before 8.4.28
    • 8.5.x before 8.5.13

    Branch coverage differs by CVE. 129474, 129182 are 8.5 only. 129481 covers 8.3, 8.4 and 8.5. The other four cover 8.2 to 8.5. Versions older than 8.2 are not listed in the records. The advisory for 115560 notes that session upload progress has existed since PHP 5.4.0 and that older unsupported releases may also be affected. For other unsupported versions, check the vendor page.

    Narrower exposure conditions:

    • PHP-FPM behind nginx or Apache with connection reuse (129289).
    • Non-thread-safe builds with a file-based error_log (129496).
    • Shared session stores or runtime changes to session.serialize_handler, with upload progress enabled (115560).
    • The default files session handler (126714).
    • Per-path INI overrides via .user.ini, Apache per-directory config or PHP_VALUE / PHP_ADMIN_VALUE (129182).

    How to check if you are vulnerable

    1. Find the PHP version of every runtime, not only the CLI. Run
      php -v
      for the CLI. For FPM and Apache, check the packaged version through your package manager, or use phpinfo output from a protected admin context.
    2. Compare to the fixed versions above. Vendors and distributions may backport fixes without changing the version number, so check your distribution's security notices for the exact package release.
    3. For CVE-2026-129289, review your front-end config. In nginx, look for
      fastcgi_keep_conn on
      . In Apache, look for mod_proxy_fcgi with
      enablereuse=on
      . If neither is set, the advisory says connection reuse is not the default.
    4. For CVE-2026-129474, check the effective values of fatal_error_backtraces and zend.exception_ignore_args in the FPM pool or Apache config. The CLI config can differ from the web config.
    5. For the session CVEs, check whether session.upload_progress.enabled is on, which serializer each application uses, and whether applications share one session store.
    6. For CVE-2026-129496, check whether the build is non-thread-safe and whether error_log points to a file.

    How to fix and recover

    Upgrade to the fixed release for your branch: 8.2.36, 8.3.37, 8.4.28 or 8.5.13. The advisories say to upgrade when the release becomes available. If your package source does not offer it yet, apply the mitigations below and check your distribution for updates.

    1. Upgrade PHP on all hosts and containers, including build images.
    2. Restart PHP-FPM or the web server so workers load the new version.
    3. Verify with
      php -v
      and by checking the FPM or Apache runtime version.
    4. Note the behavior change in the fix for CVE-2026-115560. Session upload progress is disabled by default and runtime changes to session settings are rejected while upload progress is enabled. An explicit setting in your config overrides the new default.
    5. If the upload-progress feature stays on anywhere, all readers and writers of that session data must use the same session.serialize_handler, even after patching.

    If you suspect compromise, which is most relevant for exposed FPM setups with connection reuse:

    • Review web and FPM logs from before the patch for unusual multipart/form-data requests, unexpected script paths, and worker crashes.
    • Look for new or modified PHP files and unexpected child processes of the PHP user.
    • Rotate secrets the PHP worker could read, such as database passwords, API keys and application keys.
    • Invalidate existing sessions. Where session stores were shared across serializers, expire or migrate old records.
    • Restore known-good configuration and application code from trusted sources.

    Workarounds and mitigations

    These come from the advisories. Use them only until you can patch.

    • CVE-2026-129474: set
      zend.exception_ignore_args=1
      in the config used by the workers and restart them.
      php.ini-production
      already sets this. Setting
      fatal_error_backtraces=0
      also prevents this attack path on PHP 8.5. Changing only the CLI config is not enough, and display_errors=0 does not help. Request-size limits help but are not a complete substitute.
    • CVE-2026-129481: avoid fatal errors in callbacks reached during session cleanup. For PHP-FPM,
      pm.max_requests=1
      with a worker restart prevents the demonstrated sequence from reaching a second request on one worker, at a performance cost. Disabling session upload progress does not address this path. Enabling OPcache alone is not a reliable mitigation.
    • CVE-2026-115560: keep
      session.upload_progress.enabled=0
      in every configuration that can write to the affected session store. Set it administratively before request input is processed, because calling ini_set() from the application is too late. Where the feature is needed, use one serializer everywhere and isolate session storage between applications that need different formats.
    • CVE-2026-129289, CVE-2026-129182, CVE-2026-129496, CVE-2026-126714: the advisory text provided does not state a vendor workaround. Patching is the fix. For 129289 you can also review whether backend connection reuse is needed at all, since the issue requires it. That is our reading of the conditions, not a vendor-stated mitigation. Check the vendor page for any updates.

    What to monitor

    • FPM and PHP error logs: repeated worker crashes, segfault messages, or fatal errors about memory_limit that line up with large requests.
    • Web and proxy logs: large multipart/form-data requests, especially to endpoints that open
      php://input
      , and requests that are followed by backend errors.
    • Process activity: shells or unexpected programs spawned by the PHP worker user.
    • File changes: new PHP files in web roots, upload directories and session directories.
    • Session store: corrupted or oddly large session files, and decode failures in application logs.
    • Configuration drift: upload progress being re-enabled, serializer settings changing, or fastcgi_keep_conn and enablereuse being turned on.
    • Advisory pages: the advisories say patched builds were still to be released for some branches at publication time. Watch them for updates.

    References

    Frequently Asked Questions

    Which PHP versions fix these vulnerabilities?

    PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13. CVE-2026-129474 and CVE-2026-129182 affect only 8.5 and are fixed in 8.5.13. CVE-2026-129481 does not affect 8.2. The advisories say to upgrade when the release is available for your branch.

    Is any of these PHP flaws exploited in the wild?

    No known exploitation. None of the seven CVEs is listed in CISA KEV as of the publication data.

    Is CVE-2026-129289 exploitable on a default nginx or Apache setup?

    The advisory says it requires the front end to reuse backend connections, which is not the default in nginx or Apache. Examples are nginx fastcgi_keep_conn on and Apache mod_proxy_fcgi enablereuse=on. An application must also leave php://input unread. Patch anyway.

    Does zend.exception_ignore_args stop CVE-2026-129474?

    Yes, for the demonstrated remote attack. Setting zend.exception_ignore_args=1 in the config used by the workers, then restarting them, prevents it. php.ini-production already sets it. Setting fatal_error_backtraces=0 on PHP 8.5 also prevents this path. Changing only the CLI config is not enough.

    What changes after patching for session upload progress?

    The fix for CVE-2026-115560 disables session upload progress by default and rejects runtime changes to session settings while it is enabled. An explicit setting in your config overrides the default. If you keep it enabled, all readers and writers of that session data must use the same serializer.

    Related Articles

    CVE-2026-123903: VMware vCenter Server authentication bypass - affected versions and fix

    CVE-2026-123903 is a critical (CVSS 9.8) authentication bypass in the VMware Directory Service used by VMware vCenter Server. Broadcom lists fixed releases for vCenter 9.1, 9.0 and 8.0, VMware Cloud Foundation 5.x and the Telco Cloud products.

    CVE-2026-123910, CVE-2026-123911, CVE-2026-123912: VMware ESX critical I/O filter and XHCI flaws - affected versions and fix

    Broadcom disclosed three critical VMware ESX flaws: two in the I/O filter service (CVSS 9.8, network-reachable, no authentication) and one in the XHCI USB controller (CVSS 9.3). Fixed builds are available for ESX 9.1, 9.0 and 8.0, VCF 5.x and Telco Cloud Platform.

    CVE-2026-136412: OpenResty stream-lua-nginx-module use-after-free via receiveuntil() - affected versions and fix

    CVE-2026-136412 is a use-after-free in OpenResty stream-lua-nginx-module before 0.0.20rc4. A garbage-collected receiveuntil() iterator can leave a stale pointer that crashes or corrupts the nginx worker. Upgrade to 0.0.20rc4 or later.

    CVE-2026-123172: SolarWinds Serv-U privilege escalation to root on Linux - affected versions and fix

    CVE-2026-123172 is a privilege escalation flaw in SolarWinds Serv-U 2026.3 and earlier. It can lead to root on Linux installs, and the risk is lower on Windows. SolarWinds fixed it in Serv-U 2026.4.

    CVE-2026-82321 and 7 more: SolarWinds Serv-U privilege escalation flaws - affected 2026.3 and below, fixed in 2026.4

    SolarWinds disclosed eight privilege escalation flaws in Serv-U 2026.3 and earlier. Each lets a domain administrator or higher gain more access. SolarWinds fixed all eight in Serv-U 2026.4. No exploitation is known.

    CVE-2026-134624: N-able MailAssure (SpamExperts) SSRF in relay LDAP sync check - affected versions and fix

    CVE-2026-134624 is a server-side request forgery flaw in N-able MailAssure (SpamExperts) before 20261121.1943. An authenticated API user can make the server probe internal hosts and ports and send crafted data to internal services. It is listed in CISA KEV.