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-2026-5212

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

CVE-2026-5212 is a stack-based buffer overflow vulnerability in D-Link DNR-202L and multiple DNS/DNR series devices that enables remote code execution. This article covers technical details, affected versions, and mitigations.

Published: April 2, 2026

CVE-2026-5212 Overview

A stack-based buffer overflow vulnerability has been identified in multiple D-Link Network Attached Storage (NAS) devices affecting the Webdav_Upload_File function within the /cgi-bin/webdav_mgr.cgi endpoint. This vulnerability allows remote attackers to execute arbitrary code by manipulating the f_file argument, potentially leading to complete device compromise.

Critical Impact

Remote attackers can exploit this buffer overflow to gain unauthorized access, execute arbitrary code, and potentially pivot to other devices on the network. The exploit has been publicly disclosed, increasing the risk of widespread attacks.

Affected Products

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

Discovery Timeline

  • March 31, 2026 - CVE-2026-5212 published to NVD
  • April 2, 2026 - Last updated in NVD database

Technical Details for CVE-2026-5212

Vulnerability Analysis

This vulnerability exists in the WebDAV management CGI handler used by multiple D-Link NAS devices. The Webdav_Upload_File function fails to properly validate the length of user-supplied data passed through the f_file parameter before copying it to a fixed-size stack buffer. When an attacker supplies an oversized input, the function writes beyond the allocated buffer boundary, overwriting adjacent stack memory including saved return addresses and other critical data.

The vulnerability is classified under CWE-787 (Out-of-Bounds Write) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer). Due to the nature of the stack-based overflow, successful exploitation can allow attackers to hijack program execution flow and achieve arbitrary code execution with the privileges of the web service process.

Root Cause

The root cause of this vulnerability is insufficient bounds checking in the Webdav_Upload_File function when processing the f_file argument. The CGI handler directly copies user-controlled input to a stack-allocated buffer without verifying that the input length does not exceed the buffer's capacity. This classic buffer overflow pattern is particularly dangerous on embedded devices where security mitigations like ASLR and stack canaries may be absent or weakly implemented.

Attack Vector

The attack can be carried out remotely over the network by sending a crafted HTTP request to the vulnerable /cgi-bin/webdav_mgr.cgi endpoint. An authenticated attacker with low privileges can exploit this vulnerability by:

  1. Sending an HTTP request to the WebDAV management CGI endpoint
  2. Including a maliciously crafted f_file parameter with an oversized payload
  3. The payload overwrites the return address on the stack
  4. Upon function return, execution is redirected to attacker-controlled code

The vulnerability mechanism involves stack memory corruption through the WebDAV file upload handler. The f_file parameter is processed without length validation, allowing an attacker to supply input that exceeds the allocated buffer size. This overwrites adjacent stack memory, potentially including saved return addresses. For detailed technical analysis and proof-of-concept information, see the GitHub Vulnerability Documentation.

Detection Methods for CVE-2026-5212

Indicators of Compromise

  • Unusual HTTP POST requests to /cgi-bin/webdav_mgr.cgi with abnormally large f_file parameters
  • Device crashes or unexpected reboots following WebDAV-related HTTP requests
  • Presence of unexpected processes or network connections originating from NAS devices
  • Modified firmware or configuration files on affected devices

Detection Strategies

  • Monitor network traffic for HTTP requests to /cgi-bin/webdav_mgr.cgi containing payloads exceeding normal size thresholds
  • Implement intrusion detection rules to flag requests with anomalous f_file parameter lengths
  • Deploy network segmentation to isolate NAS devices and monitor for lateral movement attempts
  • Review access logs on D-Link NAS devices for suspicious authentication patterns

Monitoring Recommendations

  • Enable detailed logging on network firewalls for traffic destined to D-Link NAS devices on ports 80/443
  • Configure SIEM alerts for repeated failed authentication attempts followed by successful CGI access
  • Monitor outbound connections from NAS devices for command-and-control communication patterns
  • Perform regular firmware integrity checks on affected devices

How to Mitigate CVE-2026-5212

Immediate Actions Required

  • Restrict network access to affected D-Link NAS devices to trusted IP addresses only
  • Disable WebDAV functionality if not required for business operations
  • Place affected devices behind a properly configured firewall with strict access controls
  • Monitor device logs for any signs of exploitation attempts
  • Consider device replacement if vendor does not provide security patches

Patch Information

As of the last update, D-Link has not released a security patch for this vulnerability. Many of the affected NAS models are end-of-life products that may no longer receive firmware updates. Organizations should check the D-Link Official Website for any security advisories and firmware updates. For additional vulnerability details, refer to the VulDB entry #354348.

Workarounds

  • Implement network segmentation to isolate affected NAS devices from untrusted networks
  • Configure firewall rules to block external access to the /cgi-bin/webdav_mgr.cgi endpoint
  • Use a VPN for remote access instead of exposing NAS devices directly to the internet
  • Disable the WebDAV service entirely if it is not operationally required
  • Consider migrating to supported NAS devices with active security maintenance
bash
# Example firewall rule to block external access to WebDAV CGI (iptables)
iptables -A INPUT -p tcp --dport 80 -m string --string "/cgi-bin/webdav_mgr.cgi" --algo bm -j DROP
iptables -A INPUT -p tcp --dport 443 -m string --string "/cgi-bin/webdav_mgr.cgi" --algo bm -j DROP

# Alternative: Restrict access to trusted subnet only
iptables -A INPUT -p tcp --dport 80 -s 192.168.1.0/24 -j ACCEPT
iptables -A INPUT -p tcp --dport 80 -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 Documentation

  • VulDB Submission #780435

  • VulDB Submission #780436

  • VulDB #354348

  • VulDB #354348 CTI

  • D-Link Official Website
  • Related CVEs
  • CVE-2026-5214: D-Link DNR-202L Buffer Overflow Flaw

  • CVE-2026-5213: D-Link DNR-202L Buffer Overflow Flaw

  • CVE-2026-5211: D-Link DNR-202L Buffer Overflow Flaw

  • CVE-2026-5024: D-Link DIR-513 Buffer Overflow Vulnerability
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