The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-2025-5630

CVE-2025-5630: D-Link DIR-816 Buffer Overflow Vulnerability

CVE-2025-5630 is a critical stack-based buffer overflow in D-Link DIR-816 firmware that enables remote code execution. This article covers the technical details, affected versions, security impact, and mitigation.

Published: March 24, 2026

CVE-2025-5630 Overview

A critical stack-based buffer overflow vulnerability has been discovered in the D-Link DIR-816 router firmware version 1.10CNB05. This vulnerability affects the /goform/form2lansetup.cgi file, where improper handling of the ip argument allows an attacker to trigger a stack-based buffer overflow condition. The vulnerability can be exploited remotely without authentication, potentially enabling complete device compromise.

Critical Impact

This vulnerability enables remote attackers to execute arbitrary code on affected D-Link DIR-816 routers through a network-based attack requiring no user interaction or authentication. The affected product has reached end-of-life status and is no longer supported by D-Link.

Affected Products

  • D-Link DIR-816 Firmware version 1.10CNB05
  • D-Link DIR-816 Hardware (all variants running affected firmware)

Discovery Timeline

  • June 5, 2025 - CVE-2025-5630 published to NVD
  • June 6, 2025 - Last updated in NVD database

Technical Details for CVE-2025-5630

Vulnerability Analysis

This vulnerability is classified under CWE-787 (Out-of-bounds Write) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). The flaw exists in the LAN setup configuration handler, specifically within the /goform/form2lansetup.cgi endpoint. When processing the ip parameter, the firmware fails to properly validate the length of user-supplied input before copying it to a fixed-size stack buffer, resulting in a classic stack-based buffer overflow condition.

The vulnerability is particularly severe because the affected endpoint is accessible without authentication over the network. An attacker can craft malicious HTTP requests containing oversized ip parameter values that exceed the allocated buffer size, allowing them to overwrite adjacent stack memory including saved return addresses. This can lead to arbitrary code execution with the privileges of the web server process, typically running as root on embedded devices.

Root Cause

The root cause of this vulnerability is the absence of proper bounds checking when handling the ip argument in the LAN setup CGI handler. The firmware uses unsafe string handling functions that do not verify the length of input data against the destination buffer capacity. When user-controlled data is copied to a stack-allocated buffer without length validation, an attacker can supply input that exceeds the buffer boundaries, corrupting adjacent memory on the stack.

Attack Vector

The attack vector is network-based, allowing remote exploitation without requiring authentication or user interaction. An attacker with network access to the router's management interface can send specially crafted HTTP POST requests to the /goform/form2lansetup.cgi endpoint with a malicious ip parameter value.

The attack sequence involves:

  1. Identifying a vulnerable D-Link DIR-816 router on the network
  2. Crafting an HTTP request to the vulnerable CGI endpoint
  3. Including an oversized ip parameter value designed to overflow the stack buffer
  4. Overwriting the return address to redirect execution flow
  5. Gaining arbitrary code execution on the device

The exploit has been publicly disclosed and documented in the GitHub Vulnerability Documentation, increasing the risk of active exploitation in the wild.

Detection Methods for CVE-2025-5630

Indicators of Compromise

  • Unusual HTTP POST requests to /goform/form2lansetup.cgi with abnormally long ip parameter values
  • Unexpected router reboots or crashes following network traffic to the management interface
  • Modified router configurations or firmware without administrator action
  • Suspicious outbound network connections originating from the router

Detection Strategies

  • Monitor HTTP traffic to D-Link router management interfaces for requests containing oversized parameters in CGI form submissions
  • Implement intrusion detection rules to flag POST requests to /goform/form2lansetup.cgi with ip parameter values exceeding typical IPv4 address lengths (15 characters)
  • Deploy network anomaly detection to identify potential buffer overflow attempts targeting embedded device web interfaces

Monitoring Recommendations

  • Implement network segmentation to isolate IoT and router management interfaces from untrusted networks
  • Enable logging on network firewalls to capture traffic destined for router management ports
  • Regularly review router access logs for signs of exploitation attempts or unauthorized configuration changes

How to Mitigate CVE-2025-5630

Immediate Actions Required

  • Immediately restrict network access to the router's management interface to trusted administrative hosts only
  • Disable remote management features if not required for operations
  • Consider replacing the affected D-Link DIR-816 router with a currently supported device, as this product has reached end-of-life

Patch Information

This vulnerability affects a D-Link product that is no longer supported by the maintainer. D-Link has not released and is not expected to release a security patch for this vulnerability. Organizations using affected devices should prioritize hardware replacement with currently supported router models. For additional information, visit the D-Link Official Website.

Additional technical details are available from VulDB #311116.

Workarounds

  • Implement firewall rules to block external access to the router's web management interface (typically port 80/443)
  • Use access control lists (ACLs) to restrict management interface access to specific trusted IP addresses
  • Disable the web management interface entirely if alternative management methods are available
  • Place the router behind a network firewall that can inspect and filter malicious HTTP requests
bash
# Example iptables rules to restrict management interface access
# Apply on upstream firewall or gateway device
iptables -A FORWARD -d <ROUTER_IP> -p tcp --dport 80 -j DROP
iptables -A FORWARD -d <ROUTER_IP> -p tcp --dport 443 -j DROP
# Allow management only from trusted admin workstation
iptables -I FORWARD -s <ADMIN_IP> -d <ROUTER_IP> -p tcp --dport 80 -j ACCEPT

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

  • SeverityCRITICAL

  • CVSS Score9.3

  • EPSS Probability0.88%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-119

  • CWE-787
  • Technical References
  • GitHub Vulnerability Documentation

  • VulDB CTI ID #311116

  • VulDB #311116

  • VulDB Submission #589779

  • D-Link Official Website
  • Related CVEs
  • CVE-2025-50665: D-Link DI-8003 Buffer Overflow Vulnerability

  • CVE-2025-50647: D-Link DI-8003 Buffer Overflow Vulnerability

  • CVE-2025-50670: D-Link DI-8003 Buffer Overflow Vulnerability

  • CVE-2026-5214: D-Link DNR-202L Buffer Overflow Flaw
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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