Security Through Binary Patching: fixing critical PHP CVEs with radare2 in 24 bytes, no recompile

SIGKITTEN · x · 2026-10-23

radare2 author pancake demonstrates patching the two critical PHP RCEs (CVE-2026-109618, an OOM-handling bug, and CVE-2026-109619, a cross-request use-after-free) directly in binaries, without recompiling or waiting for distro updates. With the gap between upstream fix and sysadmin patching being actively scanned by attackers, he suggests interim mitigations (disable multipart/form-data in Apache, rewrite headers at the proxy) and shows how 24 bytes of binary patches via r2 oneliners neutralize the bugs — plus tangents like having an LLM rewrite PHP into a Rust FastCGI.

Original post →

More from Safety

Safety channel →