GENEVA: The UN said Friday that it was appalled by a mass execution of prisoners in Iraq and called for an immediate halt to executions, citing flaws in the country’s criminal justice system.

Iraq’s Ministry of Justice said 38 prisoners were executed on terrorism-related charges in the southern city of Nasiriyah on Thursday, but it gave no details of the prisoners’ identities or the offenses for which they were sentenced to death.

“Given the flaws of the Iraqi justice system, it appears extremely doubtful that strict due process and fair trial guarantees were followed in these 38 cases,” Elizabeth Throssell, a spokeswoman for the UN human rights office in Geneva, told reporters. “This raises the prospect of irreversible miscarriages of justice and violations of the right to life.”

Iraqi courts are dealing with thousands of prisoners, including foreigners and hundreds of children, some as young as 13, who were detained in the past two years because they were suspected of being Daesh fighters or supporters.

Gruesome accounts of summary executions and the brutal torture of detainees suspected of being Daesh fighters underscore the powerful impulse for revenge against the militants, who carried out atrocities in the areas they seized after 2014.

UN human rights officials have said that speeding up the execution of accused militants could result in the deaths of innocent people. They warn that perceptions of injustice risk deepening the sectarian antagonism, and lay the foundation for another cycle of sectarian violence.

Thursday’s executions raised the number of people believed to have been executed this year to 106, Throssell said, but the actual number could be much higher.

UN officials learned of the executions from a statement posted on the Ministry of Justice’s Facebook page, she said. The government has stopped providing information on executions, and human rights investigators suspect that many go unrecorded.

Iraqi authorities disclosed 88 executions in 2016, but the number could have been as high as 116, Throssell said. Human rights groups fear that the pace of executions is set to rise.

Thursday’s executions were the largest number in Iraq on a single day since September, when 42 people were hanged in the same prison in Nasiriyah.

The prison is believed to have about 6,000 prisoners on death row, Agnes Callamard, a UN human rights expert monitoring extrajudicial executions, said in an email.

Iraq’s judicial authorities have tried or convicted at least 7,374 people on suspicion of Daesh links since 2014, Human Rights Watch said this month in a report.

A judge in one Iraqi province told the report’s researchers that a counterterrorism court, established to try prisoners seized in the battle to recapture Mosul, had started trials of more than 5,500 people and had sentenced 200 in a six-month period that ended in August.

Iraqi authorities have a right to prosecute militants’ crimes to protect public security, but the judicial procedures are flawed, Human Rights Watch said.

“Everybody has a public defence lawyer, but it does not appear that they are engaging in the trial,” said Belkis Wille, Human Rights Watch’s senior Iraq researcher. “They are sitting there because it’s required by Iraqi law; they are not sitting there because they are providing a defence.”