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
Real Madrid down Atletico in derby, leaders Barca edge Rayo
Laporta stopped Messi's Barcelona return to avoid power struggle, Xavi says
Newcastle eye history in Champions League clash with Barcelona
Barca must 'make the impossible possible' vs Atletico, says coach Flick