VirtualBox 7.2.8 brings important bug fixes for Linux hosts, Wayland guests, and Secure Boot. 7.1.x also reaches its support ...
I don't think Virtualbox has a UEFI option, so I think virtualbox is (rightly) booting legacy. But still it can't boot from that ISO I just tried VMWare Player I notice that one can choose UEFI or not ...