Juventus were made to work for a victory in Turin on Tuesday, but Alvaro Morata’s stoppage-time header sealed their place in the last 16.
It looked as though Juve would fall five points behind Group G leaders Barcelona as they toiled in Turin, with Ferencvaros’ goalkeeper Denes Dibusz having made a string of fine stops.
Dibusz had been beaten by Cristiano Ronaldo’s thumping 35th-minute equaliser, which cancelled out Myrto Uzuni’s opener and moved the 35-year-old level with Lionel Messi on 70 home Champions League goals.
Yet it was an error from Dibusz – who made several mistakes in the reverse outing – which ultimately cost Ferencvaros a point, the goalkeeper only able to fumble Morata’s header over the line in the 92nd minute.
Goal 50 Revealed: The best 50 players in the world