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-2025-5620

CVE-2025-5620: D-Link DIR-816 Firmware RCE Vulnerability

CVE-2025-5620 is a critical RCE vulnerability in D-Link DIR-816 Firmware caused by OS command injection in the setipsec_config function. This article covers the technical details, affected versions, and mitigation steps.

Published: March 25, 2026

CVE-2025-5620 Overview

A critical OS command injection vulnerability has been discovered in the D-Link DIR-816 wireless router firmware version 1.10CNB05. The vulnerability exists in the setipsec_config function within the /goform/setipsec_config endpoint, where improper handling of the localIP and remoteIP parameters allows attackers to inject and execute arbitrary operating system commands remotely. This vulnerability affects an end-of-life product that is no longer supported by D-Link.

Critical Impact

Unauthenticated remote attackers can execute arbitrary system commands on vulnerable D-Link DIR-816 routers, potentially leading to complete device compromise, network intrusion, and persistent unauthorized access.

Affected Products

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

Discovery Timeline

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

Technical Details for CVE-2025-5620

Vulnerability Analysis

This OS command injection vulnerability (CWE-77, CWE-78) stems from insufficient input validation in the IPSec configuration functionality of the D-Link DIR-816 router. The setipsec_config function fails to properly sanitize user-supplied input in the localIP and remoteIP parameters before passing them to system-level command execution functions. An attacker can craft malicious input containing shell metacharacters or command separators to break out of the intended command context and execute arbitrary commands with the privileges of the web server process, typically running as root on embedded devices.

The vulnerability is particularly concerning because the exploit has been publicly disclosed, and the affected product has reached end-of-life status, meaning D-Link will not provide security patches. Devices exposed to the internet are at immediate risk of compromise.

Root Cause

The root cause of CVE-2025-5620 is improper input validation and sanitization in the setipsec_config function. When processing IPSec configuration requests through the /goform/setipsec_config endpoint, the application directly incorporates user-supplied values for localIP and remoteIP parameters into system commands without adequate filtering of shell metacharacters. This allows command injection payloads to be executed in the context of the underlying operating system.

Attack Vector

The attack can be launched remotely over the network without requiring authentication. An attacker can send a specially crafted HTTP request to the /goform/setipsec_config endpoint with malicious payloads embedded in the localIP or remoteIP parameters. By including shell command separators (such as semicolons, pipes, or backticks) followed by arbitrary commands, the attacker can achieve remote code execution on the vulnerable router.

The exploitation mechanism involves:

  1. Sending a crafted HTTP POST request to /goform/setipsec_config
  2. Including command injection payloads in the localIP or remoteIP parameters
  3. The vulnerable function executes the injected commands with system privileges
  4. Attacker gains command execution capability on the router

For detailed technical analysis of this vulnerability, refer to the GitHub Vulnerability Documentation.

Detection Methods for CVE-2025-5620

Indicators of Compromise

  • Unusual HTTP POST requests to /goform/setipsec_config containing shell metacharacters (;, |, $(), backticks) in the localIP or remoteIP parameters
  • Unexpected outbound network connections from router devices to external IP addresses
  • Presence of unauthorized user accounts, SSH keys, or modified configuration files on the router
  • Suspicious processes spawning from the web server process on the router

Detection Strategies

  • Implement network-based intrusion detection rules to identify HTTP requests targeting /goform/setipsec_config with command injection patterns
  • Monitor router logs for unusual configuration change attempts or failed authentication attempts
  • Deploy honeypot routers to capture exploitation attempts targeting D-Link devices
  • Use vulnerability scanning tools to identify exposed DIR-816 devices in your network

Monitoring Recommendations

  • Enable logging on all network perimeter devices to capture traffic to and from D-Link routers
  • Implement DNS monitoring to detect suspicious domain resolutions from router IP addresses
  • Monitor for unusual firmware modifications or configuration changes on affected devices
  • Set up alerts for any traffic anomalies originating from router management interfaces

How to Mitigate CVE-2025-5620

Immediate Actions Required

  • Immediately remove D-Link DIR-816 devices from production networks as they are end-of-life and will not receive security updates
  • If immediate replacement is not possible, disable remote management and restrict access to the router's web interface to trusted internal networks only
  • Implement network segmentation to isolate affected devices from critical network resources
  • Replace affected devices with currently supported router models that receive security updates

Patch Information

D-Link has discontinued support for the DIR-816 router series. No official patch will be released for CVE-2025-5620. The only effective remediation is to replace the affected device with a currently supported router model. For more information, visit the D-Link Official Website.

Additional technical details are available through VulDB #311106.

Workarounds

  • Disable the web management interface entirely if not required for operations
  • Block external access to the router's management interface (ports 80/443) using upstream firewall rules
  • Implement access control lists (ACLs) to restrict management access to specific trusted IP addresses only
  • Consider deploying a firewall in front of the vulnerable router to filter malicious requests to /goform/setipsec_config
bash
# Example: Block external access to router management on upstream firewall
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 specific 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
  • TypeRCE

  • Vendor/TechDlink

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability1.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/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
  • AvailabilityLow
  • CWE References
  • CWE-77

  • CWE-78
  • Technical References
  • GitHub Vulnerability Documentation

  • VulDB CTI ID #311106

  • VulDB #311106

  • VulDB Submission #589220

  • D-Link Official Website
  • Related CVEs
  • CVE-2026-4465: D-Link DIR-513 RCE Vulnerability

  • CVE-2026-4210: D-Link DNR-202L Firmware RCE Vulnerability

  • CVE-2026-4209: D-Link DNR-202L Firmware RCE Vulnerability

  • CVE-2026-4207: D-Link DNR-202L Firmware RCE 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