Two people had to be cut out of a car by firefighters in an early morning crash.