Sure, there are other concerns and bash is not an ideal language, but memory safety is responsible for quite a large number of security flaws, since its lack turns bugs into code execution vulnerabilities on a regular basis.
I don't really have an opinion on what language should have been picked instead, though OCaml may be a good candidate.