Hungarian is the official language of Hungary, and thus an official language of the EU.
Hungarian is also one of the official languages of Vojvodina and an official language of three municipalities in Slovenia: Hodoš, Dobrovnik and Lendava, along with Slovene.