Advisory Details

July 31st, 2025

(Pwn2Own) QNAP TS-464 Samba Command Argument Injection Vulnerability

ZDI-25-758
ZDI-CAN-25612

CVE ID
CVSS SCORE 6.3, AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
AFFECTED VENDORS QNAP
AFFECTED PRODUCTS TS-464
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of QNAP TS-464 devices. Authentication is not required to exploit this vulnerability.

The specific flaw exists within the handling of the provided username during authentication. The issue results from the lack of proper validation of a user-supplied string before using it to construct command line arguments. An attacker can leverage this in conjunction with other vulnerabilities to execute arbitrary code in the context of admin.

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 YingMuo (@YingMuo), working with DEVCORE Internship Program.
BACK TO ADVISORIES