Rust and go don't have a C backbone like PHP does. So they are inherently safer to these kinds of vulnerabilities.
(Of course there's Log4shell, but that could've happened to a Rust-based stack too, and might be more likely to, considering the proliferation of deeply-nested dependency trees full of tiny libraries in that ecosystem.)