Advisory Details

July 31st, 2025

(Pwn2Own) QNAP TS-464 qnap_exec Command Injection Privilege Escalation Vulnerability

ZDI-25-743
ZDI-CAN-25585

CVE ID
CVSS SCORE 7.5, AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS QNAP
AFFECTED PRODUCTS TS-464
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
BACK TO ADVISORIES