Officers found the car in the 1800 block of Almaden Road at about 4:30 p.m. and while trying to talk to the man and woman inside, the woman driving started moving the car back and forth.
She drove forward and struck the officer. Fearing for his life, he shot at the woman, hitting her at least once, police spokesman Officer Albert Morales said.
The woman was taken to a hospital with injuries not considered life threatening. The passenger was also hospitalized for an unknown injury, but was not struck by gunfire, Morales said.
The officer was injured as well when the car struck him but his injuries are not life-threatening, Morales said.
The department's Homicide Unit is investigating the incident, Morales said.