IT Essentials

A heap UAF in PHP's session.upload_progress — and a lesson in reading CVEs

A heap use-after-free in PHP's session.upload_progress, where an allocation failure leaves serialized state for the next request in the same process — and why the proposed cache-pointer attack path was rejected on refcount grounds. A short lesson in judging memory-safety CVEs.

Background: state that outlives a request, and what UAF means

PHP deployments commonly reuse one process across many requests. That helps performance, but memory state left uncleaned by one request can survive into the next. The session.upload_progress feature records file-upload progress in the session, stored in serialized form. Use-after-free (UAF) is the canonical memory-safety defect: memory is used after it has been freed, and if an attacker can influence what gets reallocated into that space, it can escalate toward information disclosure or code execution.

What happened

According to the analysis carried on GeekNews, an allocation failure while processing upload progress leaves serialized state behind; the next request in the same process reuses it, producing a heap UAF. The issue carries two identifiers, CVE-2026-109618 and CVE-2026-109619, though the summary this piece is based on does not clarify how the two divide the problem.

Why the proposed attack path was rejected

The most durable lesson is in the verification. The initially proposed attack path via cache pointers does not hold, per the source’s analysis: a refcount increment keeps the target array alive, so no free ever happens — and with no free, there is no use-after-anything. A bug’s existence and a working attack path are separate judgments; the first checkpoint when reading a UAF report is whether the free actually occurs.

Why this holds up a year from now

Error paths such as allocation failure sit where ordinary tests rarely reach, which is why memory defects keep surfacing there. And the habit matters: treat “the bug exists” and “exploitability is verified” as separate determinations. The summary this article relies on does not establish affected versions, patch status, or whether other paths are exploitable; the fuller analysis and discussion live in the original GeekNews thread.

Sources

Drafted by AI from the original sources and reviewed by an editor before publishing. Check the sources for the authoritative details.

#PHP #memory-safety #UAF #CVE #vulnerability-analysis

← IT essentials