score:2
Answering my own question:
I have called the airline to confirm, and the answer is that in this kind of situation one does not need a visa provided that they stay in the international transit area of the airport for less than 24 hours.
see also for example
https://en.wikipedia.org/wiki/Visa_policy_of_Russia#Visa-free_transit