Should Developers Move to Rust to Fix Vulnerabilities?
On 21 October 2026, two vulnerabilities in the PHP runtime were published, CVE-2026-109618 and CVE-2026-109619, which can lead to remote code execution (RCE)[1]. The first occurs when an Out of Memory (OOM) condition interrupts data structure initialization, and processing continues in an invalid state. The second is a use-after-free[2] problem across requests, where a worker reuses a pointer to memory that was already freed. Several Japanese services were temporarily shut down, some government sites were partly suspended, and the prime minister called on X for services to be halted.
The author notes that PHP2Shell was a memory-safety bug in a runtime written in C, so the real question is whether moving away from C/C++ makes sense. He cites a 2019 Microsoft statement that about 70% of its CVEs were caused by memory-safety issues, and an NSA report recommending memory-safe languages. Google's data shows that the share of Android vulnerabilities caused by memory issues fell from 76% in 2019 to 24% in a September 2024 report, with 21% of new native code written in Rust by Android 13.
The Rust for Linux and curl examples show limits: a 2024 USENIX ATC paper found that unsafe[3] code cannot always be avoided and semantic bugs remain even with memory safety, and curl removed its experimental Rust hyper backend in 2024. The author concludes that Rust greatly reduces memory bugs but cannot guarantee that bugs like PHP2Shell are prevented, since hash tables and garbage collectors often use unsafe, and that documentation and testing remain important.
Sources
-
JPZenn JA
脆弱性問題を解決するためにRustに移行するべきなのか?


