Safety concerns have been raised time and again following a series of fire incidents at such private religious schools.
Firefighters who rushed to the scene put out the blaze within an hour but not before it wreaked devastation. It was also found that most of the victims died of suffocation. REUTERS/Lai Seng Sin A view shows the second floor of religious school Darul Quran Ittifaqiyah after a fire broke out in Kuala Lumpur, Malaysia September 14, 2017.
Health Minister S. Subramaniam says the 23 bodies have been taken to the forensics department to be identified by family members.
After the fire broke out, nine fire engines and several operators are making efforts to douse the fire.
The official who confirmed the deaths of the 25 students and teachers, thinks it is one of Malaysia's worst fire disasters in the last 20 years.
The ruins of the Tahfiz Darul Quran Ittifaqiyah hostel building that caught fire, killing 23 students and two wardens. "Every one of the bodies were discovered lumped on each other". "The understudies, subsequent to understanding the fire and substantial smoke, endeavored to escape through the window", Fire and Rescue Department operations delegate executive Soiman Jahid told correspondents outside the school.
"Metal grills made it impossible for them to get out of the burning building", he added.
Officials hope to determine the cause of fire in the coming days.
Authorities said that the blaze broke out in a dormitory and they suspect an electrical fault was to blame.
They are unregulated by the education ministry, being the responsibility of the religious department. "It really does not make sense for so many to die".
He said the premises had been only temporary but those running the school should nevertheless have followed safety requirements.