CVE-2026-16329 Overview
CVE-2026-16329 is an unrestricted file upload vulnerability affecting D-Link DNS-320 firmware version 1.0.2. The flaw resides in an unknown function within /photo_center/php/uploadify.php, where manipulation of the Malicious Handler argument allows attackers to upload arbitrary files without validation. Remote attackers can trigger the vulnerability over the network without authentication or user interaction. Public exploit code is available, increasing the likelihood of opportunistic exploitation against exposed devices. The weakness is categorized under [CWE-284] (Improper Access Control).
Critical Impact
Unauthenticated remote attackers can upload arbitrary files to the DNS-320 network-attached storage device, potentially leading to code execution and full device compromise.
Affected Products
- D-Link DNS-320 firmware version 1.0.2
- /photo_center/php/uploadify.php component
- D-Link network-attached storage appliances running the vulnerable Photo Center module
Discovery Timeline
- 2026-07-21 - CVE-2026-16329 published to NVD
- 2026-07-22 - Last updated in NVD database
Technical Details for CVE-2026-16329
Vulnerability Analysis
The vulnerability exists in the Photo Center upload handler shipped with D-Link DNS-320 firmware 1.0.2. The uploadify.php script accepts file uploads without enforcing proper access controls or validating file type, extension, or content. Attackers can submit crafted HTTP POST requests to the endpoint and place attacker-controlled files onto the device filesystem. When the uploaded payload is a server-side script such as PHP, subsequent HTTP requests can execute the payload in the web server context.
The DNS-320 is an end-of-life consumer network-attached storage (NAS) product. D-Link has previously advised customers to retire affected DNS-320 units, and no vendor patch is expected. Devices exposed to the internet or reachable from untrusted network segments face the highest risk.
Root Cause
The root cause is improper access control [CWE-284] in the uploadify.php handler. The script does not authenticate the requester, restrict the upload directory, or validate the file extension and MIME type of the incoming stream. The Malicious Handler argument controls the destination behavior and is trusted without sanitization.
Attack Vector
An attacker sends an HTTP POST request to /photo_center/php/uploadify.php on the target DNS-320 with a crafted multipart payload. Because the endpoint does not require authentication, exploitation succeeds with only network reachability to the device. Uploaded scripts can then be requested via the built-in web server, giving the attacker code execution and file system access on the NAS.
Technical details and proof-of-concept material are published in the Feishu Document Overview and tracked in the VulDB CVE-2026-16329 entry.
Detection Methods for CVE-2026-16329
Indicators of Compromise
- HTTP POST requests to /photo_center/php/uploadify.php originating from unexpected source addresses
- Newly created .php, .phtml, or executable files under the Photo Center upload directories on the NAS
- Web server access log entries showing requests to attacker-uploaded filenames returning HTTP 200
- Outbound connections initiated by the DNS-320 to unfamiliar hosts, indicating post-upload code execution
Detection Strategies
- Monitor network traffic destined to DNS-320 devices for requests targeting the uploadify.php endpoint
- Baseline the file inventory in the Photo Center directory and alert on new script files or unexpected file types
- Inspect embedded web server logs for anomalous multipart upload requests without a prior authenticated session
Monitoring Recommendations
- Forward NAS syslog and web access logs to a centralized log platform for retention and correlation
- Alert on any egress traffic from NAS management interfaces to internet destinations
- Track internal network segments for unexpected HTTP scans against ports 80 and 443 on storage appliances
How to Mitigate CVE-2026-16329
Immediate Actions Required
- Remove DNS-320 devices from any internet-facing exposure and place them behind a firewall that restricts access to trusted management hosts only
- Disable the Photo Center feature if it is not required for business operations
- Audit the NAS filesystem for unauthorized files uploaded to the Photo Center directories and remove any suspect content
- Plan migration to a supported storage platform, as the DNS-320 is end-of-life and will not receive a vendor patch
Patch Information
No official vendor patch is available for CVE-2026-16329. The D-Link DNS-320 has reached end-of-service status, and D-Link's guidance for legacy NAS products is to retire the hardware. Consult the D-Link Security Information portal for the latest advisories and replacement recommendations.
Workarounds
- Restrict inbound access to the DNS-320 web interface using network access control lists or a segmentation firewall
- Block external access to /photo_center/ paths at an upstream reverse proxy or web application firewall
- Require VPN access for any administrative interaction with the NAS instead of exposing the management interface directly
- Decommission the appliance and migrate stored data to a vendor-supported NAS platform
# Example firewall rule limiting DNS-320 access to a trusted management subnet
iptables -A FORWARD -s 10.10.20.0/24 -d 192.0.2.50 -p tcp --dport 80 -j ACCEPT
iptables -A FORWARD -d 192.0.2.50 -p tcp --dport 80 -j DROP
iptables -A FORWARD -d 192.0.2.50 -p tcp --dport 443 -j DROP
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

