Caracas: Thirteen Venezuelan inmates who had been on a hunger strike over prison conditions died Wednesday after drinking a cocktail of prescription drugs and grain alcohol, the government said.

Another 145 were being treated for poisoning after drinking the concoction, it added. An NGO put the death toll as high as 21.

It was the latest tragic episode in a country with one of the mostly violent and dangerous penal systems in the world.

The prisoners at David Viloria Correction Center in Venezuela`s Lara state had been protesting since Tuesday over what they said were inhumane treatment and rights violations by prison officials.

The Prisons Ministry said inmates became violent, broke into the infirmary and guzzled a cocktail they made of grain alcohol, drugs used to treat epilepsy as well as antibiotics and tranquilizers.

A ministry statement said the deaths and injuries stemmed from "uncontrolled ingestion" of the mix of grain alcohol and those medications.

Prosecutors named a team of experts to probe the incident.

The ministry statement said inmates first broke down walls and doors of their holding area, and then violently made their way into the infirmary.

"They assaulted the pharmacy and the workshops, proceeding to ingest a variety of medications," it added.

A non-governmental group, Venezuelan Prisons Watch, said earlier there were 17 dead at the prison in Lara state.

But four more, who also drank the dangerous mix, died after being transferred to a prison in the state of Maracay, the NGO`s director Humberto Prado said.

He said the condition of others who were transferred to other prisons was not immediately known.

Venezuela`s prison system is one of the most violent anywhere. In the first half of this year 150 inmates died in prison riots, according to a recent report by Venezuelan Prisons Watch.

The main problems are overcrowding, dismal health conditions and malnourishment.

Starting in 2011, then president Hugo Chavez launched a program to improve living conditions, disarm prisoners and speed up the backlogged court system. His successor Nicolas Maduro has pressed ahead with the policy.

But in many cases jails are controlled by heavily armed gangs involved in frequent fighting.

As of the end of June 2014, the prison population was more than 55,000, while penal facilities have room for 19,000.

Sixty-five percent of those in jail are still awaiting trial.

Overnight Tuesday a group of 41 inmates convicted of murder, kidnapping and robbery broke holes in the walls of their prison outside Caracas and escaped, prosecutors said in a statement.