Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2023-50358: Unauthenticated OS Command Injection in QNAP quick.cgi

Published Feb 13, 2024 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS5.8Medium · v3.1
EPSS13.5%97th percentile
CISA KEVNoNot listed
In the wildReported6 exploitation records in Mallory
Vendor
QNAP Systems
IdentifiersCVE-2023-50358CWE-78 · Improper Neutralization of Special…

CVE-2023-50358 is an unauthenticated OS command injection vulnerability in the quick.cgi component of QNAP NAS operating systems, including QTS, QuTS hero, and QuTScloud. The vulnerable code path is reachable via the quick.cgi handler when the HTTP request parameter todo=set_timeinfo is supplied. In the described flow, attacker-controlled input from the SPECIFIC_SERVER parameter is written into /tmp/quick/quick_tmp.conf as the "NTP Address" value. quick.cgi then initiates time synchronization using ntpdate, constructs a command line by reading that stored value, and executes the resulting command through system(). Because the SPECIFIC_SERVER value is not properly sanitized before being incorporated into a shell command, a remote attacker can inject arbitrary OS commands. The issue is network-reachable and does not require authentication on exposed vulnerable systems.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation allows remote arbitrary command execution in the context of the affected QNAP device. An attacker can execute shell commands over the network, which can lead to full compromise of the NAS, including deployment of malware or ransomware, modification of system configuration, data access or destruction, and use of the device as a foothold for further activity. The supporting content characterizes the flaw as low attack complexity with critical impact for affected IoT/NAS deployments.

Mitigation

If you can’t patch tonight, do this now.

Until patching is completed, reduce or eliminate network exposure to the quick.cgi endpoint and restrict access to NAS management interfaces to trusted administrative networks only. QNAP indicates administrators can test exposure by requesting /cgi-bin/quick/quick.cgi on the NAS system port: an HTTP 404 response indicates the system is not vulnerable or has been remediated, while an empty HTTP 200 response indicates the system remains vulnerable. Where available, network security controls can be used to block exploit traffic; the supporting content notes Palo Alto Networks Threat Prevention/Advanced Threat Prevention coverage via signature 94969. If the device is uninitialized, note the supporting content also states quick.cgi is present on uninitialized QNAP NAS devices and disabled after successful initialization, which may reduce exposure in some deployments.

Remediation

Patch, then assume compromise.

Upgrade affected QNAP systems to fixed releases. The vendor states the issue is fixed in: QTS 5.1.5.2645 build 20240116 and later; QTS 4.5.4.2627 build 20231225 and later; QTS 4.3.6.2665 build 20240131 and later; QTS 4.3.4.2675 build 20240131 and later; QTS 4.3.3.2644 build 20240131 and later; QTS 4.2.6 build 20240131 and later; QuTS hero h5.1.5.2647 build 20240118 and later; QuTS hero h4.5.4.2626 build 20231225 and later; and QuTScloud c5.1.5.2651 and later. Apply the latest available firmware for the relevant product line and verify that the quick.cgi exposure is no longer present.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
QNAP SystemsQtsoperating_system
QNAP SystemsQuts Herooperating_system
QNAP SystemsQutscloudoperating_system
FAQ

Frequently asked questions

Is CVE-2023-50358 exploited in the wild?
Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
Is there a public exploit for CVE-2023-50358?
Yes. As of Oct 16, 2026, Mallory has reports of a public exploit for CVE-2023-50358.
Is there a patch for CVE-2023-50358?
Upgrade affected QNAP systems to fixed releases. The vendor states the issue is fixed in: QTS 5.1.5.2645 build 20240116 and later; QTS 4.5.4.2627 build 20231225 and later; QTS 4.3.6.2665 build 20240131 and later; QTS 4.3.4.2675 build 20240131 and later; QTS 4.3.3.2644 build 20240131 and later; QTS 4.2.6 build 20240131 and later; QuTS hero h5.1.5.2647 build 20240118 and later; QuTS hero h4.5.4.2626 build 20231225 and later; and QuTScloud c5.1.5.2651 and later.
What products are affected by CVE-2023-50358?
QNAP Systems Qts, QNAP Systems Qutscloud, and QNAP Systems Quts Hero.
How severe is CVE-2023-50358?
CVE-2023-50358 has a CVSS v3.1 score of 5.8 (Medium) and an EPSS score of 13.5% (97th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signatures1YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.