There is a solution if there is a ssh connection and a working share.
You should download file http://ftp.altlinux.org/pub/people/boyarsh/wd/libc.so.6 (or extract /lib/arm-linux-gnueabihf/libc-2.17.so from firmware image and name it libc.so.6) and put it on share.
Let it be /DataVolume/shares/Public/libc.so.6
Then you can type in you ssh connection:
export LD_PRELOAD=/DataVolume/shares/Public/libc.so.6
and then you can execute most commands.
Personally, I uploaded a tar image of rootfs extracted from firmware to share, untared it and rsynced /lib /usr and /var/lib from it to device rootfs.
You can also go to /lib/arm-linux-gnueabihf/ and relink all links from *2.19* to 2.17