CORVALLIS, Ore. – With the game on the line, Oregon State had to switch quarterbacks to a player who had yet to play for the Beavers.

No trouble at all.

Taking his first Division I snap after starter Tristan Gebbia limped off, Chance Nolan scored on a 1-yard, fourth-down run with 33 seconds left to give Oregon State a 41-38 victory over No. 15 Oregon on Friday night.

Jermar Jefferson ran for 226 yards and two touchdowns to help the Beavers (2-2 Pac-12) win their second game in a row. Jefferson has run for at least 100 yards in each of Oregon State's four games and is on pace to hit 1,000 despite the short season.

Jefferson said the win meant "everything" because of losses to the Ducks in his first two seasons.

"I really don't feel like I get the recognition I deserve," he said. "I've just got to put my head down and keep working hard. I've been underrated my whole life, so I'm used to it."

Oregon (3-1, No. 9 AP) had won six in a row and its previous three games vs. the rival Beavers. The loss dashed any slim hopes the Ducks had of the College Football Playoff.

Gebbia threw for 263 years and a score and had a touchdown run during a foggy game at Reser Stadium. While no fans were allowed in the game, cars passing near the stadium honked for the home team in the aftermath.

Oregon State's last win over a ranked team came in 2014 vs. No. 7 Arizona State.

Tyler Shough threw for 266 yards and two touchdowns for Oregon, but he also threw two interceptions.

"Got to finish games," Ducks coach Mario Cristobal said. "We didn't finish it."

It was the 124th edition of the rivalry that dates to 1894. This summer amid racial injustice protests nationwide, both schools decided to drop the "Civil War" nickname.

The lead changed three times in the fourth quarter, which began with Oregon leading 31-19. On the Beavers' final possession, Gebbia appeared to score but officials put the ball on the 1 on third down. Gebbia ran again, and limped to the sideline while the play was under review. Oregon was offside, but no penalty was called.

That set up Nolan's TD run on fourth down on the only play of his Beavers career.

"It means a lot to a lot of people, not just the guys sitting in the locker room," Oregon State coach Jonathan Smith said. "It's too bad Reser Stadium could not be filled right now."