A man being pursued by Montgomery County police Wednesday night tried to flee by climbing through the open window of a car stopped in traffic, authorities said.

Glenn Vincent Rhodes, 34, was arrested as he tried to push the driver out of a Mazda Protege, police said. They said the driver, 22, and two officers suffered minor injuries but did not need to be hospitalized.

Rhodes, who police said has no fixed address, was charged with attempted carjacking, four counts of first-degree assault, resisting arrest and about 30 traffic violations.

Police said the incident began about 10 p.m. when officers in the White Oak area spotted a Honda Accord that had been reported stolen.

Officers tried to pull over the Honda, but the driver did not stop, even after hitting a curb that punctured the front tires, officials said.

With two flat tires, the car continued to move toward Rockville “at a very slow speed,” according to police. One of the tires came off, and the driver abandoned the Honda and climbed into the Mazda, which was stopped on Randolph Road at Parklawn Drive.

After being taken into custody, Rhodes said he had smoked crystal methamphetamine a few hours earlier, according to police.

Honda passenger Jessica Allen, 23, of Edgewater was charged with possession of a controlled dangerous substance. Police said she had oxycodone.

Rhodes was convicted of theft in 2011 and sentenced to a year and a day in prison.