The issue was addressed by restricting options offered on a locked device. This issue is fixed in macOS Sonoma 14.1. An attacker may be able to execute arbitrary code as root from the Lock Screen.
https://support.apple.com/kb/HT214038
https://support.apple.com/kb/HT214037
https://support.apple.com/kb/HT213984