Barcelona playmaker Sergio Roberto scored in injury time to take Barcelona through with a 6-1 win on the night over Paris Saint-Germain and a 6-5 aggregate victory.
Barcelona gave themselves a chance of overturning their four-goal first-leg deficit with goals from Luis Suarez, Lionel Messi and an own goal from Layvin Kurzawa got the Spanish giants back to 4-3 on aggregate.
With Barcelona having only one goal, Cavani smashed the ball into the roof of the net to hand PSG the away goal.
Barcelona scored two more goals through Neymar to make things interesting before Sergio Roberto scored the crucial sixth to progress to the quarter-finals of the Champions League.
READ MORE
'Best in world' Yamal powers Barca to Betis rout, Atletico strike late
PSG fight back to beat Strasbourg after Dembele penalty miss
PSG 'got lucky' to win Man City thriller, says Luis Enrique
Yamal stays cool at boiling Galatasaray to lift Barcelona to victory