Philippe Coutinho and Neymar scored two late goals as Brazil overcame Costa Rica 2-0 to go top of group D.
Coach Tite’s team were heading for a second inglorious draw when Barcelona midfielder Coutinho popped up to poke home from Roberto Firmino’s nod down.
And with seconds remaining Neymar, the world’s most expensive player, tapped in Douglas Costa’s cross to secure Brazil’s first win of the tournament.
Their hopes of victory looked to have been dashed when they had a penalty decision overturned by VAR in the 78th minute after referee Bjorn Kuipers had initially ruled Neymar had been brought down in the area.
As it stands Brazil currently lead Group E and could go through with a draw in their final pool match against Serbia.