That allowed the Eagles to tack on the rushing yards in the second half, with Brian Wesbrook finished with a career-high 148 yards.
The Dolphins, as they did last week against Buffalo, led at halftime but should have been ahead by more.
This time, the lead was 7-3, thanks to Ginn's 87-yard punt return for a touchdown, which tied the franchise record set by Tom Vigorito in 1981.
The Eagles, meanwhile, were held to a David Akers field goal.
But Philadelphia quickly grabbed the lead on the first drive of the second half on a touchdown run by Correll Buckhalter. It came one play after Will Allen forced a fumble that was recovered by Vonnie Holliday but was nullified because Allen was offisde.
That came against A.J. Feeley, who replaced an injured Donovan McNabb in the first half.
Feeley didn't do much against his former team, but he did throw a touchdown pass to Jason Avant to make it 17-7 in the fourth quarter.
The Dolphins had a chance to cut into the lead after getting a first-and-goal from the Philadelphia 1-yard line midway through the fourth quarter, but they were turned away after Coach Cam Cameron made the terrible decision to go for the touchdown on fourth down from the 1.
The Dolphins called for Beck to look right and then pitch to his left to Jesse Chatman, but Beck didn't make much of a fake and the Eagles chased down Chatman before Juqua Thomas tackled him at the 14-yard line.
The obvious move there should have been to kick a field goal to make it a one-score game, and that's one decision Cameron is going to have to explain.
It might not have mattered anyway because the Dolphins offense again was so anemic.
Miami finished with 186 total yards and had only nine first downs.
On the bright side, Ginn had a nice game overall, as did 2006 first-round pick Jason Allen.
In addition to his touchdown, Ginn led the Dolphins with four catches for 52 yards, while Allen recorded two interceptions to go along with five unassisted tackles.
But the bottom line was yet another loss, as the Dolphins became the 13th team since the 1970 AFL-NFL merger and the first since the 2001 Detroit Lions to start 0-10.