Yes. The PSP, Wii and WiiU come to mind, also the PS3.
They could all be hacked with the help of storage devices. Like for PS3... (this is very simplified) you copy some files on a USB stick, plug it in and open a specific website with the consoles Webbrowser which executes the code on the USB stick. On earlier PSP models (and also Wii) you could simply execute the code you copied on the memory stick duo iirc. Later you needed a specific battery to hack it.
The possibility of hacking the PS5 through the NVME expansion slot certainly exists, but I doubt that Sony has left any vulnerabilities there. Never say never, though.