CINCINNATI, DEC. 9 -- Joe Montana and Jerry Rice gave the Cincinnati Bengals another heartbreak today, setting up 23-yard field goals by Mike Cofer in the last minute of regulation and in overtime, giving the San Francisco 49ers a 20-17 triumph today at Riverfront Stadium.

The 49ers (12-1) extended their record for consecutive road victories to 17.

The Bengals' last four games against the 49ers have wound up in last-minute losses, the most recent in the Super Bowl two years ago.

The Bengals (7-6) took a 17-14 lead on Ickey Woods's one-yard run with 12:26 left. After an exchange of punts, Montana drove the 49ers 55 yards in seven plays -- hitting Rice for 29 -- to put Cofer in position with 57 seconds left.

San Francisco won the overtime coin toss and took possession at its 19. Montana hit Rice for 14 and 17 yards, then converted on third and six with a seven-yarder to the wide receiver. Cofer won it two plays later.

"We play our best football when everything's on the line," said Rice, who had eight catches for 101 yards. "Once we got the ball, I knew we were going to score."

"We beat that team," Bengals safety David Fulcher said. "It goes the same way again. . . . We've got to do something to stop them from doing what they do to us late in the game."

San Francisco played without safety Ronnie Lott (sprained knees) and Cincinnati lost safety Rickey Dixon to a broken leg late in the fourth quarter.