By Bryan Hoch / MLB.com NEW YORK -- Juan Miranda dodged an inside pitch from Hideki Okajima to draw a bases-loaded walk and put an exclamation point on the Yankees' 10th-inning 4-3 victory over the Red Sox at Yankee Stadium on Sunday night. In their last turn at bat following a Mariano Rivera blown save, the Yankees got to Jonathan Papelbon and sent the game to extra innings, with Robinson Cano's bases-loaded single driving home the tying run. After Joba Chamberlain and Boone Logan kept Boston quiet in the top of the 10th, Okajima relieved and loaded the bases on a Curtis Granderson hit, a Brett Gardner bunt single and an intentional walk to Derek Jeter. One out later, Miranda turned away from a 3-1 pitch that forced home the game-winning run. Bill Hall and Mike Lowell drove in runs off Rivera to give Boston a 3-2 lead with three outs to go. Ryan Kalish stroked a one-out single to center field and stole both second and third bases, coming home on Hall's game-tying single past Alex Rodriguez at third base. With Rivera struggling to hold runners, Hall followed Kalish's example and stole both second and third on the legendary closer, scoring the go-ahead run for Boston on Lowell's pinch-hit sacrifice fly. Boston's ninth-inning rally erased a lead crafted by A-Rod's two-run homer off Boston starter Daisuke Matsuzaka in the seventh inning, an opposite-field blast that was Rodriguez's 29th of the year. Rodriguez pumped his right fist in the air and clapped his white batting gloves repeatedly, continuing a trend that saw all 13 Yankees runs in the series cross the plate via home runs. It was the first solid strike of the night against Matsuzaka, who limited New York to two singles over his first six scoreless innings. After losing the first two contests of the weekend to Boston, New York reversed course and sent Phil Hughes to the mound instead of Dustin Moseley, who had been announced as the scheduled starter, with Hughes originally intended to be pushed back due to a looming innings restriction. But with their lead in the AL Wild Card race trimmed to 5 1/2 games entering play on Sunday, the Yankees decided to take their chances with the 17-game winner instead. Informed late Saturday that he should get ready to face the Red Sox, Hughes delivered about as strong a performance as his team could have hoped for. Hughes limited the Red Sox to one run on three hits in six-plus innings, touched only by a Victor Martinez RBI single in the third inning as the Yankees angled into position to snap their four-game losing streak, the longest of the season at Yankee Stadium. The right-hander struck out four and walked four, including the final two Red Sox batters he faced, but Dave Robertson came on to bail Hughes out of a key jam in the seventh inning. After a sacrifice bunt, the Yankees played the infield in and Hall smacked a hard grounder to Derek Jeter at shortstop for a putout, with Adrian Beltre unable to try for home plate. Robertson followed by striking out Lars Anderson on a third strike in the dirt to escape. The Red Sox also threatened in the eighth against Kerry Wood, getting the go-ahead run on board with two outs thanks to an intentional walk to David Ortiz. Rivera was summoned for the first time since Sept. 20 and got Beltre to ground out, ending the inning.