The Cardinals trailed 10-0, giving up two quick scoring drives. They took a 17-13 after a 94-yard touchdown drive.
But the 49ers have answered with a 78-yard drive of their own.
Quarterback Kyler Murray ran 22 yards to the end zone to give the Cardinals their first lead with 10:26 remaining in the fourth quarter. He leads Arizona with 84 rushing yards on nine carries, and he has completed 22 of 35 passes for 182 yards with a touchdown and an interception.
The Cardinals got plenty of help from the 49ers defense on the go-ahead drive.
On a second-and-21 play, Kerry Hyder was called for a questionable unnecessary roughness penalty. Murray slid feet first and Hyder when over the top of Murray, barely grazing him. Fox rules analyst Dean Blandino second-guessed the penalty.