Advisory Details

August 26th, 2025

(Pwn2Own) QNAP QHora-322 miro_webserver_lib_RunExecBash Command Injection Remote Code Execution Vulnerability

ZDI-25-871
ZDI-CAN-25847

CVE ID CVE-2024-13087
CVSS SCORE 7.1, AV:A/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
AFFECTED VENDORS QNAP
AFFECTED PRODUCTS QHora-322
VULNERABILITY DETAILS

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of QNAP QHora-322 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed.

The specific flaw exists within the miro_webserver_lib_RunExecBash 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 execute code in the context of root.

ADDITIONAL DETAILS QNAP has issued an update to correct this vulnerability. More details can be found at:
https://www.qnap.com/en/security-advisory/qsa-25-15
DISCLOSURE TIMELINE
  • 2024-12-13 - Vulnerability reported to vendor
  • 2025-08-26 - Coordinated public release of advisory
  • 2025-08-26 - Advisory Updated
CREDIT nella17 (@nella17tw), working with DEVCORE Internship Program, and DEVCORE Research Team
BACK TO ADVISORIES