You may pass another vehicle on the right if it is waiting to:

While you generally may pass only on the left, there are certain conditions under which passing on the right is permitted. You should only pass on the right if you can do so safely and you do not need to drive on or across the shoulder or edge line of the road. One situation where passing on the right is allowed is when the vehicle in front of you is making a left turn.
DMV Writen Test