Cal Fire crews had to cut through the car to free the victims, who were taken to Inland Valley Hospital.
The cause of the accident was under investigation, and the names and genders of the victims were not immediately released.
City News Service contributed to this report.