CORVALLIS, Ore. - Justin Cobbs had 18 points and surging California won its fifth straight game by outlasting a late rally from Oregon State for a 60-59 victory on Saturday.

California (18-9, 10-5 Pac-12) has won seven of its last eight games, including victories over then-No. 7 Arizona and No. 23 Oregon.

The Golden Bears are suddenly sneaking up the Pac-12 rankings, joining Arizona, Oregon and UCLA, and positioning themselves for a possible NCAA tournament berth with three games left.

The Golden Bears led by as many as 14 points, but Oregon State cut it to 45-42 on Joe Burton's layup with 8:32 left in the game. The Beavers (13-15, 3-12) stayed within reach and Devon Collier's layup cut Cal's lead to 58-55 with 1:47 left.

Cobbs hit a jumper from atop the key for California before Collier made four straight free throws to pull within 60-59 with 43 seconds left.

With 10 seconds left, Cobbs missed a jumper out front. But Ahmad Starks' 3-point attempt missed with a second left on the clock to end it.

Burton, a senior playing his last game at Gill Coliseum, had 15 points, nine rebounds and seven assists.

The Golden Bears were coming off a 48-46 victory over the Ducks in Eugene on Thursday. Cobbs' jumper with less than a second to play won it for Cal.

The Beavers were coming off an 82-72 loss to Stanford on Thursday. Oregon State has lost three straight.

• Oregon 77, Stanford 66:

In Eugene, Ore., John-athan Loyd had season highs of 15 points and nine assists to lead No. 23 Oregon.

Carlos Emory led the Ducks with 19 points and Arsalan Kazemi scored 15 points for the Ducks (22-6, 11-4 Pac-12), who gave coach Dana Altman his 600th career win and remained with Arizona atop the league standings.

Loyd, making his ninth start in place of injured point guard Dominic Artis, sparked Oregon. The junior was 6 of 8 from the field.

Dwight Powell led the Cardinal (16-12, 7-8) with 16 points and Josh Huestis had 12 points and 13 rebounds.

Oregon led 30-26 at halftime but outscored the Cardinal 11-4 early in the second half to go up 46-34 with 13:50 to play. Stanford never got closer than 10 points the rest of the way.

Washington at Arizona State, late.