Leinster moved up to third in the Pro12 with a hard-fought win over a battling Treviso side at the Stadio Monigo.
Tries from Lote Tuqiri and Noel Reid helped the Irish province to a 12-10 half-time lead, with fly-half Jimmy Gopperth kicking one conversion.
Ludovico Nitoglia touched down for the Italians in the first half, with Angelo Esposito adding a second-half try.
Gopperth landed three penalties, while Mat Berquist contributed two penalties and two conversions for Treviso.
Treviso were denied their first victory over Leinster since September 2010 as a late Gopperth penalty saw Matt O'Connor's men narrowly escape with a 21-20 victory.
Tuqiri bagged his first Leinster try while Reid crashed over soon after, but a Ludovico Nitoglia score and the kicking of fly-half Berquist helped Treviso claw their way back into the game.
A second-half Esposito try looked like handing Franco Smith's side an unlikely victory until Gopperth secured Leinster's fifth victory of their Pro12 campaign by the finest of margins.
Leinster's stellar record against Italian opponents made grim reading for Treviso prior to the game, the reigning champions having won their last 11 fixtures.
A more positive statistic for Treviso was that they had only lost one Pro12 game at the Stadio Monigo in 12 months - but the Italians got off to the worst possible of starts.
After Gopperth had missed an early penalty, veteran wing Tuqiri piled over the whitewash on 13 minutes for his first Pro12 score.
And in a breathless spell for the visitors Reid scored with another spellbinding effort two minutes later - Gopperth slamming home the extras after missing his first conversion attempt moments before.
The situation was beginning to look ominous for the hosts but they began their comeback attempt with a Berquist penalty midway through the half.
And Treviso dragged themselves back to within two points when Nitoglia dotted down before Berquist converted.
But Leinster were in fine form with a four-game winning streak in all competitions - and allowed themselves some breathing space after the break.
Gopperth made amends for his earlier miss to drill through a 47h minute penalty, before smashing another one between the posts six minutes later.
Treviso however had no plans to lie down for last year's champions and pulled it back to a one-score game as Berquist found the target from the kicking tee once more.
And wing Esposito bundled over on the hour-mark before Berquist's conversion completed a remarkable turnaround.
But with time running out for O'Connor's side Gopperth kept his cool to drill over his third penalty of the match, handing Leinster a dramatic victory.
Benetton Treviso: Williams, Nitoglia, Pratichetti, Loamanu, Esposito, Berquist, Semenzato, De Marchi, Sbaraglini, Fernandez-Rouyet, Fuser, van Zyl, Vosawai, Budd, Filippucci. Replacements: Ceccato, Muccignat, Di Santo, Pavanello, Giusti, Sgarbi, Ambrosini, Di Bernardo.
Leinster: Hudson, Tuqiri, Macken, Reid, Fanning, Gopperth, Cooney, Bent, Dundon, Moore, Denton, Roux, Ruddock, Jennings, Auva'a. Replacements: Tracy, J. O'Connell, Furlong, Marshall, Ryan, Reddan, Marsh, O'Shea.