(Pwn2Own) QNAP TS-464 qnap_exec Command Injection Privilege Escalation Vulnerability
Vulnerability Details
This vulnerability allows remote attackers to escalate privileges on affected installations of QNAP TS-464 devices. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.
The specific flaw exists within the qnap_exec function. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges to resources normally protected from the user.
Additional Details
QNAP has issued an update to correct this vulnerability. More details can be found at:
https://www.qnap.com/en-us/security-advisories
Disclosure Timeline
- 2024-12-02 - Vulnerability reported to vendor
- 2025-07-31 - Coordinated public release of advisory
- 2025-07-31 - Advisory Updated
Credit
Corentin "@OnlyTheDuck" BAYET from REverse Tactics