At least 65 people were killed and dozens wounded after a passenger train erupted in flames in central Pakistan on Thursday, a provincial minister said.

Television footage showed flames pouring out of the carriages as people could be heard crying in the incident near Rahim Yar Khan district in Punjab province.

"According to information reaching us from site of the accident, more than 65 people were killed and over 40 injured," provincial health minister Dr. Yasmin Rashid told AFP.

The wounded were being rushed to hospitals in the nearby city of Bahawalpur and elsewhere in Rahim Yar Khan district, she said, adding that only 18 of the bodies were identifiable.

"Terrible... train tragedy with gas cylinder carried by passenger exploding," tweeted human rights minister Shireen Mazari.

Local media reported that some of the passengers had been cooking breakfast when the cylinder exploded.

Mazari said the train was the Tezgam, one of Pakistan's oldest and most popular train services, which runs between the garrison city of Rawalpindi, adjacent to Islamabad, and the southern port city of Karachi.

Dozens of people could be seen crowded onto the tracks staring at the three burning carriages, which had been disconnected from the rest of the train, television images showed.

Train accidents are common in Pakistan, where the railways have seen decades of decline due to corruption, mismanagement and lack of investment.

In July, at least 23 people were killed in the same district when a passenger train coming from the eastern city of Lahore rammed into a goods train that had stopped at a crossing.

Accidents often happen at unmanned crossings, which frequently lack barriers and sometimes signals.

Prime Minister Imran Khan was elected last year on promises to build an Islamic welfare state but an ongoing economic slowdown and austerity measures have hampered efforts to invest in infrastructure and social programmes.

Rural Punjab has witnessed several gruesome accidents over the years, including an oil tanker explosion in 2017 when more than 200 people were killed after the truck crashed on a main highway in central Punjab province while carrying some 50,000 litres of fuel from Karachi to Lahore.

It exploded minutes later, sending a fireball through crowds from a nearby village who had gathered to scavenge for the spilled fuel, despite warnings by the driver and police to stay away.

Copyright AFP. All rights reserved.

Pakistan train fire
Photo: AFP / Jonathan WALTER