Its impossible for most of the micro organisms to survive vaccum. But microscopic tardigrade—also known as the water bear—is the only animal that can survive the cold, irradiated vacuum of outer space.
How do they do it ?
Tardigrades will enter a state called desiccation, in which they shrivel up—losing all but around 3 percent of their body's water and slowing their metabolism down to an astonishing 0.01 percent of its normal speed. In this state, the tardigrade just persists, doing nothing, until it's inundated with water again.
So in vaccum they live in this state. But if they cannot find water after a very long time they will die. It have known that they have survived upto 555 days in space!!