One of Queensland's most notorious sex offenders will remain behind bars - for now.
Robert John Fardon, 64, will stay in jail pending the outcome of a court appeal next month after a Brisbane judge ruled there was a real risk he would attack again.
The serial rapist was briefly freed last week after a different judge decided he could be released under strict supervision orders.
But Fardon was back behind bars a few hours later, following an urgent application by Attorney-General Jarrod Bleijie.
On Thursday, a Court of Appeal judge granted Mr Bleijie leave to appeal and ruled Fardon should be locked up until a decision on the appeal is made.
At this stage the earliest the challenge can be heard is November 26 or 27.
Justice Philip Morrison ruled there were arguable grounds to appeal and accepted arguments by Mr Bleijie's barrister that the original judge did not give enough weight to some of the psychiatrists' evidence about Fardon.
That evidence included that Fardon was more likely to reoffend when intoxicated.
"That of course says nothing about whether those grounds might succeed," he warned.
Justice Morrison said Fardon had an inability to fully commit to supervision and there was a "real risk" of danger to the community if he was released before the appeal.
The judge ordered a stay of Fardon's release until the appeal is determined.
Earlier, Fardon's barrister Dan O'Gorman unsuccessfully argued the original judge had made the correct decision and his client should be released pending the appeal.
The serial offender has been serving an indefinite jail term for sex offences against women and girls, with convictions dating back to 1967.
He has spent most of his adult life in jail.
Mr Bleijie welcomed the Court of Appeal's ruling."The community can now feel secure while the appeal process continues," he said in a statement.