RaspAP before 3.1.5 allows an attacker to escalate privileges: the www-data user has write access to the restapi.service file and also possesses Sudo privileges to execute several critical commands without a password.
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')