You may have been thinking that the good old beep tool is safe, but you’re wrong …
Debian — Security Information — DSA-4163-1 beep:
“It was discovered that a race condition in beep (if configured as setuid via debconf) allows local privilege escalation.“