As medics treated Varga team-mates held up sheets around him before he was carried off the pitch.
“Multiple bones in Barnabas Varga’s were broken during the collision and he also suffered a concussion,” the Hungarian Football Federation (MLSZ) wrote on X in the early hours of Monday.
“He will most likely undergo surgery,” it added, with Varga spending the night in a local hospital.
Kevin Csoboth grabbed the winning goal in the 10th minute of stoppage time in the Group A game to keep alive the team’s hopes of making the last 16.
However, the 29-year-old Varga will play no further part in the tournament regardless of whether Hungary progress as one of the four best third-placed teams.
“It was terrible. It was a terrible moment to see Barnabas like that,” said Roland Sallai, who set up Hungary’s last-gasp winner.
“We cross our fingers that he can return quickly.
“We wanted to win for him and we dedicate the win to him.”
© Agence France-Presse
Photo by Carl Recine/Getty Image