That is, the attacker either needs to have been allowed to connect to your WiFi (either through another vulnerability or voluntarily) or attached a cable to your WiFi router or your cable modem.
This is not impossible (not even requiring reliance on the fact that Google, Apple, and Microsoft among them have pretty much everyone's WiFi passwords[2]), but a wave of attacks based on this is much less feasible than if they could be carried en masse on the internet.
[1]: https://github.com/Lyrebirds/sagemcom-fast-3890-exploit/blob...
[2]: https://tourkick.com/advice-tips-howto/myth-busting-windows-...