A Brazilian federal appeals court judge on Tuesday overturned a ruling barring Venezuelan immigrants fleeing economic and political turmoil from entering the country, said the Solicitor General's office, which had made the appeal.

On Sunday, a federal judge in the northern state of Roraima ordered the border closed until the state could create "humanitarian" conditions to receive a massive influx of Venezuelans, who have overwhelmed state social services and caused a growing humanitarian crisis.

Appeals court judge Kassio Marques acknowledged "grave violations of the public and judicial order" but overturned the lower court's ruling. He said the closure would not help to improve humanitarian conditions for Venezuelans fleeing their country, as the federal prosecutors and public defenders offices who brought the case had argued.