FOXBOROUGH, Mass. — Backup quarterback Kevin Kolb threw for one touchdown and ran for another, Stephen Gostkowski missed a potential winning field goal in the final seconds, and the Arizona Cardinals upset the New England Patriots 20-18 on Sunday.

The Patriots took over when Vince Wilfork recovered a fumble at the Cardinals’ 30-yard line with 1:01 left. A 30-yard run into the end zone by Danny Woodhead was nullified by a holding penalty against Rob Gronkowski. New England then moved to the 24 before Tom Brady spiked the ball to stop the clock with 6 seconds remaining.

But Gostkowski, who had made his other four field-goal attempts, sent a 42-yard try wide to the left.

The Cardinals (2-0) won behind Kolb, filling in for John Skelton, who missed the game with a sprained right ankle. The Patriots (1-1) lost tight end Aaron Hernandez to an ankle injury in the first quarter.