Vacuum
The void of space is effectively empty of matter, and this vacuum is perhaps the greatest danger of outer space. A creature introduced to a vacuum immediately begins to suffocate (see Suffocation and Drowning on page 404) and takes 1d6 bludgeoning damage per round (no saving throw). Because a vacuum has no effective temperature, the void of outer space presents no dangers from cold temperatures. A creature retains its body heat for several hours in a vacuum. Sound doesn’t travel in a vacuum.
Decompression occurs when a creature suddenly transitions from a pressurized environment to a vacuum, such as by being flung out of an airlock or being inside a sealed structure that becomes heavily damaged. Such a creature takes 3d6 bludgeoning damage (no saving throw) in addition to any suffocation damage.
Most creatures travel the vacuum of space in a starship. For more information about starships, see page 292.
Source
Core Rulebook pg. 394