A Brazilian federal appeals court judge has overturned a ruling barring Venezuelan migrants fleeing economic and political turmoil from entering Brazil.

Appeals court judge Kassio Marques acknowledged "grave violations of the public and judicial order," but overturned the lower court's ruling, saying the closure would not improve humanitarian conditions for refugees.

A Foreign Ministry official said the Brazilian government would not contemplate closing the border, as it would violate its international commitments on human rights and an immigration law that keeps the door open to all refugees.