Skip to content
RCE Write-up Advanced

PHP session.upload_progress heap UAF (CVE-2026-109618 / -109619)

The text describes two session-handling flaws in PHP that survive the 2026-10-21 patch release: a serialize_handler write/read mismatch combined with upload_progress key injection that lets an unauthenticated attacker land a controlled serialized object and achieve remote code execution, and a garbage-collector double-free of the SimpleXMLElement properties table that causes a remote crash. It also states the original session.upload_progress use-after-free class is closed by the patch.

jackalsyn.com

Published on jackalsyn.com

FINAL STATUS (2026-10-21): the CVE-2026-109618 / CVE-2026-109619 memory-corruption class shipped patches 2026-10-21. On the patch, that class is closed: the cached-pointer chain dies at the addref and the serialize-state path is a memory-safety bug, not code execution.

The author, on jackalsyn.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the session write path and read path use different serialize handlers, and the upload_progress hook writes the raw field value into the session before any script runs, so a crafted key is decoded as a serialized object.

Impact

An unauthenticated attacker could achieve remote code execution as root on fully patched PHP builds, or wipe a victim's session on default installs; the second flaw causes a remote crash with silent heap corruption, and the author does not claim command execution from it.

What the attacker needed

PHP 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35; serialize handler mismatch or php_serialize write side; no authentication needed; for zero2: attacker-controlled XML parsed

The fix

The original memory-corruption class was fixed in the 2026-10-21 release, but the two surviving gaps should be fixed by pinning one serialize handler for both encode and decode, disabling or strictly validating the upload progress field, and validating XML parsed through SimpleXML.

How it was found

  1. Send an upload request whose progress field name carries a crafted serialized value.
  2. The rfc1867 hook stores that key in the session file before any script executes.
  3. The session read path decodes the value with a mismatched serialize handler.
  4. The attacker's object is instantiated and its magic methods run, yielding code execution.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

PHP keeps per-user session data in files, and it can write and read that data in different formats. If the write format and read format disagree, an attacker can slip in data that PHP later treats as a real object, which can lead to running their code. Separately, a memory-cleanup routine frees the same small block twice, which crashes the server.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.