Likely, at least for the RCE and assuming it was all safe Rust: the authors of this paper backported the upload-progress feature behind CVE-2026-109619 and the same trigger ran safely (Appendix E). They didn't test CVE-2026-109618, but my guess is it would've helped there too, although they also say at least 56 of their 173 bugs involve logical memory violations that safe Rust alone doesn't prevent.
Would rust have helped avoid the php2shell had it been done by the official project?
Likely, at least for the RCE and assuming it was all safe Rust: the authors of this paper backported the upload-progress feature behind CVE-2026-109619 and the same trigger ran safely (Appendix E). They didn't test CVE-2026-109618, but my guess is it would've helped there too, although they also say at least 56 of their 173 bugs involve logical memory violations that safe Rust alone doesn't prevent.