BALTIMORE -- Raul Ibanez doubled in the tiebreaking run in the 12th inning, and the New York Yankees overcame a three-run deficit and a wild performance by starter Freddy Garcia in a 5-4 victory over the Baltimore Orioles on Tuesday night.
Robinson Cano led off the 12th with a double off Pedro Strop (0-1). With two outs, Ibanez hit a liner off the right-field warning track that bounced into the stands.
Mariano Rivera worked a perfect 12th for his first save this year and the 604th of his career.
Both teams had trouble in the clutch on a chilly night at Camden Yards. New York went 2 for 18 with runners in scoring position and the Orioles 0 for 8.
Garcia and Orioles left-hander Wei-Yin Chen both had memorable performances. Garcia threw five wild pitches, one short of the major league record, and Chen took a 4-1 lead into the sixth inning in his major league debut.
In the sixth, the Yankees used three hits, a walk and a costly error by third baseman Mark Reynolds to pull even and chase the 26-year-old from Taiwan.
Reynolds let in a run when he mishandled a sharp two-out grounder by Martin, and Gardner hit an RBI single.
Chen gave up a home run to his first batter, Derek Jeter, whose 25th leadoff homer broke a tie with Rickey Henderson for most in franchise history.
Garcia became the first player to throw five wild pitches in a game since Philadelphia's Ken Howell in 1989.