Updated

Kevin Hogan threw for three touchdowns, Tyler Gaffney had two touchdowns and 132 yards rushing, and No. 5 Stanford beat Army 34-20 on Saturday.

The Cardinal (2-0) entered the game as 30-point favorites but had their hands full from the opening kickoff, falling behind 6-0 at the outset as the much smaller Black Knights (1-2) challenged at every turn.

Hogan's 23-yard touchdown pass to Gaffney after an Army turnover gave Stanford a 27-13 lead late in the third quarter and the Cardinal averted an embarrassing moment. Army has not defeated a ranked team since a 17-14 win over No. 15 Air Force on Nov. 4, 1972.

Ty Montgomery had six catches for 130 yards and one score, while Hogan was 11 of 18 for 188 yards passing for Stanford.

Terry Baggett led Army with 96 yards rushing on nine carries.