Actually the bug was in the code of the morris worm itself, once it was installed it will start replicating but never checked if there were already a copy of the worm installed, so it will be copied sometimes thousands of times, each instance demanding resources and space in the disk, that's what caused the almost shutdown of the early internet.
I think the code is now open source and is in archive.org