The quake, which struck at 3:27 a.m. local time, was centered 171.54 kilometers southwest of Lumajang, East Java, at a depth of 10 kilometers, the agency notified on its official website.
The tremor, at Modified Mercalli Intensity (MMI) scale II, was felt by people living in Karangkates, Malang District. Normally, a quake of MMI II was felt by some people and resulted in the hung light articles shaking.
Mercalli scale is one of the units to assess the strength of an earthquake, especially in the absence of a seismometer at the site.
No immediate reports were received of any material damage, injuries, or fatalities.
A quake of magnitude 5.2 can cause considerable damage to land.
The BMKG urged local residents to be wary of aftershocks following the quake of magnitude 5.2.
Indonesia sits on the geographically active “Pacific Ring of Fire” and holds some 40 percent of the world's geothermal reserves.
The Ring of Fire, or the Circum-Pacific belt, is the world’s greatest earthquake belt, according to Live Science, owing to fault lines running from Chile to Japan and Southeast Asia.