United Nations inspectors have suspended plans to look at Australian detention facilities after NSW and Queensland blocked access.
NSW officials blame their federal counterparts for signing up to an optional protocol of the convention against torture, suggesting the UN should focus its attention on countries that haven't accepted the international agreement.
Attorney-General Mark Dreyfus said no state or territory objected in 2017 when Australia ratified the protocol.
Representatives from the UN Subcommittee on Prevention of Torture said they were obstructed from carrying out their protective mandate, violating the country's obligations.
The 12-day tour was to continue until Thursday, but the UN pulled the plug.
Delegation head Aisha Shujune Muhammad said it was deeply regrettable but the limited understanding of its mandate and a lack of co-operation from NSW and Queensland spurred the decision.
Mr Dreyfus said the federal government was disappointed in NSW for refusing access and it regretted the UN's avoidable exit.
He said other unnamed jurisdictions had experienced problems but had tried to resolve these issues in good faith, adding the UN's departure would not change Australia's commitment.
"It is vital that places of detention in Australia maintain the rights of those who are held within their walls," Mr Dreyfus said.
NSW Corrections Minister Geoff Lee told a budget estimates hearing on Monday he had confidence in the state's facilities.
"They meet and many times often exceed those of other countries," he said.
But the committee was told five older facilities, which housed hundreds of inmates, needed updating.
Corrective Services NSW commissioner Kevin Corcoran said the Inspector of Custodial Services had already delivered a report highlighting inadequate facilities.
"We've got our own standards ... they don't meet those standards," he said.
Assistant commissioner Leon Taylor said some infrastructure dated back to the Victorian era and did not support "contemporary correctional practice".
Two facilities from the era had been closed and replaced with more modern facilities in the past 18 months and a new infrastructure strategy was being developed, he said.
Dr Lee said he would try and address the issue in his remaining months as minister.
"I will continue to advocate very strongly for our portfolio agency to receive money to upgrade and expand our facilities and retire the old facilities as soon as possible," he said.
Retiring MP David Elliott, who was NSW corrections minister when Australia ratified the protocol, said he told past premiers not to approve inspections.
"I'm not going to have UN inspectors from Iran and China and Cuba come into NSW jails and tell us that we're doing things wrong," he told 2GB radio on Monday.
None of those countries have ratified the protocol, nor has the USA, which has the world's highest per-capita incarceration rate.
Mr Elliott said the federal government encouraged the inspections but was protected from having to open up immigration detention centres or defence force correctional facilities.
Mr Dreyfus said the UN inspectors were given access to Commonwealth-run detention facilities but did not specify which ones.
Academics and advocacy groups condemned the states for blocking access.
"Parties have an obligation to both receive the (subcommittee) in their territory and allow it to exercise its mandate in full, including by allowing unfettered access to places of detention," a joint statement from Australian Lawyers for Human Rights and multiple other groups said.
The Queensland government has been contacted for comment.