Koji Uehara isn't perfect after all.
Uehara, who had retired the previous 37 hitters in succession, allowed a leadoff triple to Danny Valencia in the ninth inning, followed by a sacrifice fly to Matt Wieters, giving the Baltimore Orioles a 3-2 victory over the Red Sox.
The run was the first off Uehara after a stretch of 27 scoreless appearances, dating back to June 30.
The loss cost the Red Sox a chance to clinch a playoff spot, but with Tampa Bay's loss to Texas, Boston's magic number for clinching the division dropped to three.
An inning earlier, Craig Breslow had bailed the Sox out of a second-and-third, no-out jam by when he took over for Brandon Workman and got three outs on six pitches.
The Red Sox had led 2-1 after five innings, but Chris Davis homered off starter Ryan Dempster in the sixth, tying the game at 2-2. It was the 51st homer of the season for Davis, establishing a new Baltimore franchise record.
A leadoff walk by Valencia, a double by J.J. Hardy and a groundout from Brian Roberts had given the O's their first run.
The Sox had taken a quick 1-0 lead when Dustin Pedroia led off the bottom of the first with a homer into the Monster Seats, his first homer since July 31.
Taking advantage of two errors by the Orioles in the fourth, the Sox took a 2-0 lead.
STAR OF THE GAME: Danny Valencia
The former Red Sox utility player walked and scored the first run of the night for the O's, then led off the ninth with a triple to center, resulting in the winning run being scored.
HONORABLE MENTION: Chris Davis
Davis set a franchise record with his 51st homer of the season, leading off the sixth inning and tying the game at 2-2. Four of those 51 have been hit in Fenway this season.
GOAT OF THE GAME: Shane Victorino
Victorino, filling in in center field for Jacoby Ellsbury, made some rough reads on balls. He overcame one to make a tremendous running catch on Nick Markakis in the sixth, but couldn't rebound on Danny Valencia's triple in the ninth.
TURNING POINT: The Red Sox had a chance to put the Orioles away early, but couldn't cash in. They had the bases loaded with two outs in the second, but couldn't get a run in, and two innings later, had second-and-third with one out, but scored just one.
BY THE NUMBERS: Stephen Drew stole two bases Tuesday night, becoming the first Red Sox shortstop to steal multiple bases in a game since Julio
Lugo in 2007.
QUOTE OF NOTE: "When was the last time he gave up a run -- spring training?" Ryan Dempster on teammate Koji Uehara, who saw his string of 27 straight appearances snapped when he gave up the game-winning run in the top of the ninth.