I suddenly found I was getting the same weak password alert. I've been busy making changes to my network last few weeks so *had* had the default admin password on the router, but even then I hadn't had this warning previously on this machine the last full scan I'd done on it. Only got the warning today so reset the routers admin interface password, made no difference, rebooted router & machine numerous times & it was still flagging it even though I'd definitely changed the password.
It's maybe just coincidence & was some later 'refreshing' of the data avast was accessing (I'd already tried deleting the scan logs, btw, to no success) but I finally got it passing after I'd looked into all my router settings & found there was a page with password access if you used USB mass storage attached to the router. It, regardless of me changing the main admin log-in still showed the old default one as 'master' but once I changed it, then rebooted the router, it passed the Avast scan.
My particular router is a TP-Link one, but thought it worth sharing the info just in case it's a solution for anyone else as during my research earlier had noticed users with differing makes having the same problem. Drill down every bit of the router settings & see if there's another ref to a default/master password.