NEW YORK — On a night when Mariano Rivera and Jonathan Papelbon blew ninth-inning leads, Juan Miranda drew a bases-loaded walk from Hideki Okajima in the 10th that gave the Yankees a 4-3 win over the Red Sox on Sunday.
New York stopped a four-game skid to cut its magic number to one for its 15th playoff berth in 16 years. It closed within a half-game of the AL East-leading Rays.
Boston lost its fifth in 13 games and fell 6½ behind the Yankees in the wild-card race with seven games left.
Alex Rodriguez put New York ahead 2-1 with a two-run drive in the seventh off Daisuke Matsuzaka.
Ryan Kalish and Bill Hall each stole two bases against Jorge Posada and Rivera in the ninth. Hall singled in the tying run, and pinch-hitter Mike Lowell hit a sacrifice fly.
Nick Swisher, Mark Teixiera and Robinson Cano singled off Papelbon in the bottom half to tie it at 3.