CVE-2022-27593: QNAP Photo Station Externally Controlled Reference Vulnerability
Certain QNAP NAS running Photo Station with internet exposure contain an externally controlled reference to a resource vulnerability which can allow an attacker to modify system files. This…
CVE-2022-27593 is an externally controlled reference vulnerability in QNAP Photo Station software that runs on certain QNAP network-attached storage (NAS) devices. When Photo Station is exposed to the internet, an attacker can abuse the flaw to modify system files on the device. This matters because the vulnerability has been observed in a Deadbolt ransomware campaign, giving opportunistic attackers a path to compromise storage systems that often hold business or personal data.
IT and security teams should treat internet-facing QNAP NAS instances running Photo Station as high priority for inventory and remediation. Confirm all product-specific details against the vendor advisory, as public information on exact configurations is limited.
How it works
The underlying weakness is CWE-610, an externally controlled reference to a resource. In this class of flaw, the application accepts attacker-supplied input that influences which resource (such as a file or path) the software accesses or acts upon. On affected QNAP Photo Station installations, this control can be leveraged to modify system files.
An attacker who can reach the Photo Station service over the network supplies crafted input that redirects the application's resource handling. Successful abuse allows unauthorized changes to system files rather than merely reading data. Because the service may run with elevated privileges on the NAS, the impact can extend beyond the Photo Station application itself. Exact request formats and preconditions are not detailed in the available summary; defenders must rely on the vendor advisory for any technical indicators of compromise.
Am I affected? How to find it in your systems
QNAP Photo Station is a photo-management application commonly installed on QNAP NAS appliances used for file sharing, media storage, and remote access. The vulnerability applies to certain of these devices when Photo Station is present and the service is reachable from the internet.
- Inventory all QNAP NAS devices in your environment via asset-management tools, network scans for QNAP management ports, or the vendor's own device discovery utilities.
- On each device, check whether Photo Station is installed and enabled; review the application list in the QNAP web interface or via CLI commands provided by the vendor.
- Determine internet exposure by examining firewall rules, port-forwarding configurations, reverse-proxy settings, and any public DNS records that point to the NAS. Devices reachable without VPN or strong authentication are highest risk.
- Confirm the exact Photo Station and firmware versions against the vendor advisory; do not rely on version numbers that are not listed in official guidance.
- Review access logs, web-server logs, and any Photo Station-specific audit trails for anomalous requests that reference unexpected file paths or resources. Look for unexplained file modifications on the system volume, sudden service restarts, or new administrative accounts. Telemetry from network detection systems may show scanning or exploitation attempts against Photo Station endpoints.
How to remediate
The primary remediation is to apply the updates issued by QNAP according to the vendor instructions. CISA's required action is simply to apply those updates. After patching, reboot or restart the affected services as directed and verify that Photo Station reports the fixed version.
Once the vendor update is in place, harden the installation for this class of weakness:
- Disable Photo Station entirely if it is not required for business operations.
- Ensure the NAS is not directly exposed to the internet; place it behind a VPN, reverse proxy with authentication, or zero-trust access gateway.
- Apply the principle of least privilege to the Photo Station service account and restrict write access to system directories.
- Enable and retain detailed logging for the web interface and file-system changes so future anomalies can be investigated.
If you can't patch immediately
If an immediate update is not possible, reduce the attack surface with compensating controls while you schedule the patch window.
- Segment the NAS onto a restricted network VLAN that is unreachable from the public internet and from untrusted internal segments.
- Block or restrict inbound access to Photo Station ports at the firewall or edge router; allow only authenticated VPN or jump-host traffic.
- If a web application firewall is available, apply virtual-patching rules that filter requests containing suspicious path or resource references typical of CWE-610 abuse; tune carefully to avoid breaking legitimate use.
- Temporarily disable the Photo Station application or its remote-access features until the update can be applied.
- Increase monitoring: alert on any file-system modifications outside expected media directories, on new processes spawned by the Photo Station service, and on outbound connections that could indicate ransomware staging or command-and-control activity.
If your data may have been exposed
Because this vulnerability has been actively used in Deadbolt ransomware campaigns, successful exploitation can lead to encryption of data stored on the NAS and potential exfiltration. If you discover evidence of compromise—unexpected file changes, ransom notes, or unexplained encryption—isolate the device, preserve forensic images, and follow your incident-response plan. As a quick external check, you can run a free exposure scan of organizational email addresses against known breach data sets to determine whether credentials or other information associated with the environment have already appeared in public dumps.
AICompiled with AI assistance from public sources and published under our editorial standards.