A shaft seal for a turbomachine, the process side (3) of which can be sealed off with respect to the
atmosphere (4) by the shaft seal (7, 13, 17), has a process gas seal (7, 13), which can be acted on with a process gas (10) and blocked at the process side (3), and an
atmosphere seal (17), which can be acted on with air (20) and blocked at the
atmosphere side (4), and also a ventilation chamber (22) which runs around a shaft (1) of the turbomachine, which ventilation chamber (22) is arranged between the process gas seal (7, 13) and the atmosphere seal (17) in order to collect and
discharge process gas leakage which has passed through the process gas seal (7, 13) and air leakage which has passed through the atmosphere seal (17), wherein the ventilation chamber (22) has, at the radially inner side thereof, a leakage inlet (23) and, at the radially outer side thereof, a leakage outlet (24), and also fittings (26, 27) between the leakage inlet (23) and the leakage outlet (24), wherein the fittings (26, 27) are dimensioned such that the ventilation chamber (22) has a
flame barrier function with regard to an ignition of the leakage at the leakage inlet (23), and / or the leakage in the ventilation chamber (22) is not ignitable.