TORONTO -- The Boston Red Sox snapped their six-game losing streak against the Toronto Blue Jays on Friday with an 8-5 victory before a crowd of 21,888 at Rogers Centre.
Mauro Gomez's two-run triple against Casey Janssen broke the 5-5 tie and Ryan Lavarnway hit a sacrifice fly to go with a three-run homer to give him four runs batted in.
Jacoby Ellsbury led off the ninth with a single against Darren Oliver (3-3), who was replaced by Janssen. Cody Ross singled to left with one out. Gomez tripled to the gap in right center to put the Red Sox into a 7-5 lead. Lavarnway hit a sacrifice fly.
Reliever Chris Carpenter (1-0), who entered the game in the eighth inning, got the win. Andrew Bailey pitched the ninth for his third save.
Daisuke Matsuzaka allowed three hits but also gave up three walks and four runs in 5 1/3 innings. He hit a batter and unleashed two wild pitches that scored runs.
The Blue Jays had won their previous six games against Boston by sweeping two series at Fenway Park.
Matsuzaka left with one out in the sixth inning after he gave up a triple to Adam Lind. Clayton Mortensen replaced him and gave up a single to Yunel Escobar as Toronto cut Boston's lead to 5-4.
Colby Rasmus singled off Vicente Padilla to lead off the eighth and scored on Brett Lawrie's double to tie the game 5-5. Lind lined to left where Daniel Nava made a diving catch.
Carpenter replaced Padilla. Lawrie was thrown out at third on Escobar's grounder to short.
Escobar took second on a wild pitch. Kelly Johnson was walked intentionally but J.P. Arencibia ended the inning on a fly to center.
Toronto left-hander Aaron Laffey could not hold a 3-0 lead and lasted 3 2/3 innings. He allowed three runs and four hits including Lavarnway's three-run homer in the fourth.
The Blue Jays failed to cash in on a leadoff double by Lind in the second. Lind reached third on a groundout by Escobar but stayed there on a groundout by Kelly Johnson into a drawn-in infield and a called third strike on Arencibia.
The Red Sox had their first two hits of the game when Pedro Ciriaco and Ellsbury singled with two out in the third. They executed a double steal before Mike Aviles flied out to the warning track in right.
The Blue Jays scored twice on wild pitches by Matsuzaka in their three-run third inning.
Moises Sierra was hit by a pitch to start the inning. Anthony Gose walked. Rasmus walked with one out to load the bases. Sierra scored on the first wild pitch with the other runners moving to second and third. Lawrie walked on the second wild pitch that let Gose score. Rasmus scored when Lind grounded out to second via shortstop when the attempt to get the force at second failed.
But the Red Sox tied it in the fourth on Lavarnway's second homer of the season that followed a walk to Ross and a single by Gomez.
Nava hit a two-run, two-out single against Chad Jenkins in the fifth to put Boston into a 5-3 lead.
Aviles started the rally with a one-out single. He took second on Ross' groundout to the catcher. He was safe at third when, on Gomez's grounder to third base, he avoided Lawrie's tag for what would have been the third out. Lavarnway walked and Nava singled to right.
Notes: Blue Jays DH-1B Edwin Encarnacion was not in the starting lineup Friday after being hit by a pitch on the wrist in Thursday's 8-3 win over Seattle. He hit his 40th homer of the season in the game. ... RHP John Lackey, who is recovering from elbow surgery, threw 20 pitches of live batting practice at Fenway Park on Thursday. ... Blue Jays pitching coach Bruce Walton was back with a bruised right arm after being hit in the dugout by the barrel of a broken bat in the first inning of Thursday's game. ... Boston RHP Clay Buchholz (11-6, 4.46 ERA) will start Saturday against Toronto RHP Carlos Villanueva (7-5, 3.58 ERA).