JAKARTA, Indonesia -- A park official says two people have been hospitalized after being attacked by a giant komodo dragon that wandered into the office of a wildlife park in eastern Indonesia.

An official at Komodo National Park, Heru Rudiharto, said Wednesday the 2-metre-long komodo dragon attacked a park ranger after walking into the office on Tuesday.

It then attacked another park employee who came to help him. Both were badly bitten and were evacuated to a hospital on Bali Island.

Endangered Komodo dragons can grow longer than 3 metres. Fewer than 4,000 are believed to be alive.

They are found in the wild primarily on the eastern Indonesian islands of Komodo, Padar and Rinca.