Magnetic flux instability limits potential applications of superconductors such as MgB2 in practical devices. Previous studies in MgB2 films exposed to magnetic fields revealed the occurrence of dendritic flux avalanches at temperatures below T~10 K. In the present work it is shown that films of MgB2 exposed to a fast-ramped magnetic field display a dendritic flux instability at elevated temperatures, up to 23 K. Such instability can therefore cause malfunctioning of practical devices based on MgB2 films even when operating at liquid hydrogen temperature.MgB2 is a promising material for superconducting applications such as electricity transmission cables, high-field magnets, energy storage devices, high power applications, and sensors [1][2][3]. Various characteristics ensure considerable attractiveness of this material, including its low cost, good mechanical properties, high critical current density, and relatively high critical temperature, Tc ~ 39 K. Nevertheless, dendritic flux avalanches resulting from the onset of a thermomagnetic instability in MgB2 [4][5][6][7][8], strongly challenges the use of this material in practical applications. Avalanche events can critically impact the performance of the device by causing sudden changes in the material resistance and current flow. Clearly, thermomagnetic instability is not an intrinsic characteristic of the MgB2 material. For instance, while most MgB2 films display the instability, some exclusive ultrapure MgB2 films did not exhibit dendritic avalanches [9,10]. In addition, external parameters such as the magnetic field and the sample temperature may affect the stability. Therefore, all these factors should be considered in applying MgB2 films in practical devices.