The immigration department has confirmed it wrongly sent two Australian citizens to immigration detention after cancelling their visas.
The two, who were born in New Zealand and hold dual citizenship, were taken to immigration detention after their visas were cancelled following their release from prison.
One was taken to Christmas Island, while the other was detained onshore.
Under section 501 of the Migration Act, a non-citizen's visa must be cancelled if they serve a jail term of more than 12 months.
The case is reminiscent of the wrongful imprisonment of Australian citizens Cornelia Rau and Vivian Solon.