Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2021-47854

CVE-2021-47854: DD-WRT UPNP Buffer Overflow Vulnerability

CVE-2021-47854 is a buffer overflow flaw in DD-WRT version 45723's UPNP service that enables remote code execution via crafted M-SEARCH packets. This article covers technical details, affected versions, and mitigation.

Published: January 23, 2026

CVE-2021-47854 Overview

CVE-2021-47854 is a buffer overflow vulnerability affecting DD-WRT version 45723 in the UPNP (Universal Plug and Play) network discovery service. This vulnerability allows remote attackers to potentially execute arbitrary code on affected devices by sending specially crafted M-SEARCH packets containing oversized UUID payloads. The vulnerability exists due to improper input validation when processing UPNP discovery requests, which can trigger buffer overflow conditions on target devices.

Critical Impact

Remote attackers can exploit this vulnerability without authentication to potentially achieve arbitrary code execution on DD-WRT routers, compromising network infrastructure and enabling further lateral movement.

Affected Products

  • DD-WRT firmware version 45723
  • DD-WRT devices with UPNP service enabled
  • Routers running vulnerable DD-WRT builds from 2021

Discovery Timeline

  • 2026-01-21 - CVE-2021-47854 published to NVD
  • 2026-01-21 - Last updated in NVD database

Technical Details for CVE-2021-47854

Vulnerability Analysis

This buffer overflow vulnerability (CWE-120: Buffer Copy without Checking Size of Input) exists in the UPNP network discovery service implementation within DD-WRT firmware. The vulnerability is network-accessible, requiring no authentication or user interaction to exploit. When the UPNP service processes incoming M-SEARCH discovery packets, it fails to properly validate the length of UUID field data before copying it into a fixed-size buffer.

The exploitation mechanism involves sending malicious M-SEARCH packets to the UPNP service, which typically listens on UDP port 1900. By including an oversized UUID payload in these packets, an attacker can overflow the destination buffer, potentially overwriting adjacent memory regions including return addresses or function pointers. This can lead to denial of service conditions or, in more sophisticated attacks, arbitrary code execution with the privileges of the UPNP service.

Root Cause

The root cause of CVE-2021-47854 is a classic buffer copy operation that does not verify the size of the input before writing to a destination buffer. The UPNP service in DD-WRT version 45723 allocates a fixed-size buffer to store UUID data extracted from incoming M-SEARCH requests. When processing the UUID field from discovery packets, the code performs an unbounded copy operation, allowing attacker-controlled data to exceed buffer boundaries and corrupt adjacent memory.

Attack Vector

The attack vector for this vulnerability is network-based, allowing remote exploitation. An attacker positioned on the same network segment, or in some cases from the WAN interface if UPNP is externally exposed, can craft malicious SSDP M-SEARCH packets. The attack flow involves:

  1. Identifying a target device running vulnerable DD-WRT firmware with UPNP enabled
  2. Sending crafted M-SEARCH packets to UDP port 1900 containing oversized UUID payloads
  3. The vulnerable UPNP service processes the packet without proper bounds checking
  4. Buffer overflow occurs, potentially corrupting memory and enabling code execution

The vulnerability has been documented in the SSD Advisory on DD-WRT and a proof-of-concept exploit is available via Exploit-DB #49730. Administrators should review the VulnCheck Advisory for DD-WRT for additional technical details.

Detection Methods for CVE-2021-47854

Indicators of Compromise

  • Unusual or malformed SSDP/UPNP traffic on UDP port 1900 with abnormally large packet sizes
  • Router crashes, unexpected reboots, or unresponsive UPNP service
  • Network traffic containing M-SEARCH requests with UUID fields exceeding normal length (typically >128 bytes)
  • Signs of unauthorized access or configuration changes on DD-WRT devices

Detection Strategies

  • Deploy network intrusion detection systems (IDS) with rules to identify oversized SSDP M-SEARCH packets
  • Monitor for anomalous UDP traffic patterns targeting port 1900 on internal network devices
  • Implement deep packet inspection to detect malformed UPNP discovery requests
  • Configure logging on DD-WRT devices to capture UPNP service errors and crashes

Monitoring Recommendations

  • Establish baseline UPNP traffic patterns and alert on significant deviations
  • Monitor device health metrics including memory usage and service availability
  • Implement network segmentation to limit UPNP traffic exposure and improve visibility
  • Review router logs regularly for signs of exploitation attempts or service instability

How to Mitigate CVE-2021-47854

Immediate Actions Required

  • Disable UPNP service on DD-WRT devices if not required for network operations
  • Update DD-WRT firmware to the latest available version from the DD-WRT Beta Downloads page
  • Restrict UPNP service access to trusted network segments only
  • Implement firewall rules to block external access to UDP port 1900

Patch Information

DD-WRT users should check the official DD-WRT Home Page for firmware updates that address this vulnerability. It is recommended to upgrade to a firmware version newer than build 45723 that includes the security fix for the UPNP buffer overflow vulnerability. Review the security advisories and release notes for confirmation that the vulnerability has been patched in newer builds.

Workarounds

  • Disable UPNP entirely via the DD-WRT web interface under Services → UPNP settings
  • Configure firewall rules to block incoming SSDP traffic on UDP port 1900 from untrusted sources
  • Enable UPNP only on specific, trusted VLANs with controlled access
  • Consider using alternative UPnP implementations or manual port forwarding instead
bash
# DD-WRT UPNP Disable Configuration (via nvram)
nvram set upnp_enable=0
nvram set upnp_nat_pmp_enable=0
nvram commit
reboot

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechDd Wrt

  • SeverityHIGH

  • CVSS Score8.7

  • EPSS Probability0.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/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
  • DD-WRT Home Page

  • DD-WRT Beta Downloads

  • SSD Advisory on DD-WRT

  • Exploit-DB #49730

  • VulnCheck Advisory for DD-WRT
  • Latest CVEs
  • CVE-2025-52793: Esselink.nu Settings CSRF Vulnerability

  • CVE-2025-52772: Virtual Moderator CSRF Vulnerability

  • CVE-2025-48279: WC MyParcel Belgium XSS Vulnerability

  • CVE-2025-39381: KiotViet Sync CSRF Vulnerability
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