Security concerns are very clustered around limited attack surface, that many apps just don't have.
coreutils ls: https://git.savannah.gnu.org/cgit/coreutils.git/log/src/ls.c
freebsd ls: https://github.com/freebsd/freebsd-src/commits/927f8d8bbbed7...
busybox ls: https://git.busybox.net/busybox/log/coreutils/ls.c
openbsd ls: https://github.com/openbsd/src/commits/master/bin/ls/ls.c
The latter seems to be the most stable, yet has been updated two years ago, many years after its first introduction.
Like this https://www.exploit-db.com/exploits/33508