A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2024-7831

CVE-2024-7831: D-Link DNS-120 Buffer Overflow Vulnerability

CVE-2024-7831 is a critical buffer overflow vulnerability in D-Link DNS-120 and multiple DNS/DNR series devices. Attackers can exploit this remotely via the photocenter_mgr.cgi file. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: May 26, 2026

CVE-2024-7831 Overview

CVE-2024-7831 is a buffer overflow vulnerability affecting a wide range of D-Link network-attached storage (NAS) products. The flaw resides in the cgi_get_cooliris function within /cgi-bin/photocenter_mgr.cgi. Attackers can manipulate the path argument to trigger a buffer overflow over the network. The exploit has been publicly disclosed. D-Link confirmed that all affected products are end-of-life and will not receive a patch. Affected devices should be retired and replaced.

Critical Impact

Remote attackers with low-privileged credentials can trigger a buffer overflow in the photo center CGI handler, leading to potential remote code execution on unsupported D-Link NAS devices.

Affected Products

  • D-Link DNS-120, DNR-202L, DNS-315L, DNS-320, DNS-320L, DNS-320LW (firmware up to 20240814)
  • D-Link DNS-321, DNR-322L, DNS-323, DNS-325, DNS-326, DNS-327L, DNR-326 (firmware up to 20240814)
  • D-Link DNS-340L, DNS-343, DNS-345, DNS-726-4, DNS-1100-4, DNS-1200-05, DNS-1550-04 (firmware up to 20240814)

Discovery Timeline

  • 2024-08-15 - CVE-2024-7831 published to NVD
  • 2024-08-15 - D-Link publishes Security Advisory SAP10383 confirming end-of-life status
  • 2024-08-19 - Last updated in NVD database

Technical Details for CVE-2024-7831

Vulnerability Analysis

The vulnerability is a classic buffer overflow [CWE-120] in the cgi_get_cooliris function exposed by /cgi-bin/photocenter_mgr.cgi. The CGI handler processes HTTP requests for the photo center feature and copies a user-controlled path parameter into a fixed-size stack or heap buffer without proper bounds checking. An attacker supplying an oversized path value can overwrite adjacent memory, corrupt control structures, and potentially redirect execution flow.

Because the affected products are network-attached storage devices, the vulnerable CGI endpoint is typically reachable over the local network and, in misconfigured deployments, over the internet. Successful exploitation can compromise the confidentiality, integrity, and availability of data stored on the NAS.

Root Cause

The root cause is missing input length validation on the path argument before it is written to a memory buffer in cgi_get_cooliris. The CGI binary trusts attacker-supplied request data and uses unsafe string-handling routines that do not enforce destination buffer size limits. D-Link has confirmed the affected NAS products are end-of-life and will not be patched.

Attack Vector

An authenticated remote attacker with low privileges sends a crafted HTTP request to /cgi-bin/photocenter_mgr.cgi containing an oversized path parameter. The vulnerable code path inside cgi_get_cooliris copies this value into a bounded buffer, triggering memory corruption. Technical details of the request flow are documented in the public GitHub PoC writeup and the VulDB entry #274729.

Detection Methods for CVE-2024-7831

Indicators of Compromise

  • HTTP requests targeting /cgi-bin/photocenter_mgr.cgi with abnormally long path query parameters or POST body values
  • Unexpected crashes, restarts, or service interruptions of the photocenter_mgr.cgi process on D-Link NAS devices
  • Outbound connections initiated from the NAS to unfamiliar external hosts following requests to the photo center CGI

Detection Strategies

  • Inspect web server and reverse proxy logs for requests to photocenter_mgr.cgi containing path values exceeding expected length thresholds
  • Deploy network intrusion detection signatures that flag oversized parameters sent to D-Link NAS administrative CGI endpoints
  • Correlate authentication events with subsequent abnormal CGI requests to identify low-privileged accounts being abused

Monitoring Recommendations

  • Place end-of-life NAS devices on segmented VLANs and monitor north-south traffic for anomalous outbound behavior
  • Enable verbose access logging on any reverse proxy or firewall fronting the NAS web interface
  • Review the D-Link advisory SAP10383 for the full list of affected models in your inventory

How to Mitigate CVE-2024-7831

Immediate Actions Required

  • Retire and replace affected D-Link NAS devices, as D-Link has confirmed all listed models are end-of-life and will not receive a security patch
  • Remove affected devices from public internet exposure by disabling port forwarding and WAN management access
  • Restrict access to the NAS web interface to a small set of trusted internal hosts via firewall ACLs
  • Rotate credentials on any account that has authenticated to an affected NAS device

Patch Information

No patch is available. D-Link confirmed in advisory SAP10383 that all affected NAS products have reached end-of-life status and will not receive firmware updates. The vendor recommends replacement with a currently supported device.

Workarounds

  • Disable the photo center feature on affected NAS devices if the configuration allows it
  • Block external access to /cgi-bin/photocenter_mgr.cgi at an upstream firewall or reverse proxy
  • Migrate stored data to a supported storage platform and decommission affected D-Link NAS hardware
bash
# Example firewall rule to block external access to the vulnerable CGI endpoint
# (adjust interface and NAS IP for your environment)
iptables -A FORWARD -p tcp -d <NAS_IP> --dport 80 \
  -m string --string "/cgi-bin/photocenter_mgr.cgi" --algo bm -j DROP
iptables -A FORWARD -p tcp -d <NAS_IP> --dport 443 \
  -m string --string "/cgi-bin/photocenter_mgr.cgi" --algo bm -j DROP

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechDlink Dns 120

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability1.62%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-120
  • Technical References
  • GitHub PoC Repository

  • VulDB CTI ID #274729

  • VulDB #274729

  • VulDB Submission #390119
  • Vendor Resources
  • D-Link Security Advisory SAP10383
  • Related CVEs
  • CVE-2024-7829: D-Link DNS-120 Buffer Overflow Vulnerability

  • CVE-2024-7828: D-Link DNS-120 Buffer Overflow Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English