Gosh I hate that line. What disease? Space is sterile.
Of course McCoy was talking figuratively, but he was referring mainly about the countless alien diseases that space travelers pick up from one world and then spread to countless others across the Galaxy. Imagine all the diseases on Earth and then multiply them by the number of inhabited known worlds
and you get what he was on about..