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
    • 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-2026-4213

CVE-2026-4213: D-Link DNR-202L Buffer Overflow Vulnerability

CVE-2026-4213 is a stack-based buffer overflow vulnerability in D-Link DNR-202L firmware that can be exploited remotely. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 20, 2026

CVE-2026-4213 Overview

A stack-based buffer overflow vulnerability has been identified in multiple D-Link Network Attached Storage (NAS) and Network Video Recorder (NVR) devices. This vulnerability affects the cgi_myfavorite_del_user and cgi_myfavorite_verify functions within the /cgi-bin/gui_mgr.cgi file. By manipulating specific input parameters, a remote authenticated attacker can trigger a buffer overflow condition that may lead to arbitrary code execution or denial of service on affected devices.

Critical Impact

Remote attackers with low-privilege access can exploit this vulnerability to achieve full system compromise on affected D-Link NAS/NVR devices, potentially leading to data theft, ransomware deployment, or use of the device as a pivot point for further network attacks.

Affected Products

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

Discovery Timeline

  • 2026-03-16 - CVE-2026-4213 published to NVD
  • 2026-03-19 - Last updated in NVD database

Technical Details for CVE-2026-4213

Vulnerability Analysis

This vulnerability is a classic stack-based buffer overflow (CWE-787, CWE-119) affecting the web management interface of numerous D-Link NAS and NVR devices. The vulnerable code resides in the CGI handler responsible for managing user favorites within the device's web-based administration panel.

The affected functions cgi_myfavorite_del_user and cgi_myfavorite_verify fail to properly validate the length of user-supplied input before copying it to a fixed-size stack buffer. When an attacker provides input exceeding the expected buffer size, the overflow corrupts adjacent stack memory, potentially overwriting the return address and gaining control of program execution flow.

Since the exploit is publicly available and the vulnerability can be exploited remotely over the network by any authenticated user, organizations using these devices face significant risk of compromise.

Root Cause

The root cause of this vulnerability is improper bounds checking within the cgi_myfavorite_del_user and cgi_myfavorite_verify functions in /cgi-bin/gui_mgr.cgi. The CGI script processes user input without validating the length of supplied parameters against the allocated stack buffer size. This allows attackers to supply oversized input that exceeds buffer boundaries, resulting in a stack-based buffer overflow condition.

Many legacy D-Link NAS devices were developed without modern memory safety protections such as stack canaries, ASLR, or non-executable stack configurations, making exploitation more straightforward on these platforms.

Attack Vector

The attack is initiated remotely over the network through HTTP requests to the device's web management interface. An attacker with valid credentials (even low-privilege access) can craft a malicious HTTP request to the vulnerable CGI endpoint with specially crafted parameters designed to trigger the buffer overflow.

The exploitation path typically follows these steps:

  1. The attacker authenticates to the D-Link NAS/NVR web interface with valid credentials
  2. A crafted HTTP request is sent to /cgi-bin/gui_mgr.cgi targeting the cgi_myfavorite_del_user or cgi_myfavorite_verify functions
  3. The oversized input overwrites the stack, including the return address
  4. Upon function return, execution jumps to attacker-controlled code, potentially providing shell access

Technical details and proof-of-concept information are documented in the GitHub Vulnerability Detail #162 and GitHub Vulnerability Detail #163 repositories.

Detection Methods for CVE-2026-4213

Indicators of Compromise

  • Unexpected HTTP POST requests to /cgi-bin/gui_mgr.cgi containing unusually large parameter values
  • Anomalous system crashes or reboots of D-Link NAS/NVR devices
  • Presence of unfamiliar user accounts or modified device configurations
  • Unusual outbound network connections from NAS/NVR devices to unknown IP addresses

Detection Strategies

  • Monitor web server access logs on D-Link devices for requests to /cgi-bin/gui_mgr.cgi with abnormally long query strings or POST data
  • Implement network intrusion detection rules to identify HTTP requests containing potential buffer overflow payloads targeting CGI endpoints
  • Deploy network traffic analysis to detect unusual patterns of requests to the management interface from unauthorized sources
  • Use vulnerability scanning tools to identify affected D-Link device firmware versions in your environment

Monitoring Recommendations

  • Enable logging on D-Link NAS/NVR devices and forward logs to a centralized SIEM for analysis
  • Configure alerts for multiple failed authentication attempts followed by successful logins to the web management interface
  • Monitor for unexpected firmware changes or configuration modifications on NAS devices
  • Implement network segmentation to isolate NAS/NVR devices and monitor traffic crossing segment boundaries

How to Mitigate CVE-2026-4213

Immediate Actions Required

  • Restrict network access to the D-Link NAS/NVR web management interface to trusted IP addresses only using firewall rules
  • Disable remote management access from the internet if not explicitly required
  • Change default credentials and enforce strong passwords for all user accounts on affected devices
  • Implement network segmentation to isolate affected NAS/NVR devices from critical network segments
  • Monitor devices for signs of compromise while awaiting a vendor patch

Patch Information

At the time of publication, no official patch from D-Link has been confirmed for this vulnerability. Many of the affected D-Link NAS models have reached end-of-life status and may not receive security updates. Organizations should check the D-Link Official Website and the VulDB entry #351124 for the latest patch availability information.

For devices that are end-of-life, replacement with currently supported NAS solutions that receive regular security updates is strongly recommended.

Workarounds

  • Implement access control lists (ACLs) or firewall rules to restrict access to the web management interface to specific trusted IP addresses
  • Place affected NAS/NVR devices behind a VPN, requiring VPN authentication before accessing the management interface
  • Disable the web management interface entirely if remote management is not required, using only local console access
  • Consider deploying a web application firewall (WAF) in front of the device to filter malicious requests targeting the CGI endpoint
bash
# Example firewall rules to restrict access to D-Link NAS management interface
# Allow management access only from trusted admin workstation
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.100 -j ACCEPT
iptables -A INPUT -p tcp --dport 443 -s 192.168.1.100 -j ACCEPT
# Block all other access to web management ports
iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -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.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechDlink

  • SeverityHIGH

  • CVSS Score7.4

  • EPSS Probability0.08%

  • 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:P/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 Detail #162

  • GitHub Vulnerability Detail #163

  • VulDB #351124 (CTI)

  • VulDB #351124

  • VulDB Submission #770443

  • VulDB Submission #770444

  • 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