Tyree Jackson hit David Sills V for the game-winning 8-yard touchdown with eight seconds left, capping a spree of three touchdowns in the final 3:53 as the Buffalo Bills rallied past the Minnesota Vikings for a 27-23 win in Orchard Park, N.Y., on Thursday.

Jackson, an undrafted rookie out of Buffalo, finished 22 of 33 for 175 yards and the score. He also rushed for 78 yards and a touchdown on eight carries.

Kicker Kaare Vedvik missed a 37-yard field goal for the Vikings, his third straight miss since being acquired from Baltimore for a fifth-round pick. He later made a 27-yarder.