CVE Professor
/
All CVEs
CVE-2026-138391

CVE-2026-138391 — D-Link DI-8100 (16.07.26A1) — CWE-122 · CWE-119

CRITICAL CVSS 10 CVE.org

A vulnerability has been found in D-Link DI-8100 16.07.26A1. Affected by this issue is the function httpd_do_recv of the file /usr/sbin/jhttpd. The manipulation leads to heap-based buffer overflow. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.

A vulnerability has been found in D-Link DI-8100 16.07.26A1. Affected by this issue is the function httpd_do_recv of the file /usr/sbin/jhttpd. The manipulation leads to heap-based buffer overflow. The attack may be initiated remotely. The exploit has been disclosed to the public and may be used.

CVSS v4.0 Vector Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
Attack Vector Network AV:N
Attack Complexity Low AC:L
Attack Reqs. None AT:N
Privileges Req. None PR:N
User Interaction None UI:N
Vuln. Conf. High VC:H
Vuln. Integrity High VI:H
Vuln. Avail. High VA:H
Subseq. Conf. High SC:H
Subseq. Integ. High SI:H
Subseq. Avail. High SA:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a Heap-Based Buffer Overflow (CWE-122) within the httpd_do_recv function of the jhttpd daemon (/usr/sbin/jhttpd) on the D-Link DI-8100 running firmware version 16.07.26A1.

Technical Flaw Analysis:
1. Missing Input Validation: The httpd_do_recv function is responsible for receiving and parsing HTTP request data (headers and/or body). The flaw indicates that the function allocates a fixed-size or dynamically sized heap buffer to store incoming data but fails to properly validate the length of the incoming data against the buffer's capacity before copying.
2. Heap Corruption: When an attacker sends a request with a payload larger than the expected buffer size, the memcpy or similar copy operation overwrites adjacent heap memory. This can corrupt heap metadata (e.g., fd/bk pointers in glibc) or overwrite function pointers, vtables, or other critical data structures stored in adjacent heap chunks.
3. Unauthenticated Remote Access: The CVSS vector (PR:N, UI:N) confirms that no authentication or user interaction is required. The jhttpd service is likely exposed directly to the network (typically on port 80 or 8080) and processes requests from any source IP.

Why it is Critical (CVSS 10.0):

  • Scope Change (S:C): The vulnerability allows an attacker to break out of the jhttpd process context and potentially compromise the entire device (kernel or other privileged processes).

  • High Impact (C:H/I:H/A:H): Successful exploitation leads to full compromise of the router, including data theft, configuration manipulation, and denial of service.
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Port Scanning: Identify open HTTP/HTTPS ports (80, 443, 8080) on the target IP.
  • Fingerprinting: Send a simple GET request to / or /login.html. Analyze the Server header, HTML source, or specific D-Link UI elements to confirm the device is a D-Link DI-8100.
  • Version Enumeration: Attempt to retrieve the firmware version via known D-Link endpoints (e.g., /getSystemInfo, /version.html, or by parsing the X-Server header if present). Confirm the version is 16.07.26A1 or potentially other unpatched versions.
  • 2. Exploitation

    Note: The exact endpoint and parameter name are not specified in the CVE description. The following is an illustrative example of how a heap overflow in an HTTP receive function is typically triggered. In practice, the attacker would need to identify the specific HTTP method (GET/POST) and parameter that feeds data into httpd_do_recv without length checks.

    Hypothesis: The jhttpd daemon parses HTTP headers or a specific POST parameter (e.g., username, password, or a generic data field) into a heap buffer.

    Illustrative PoC (Conceptual):

    # Generate a payload that exceeds the expected buffer size
    # Assuming the vulnerable buffer is 256 bytes, we send 1024 'A's
    PAYLOAD=$(python3 -c "print('A' * 1024)")
    
    # Send a crafted HTTP request to the vulnerable endpoint
    # The exact endpoint is unknown, so we use a common D-Link login or API path as an example
    curl -X POST "http://<TARGET_IP>/login.cgi" \
         -H "Content-Type: application/x-www-form-urlencoded" \
         -d "username=$PAYLOAD&password=test"

    Technical Mechanics:
    1. The jhttpd process receives the POST request.
    2. httpd_do_recv allocates a heap buffer (e.g., 256 bytes) to store the username parameter.
    3. The function copies the 1024-byte payload into the 256-byte buffer without checking the length.
    4. The overflow corrupts the heap. If the attacker can control the overflow data (e.g., by crafting the payload to overwrite specific heap chunks), they can manipulate heap metadata to achieve arbitrary code execution.
    5. On embedded MIPS/ARM architectures (common in D-Link routers), heap exploitation may involve overwriting function pointers or using techniques like house of force or unlink to hijack the program flow.

    3. Post-Exploitation

  • Code Execution: The attacker achieves arbitrary code execution in the context of the jhttpd process (likely running as root or a privileged user on the router).
  • Privilege Escalation: If jhttpd runs as non-root, the attacker may exploit local vulnerabilities or use the code execution to spawn a shell with higher privileges.
  • Persistence:
  • - Modify the router's configuration (e.g., add a malicious DNS server, redirect traffic, or create a backdoor account). - Upload a webshell or reverse shell script to the router's filesystem (if writable). - Alter the firmware image to ensure persistence across reboots.
  • Data Exfiltration:
  • - Steal stored credentials (Wi-Fi passwords, PPPoE credentials). - Intercept and modify network traffic (MITM). - Use the compromised router as a pivot point to attack internal network devices.

    🌍 Real World Impact

  • Confidentiality (High): Attackers can steal sensitive data stored on the router, including Wi-Fi keys, PPPoE credentials, and potentially intercepted network traffic.
  • Integrity (High): Attackers can modify router configurations, redirect DNS queries, inject malicious content into web traffic, or create backdoor accounts.
  • Availability (High): Attackers can crash the router (DoS) or brick it by corrupting the firmware.
  • Scope Change (Critical): The vulnerability allows an attacker to escape the jhttpd process and potentially compromise the entire operating system of the router, leading to full control of the network gateway.
  • Practical Consequences:

  • Network Compromise: The router is a critical network device. Compromising it allows an attacker to monitor, modify, or block all traffic passing through it.

  • Botnet Recruitment: Compromised routers are often recruited into botnets (e.g., Mirai) to launch DDoS attacks.

  • Data Breach: Sensitive data stored on the router or transmitted through it can be stolen.
  • 🛡️ Remediation & Mitigation

    1. Patching

  • Upgrade Firmware: D-Link should have released a patched firmware version. Users should immediately update the DI-8100 to the latest available firmware from D-Link's official support site.
  • Check for Updates: If no official patch is available, consider replacing the device with a supported model.
  • 2. Workarounds

  • Network Segmentation: Isolate the router from the internal network if possible, or restrict access to the router's management interface to a trusted management VLAN.
  • Firewall Rules: Block external access to the router's HTTP/HTTPS ports (80, 443, 8080) if remote management is not required.
  • # Example iptables rule to block external access to port 80
        iptables -A INPUT -p tcp --dport 80 -j DROP
  • Disable Remote Management: If the router supports it, disable remote web management in the router's settings.
  • 3. Detection

  • Log Analysis: Monitor the router's logs (if accessible) for unusual HTTP requests, especially large POST requests or requests to unknown endpoints.
  • Network Monitoring: Use IDS/IPS (e.g., Snort, Suricata) to detect anomalous traffic patterns, such as large payloads sent to the router's HTTP port.
  • # Example Snort rule to detect large POST requests to port 80
        alert tcp $EXTERNAL_NET any -> $HOME_NET 80 (msg:"Possible Heap Overflow Attempt to D-Link Router"; content:"POST"; nocase; content-length:|00 04|; threshold:type both, track by_src, count 5, seconds 60;)
  • Integrity Checks: Regularly verify the integrity of the router's firmware and configuration to detect unauthorized changes.
  • ⚠️ Urgency

  • CVSS Score: 10.0 (Critical)
  • Exploit Availability: The exploit has been disclosed to the public and may be used.
  • CISA KEV: Not currently listed, but given the criticality and public disclosure, it is likely to be added soon.
  • Priority: Immediate. This vulnerability allows for unauthenticated remote code execution on a critical network device. Organizations should prioritize patching or mitigating this vulnerability as a top-priority task. If a patch is not available, consider replacing the device or isolating it from the network.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="D-Link Router"
CVSS Score
10 / 10 · CVSS CRITICAL
Weakness Types (CWE)
CWE-122 CWE-119
Affected Products (1)
D-Link:DI-8100 (16.07.26A1)
Related CVEs
10.0
CVE-2026-144884
A vulnerability was determined in D-Link DIR-505 1.10B02. The affected element is the function get_input_entri
9.8
CVE-2026-105103
A backdoor in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlier allows the manufa
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.6
CVE-2026-145025
Grav API plugin before 1.1.21 validates the client-supplied admin_base_url or Origin header with PHP parse_url
6.9
CVE-2026-135758
A heap-based buffer overflow in the license file parser of Revenera FlexNet Publisher lmadmin versions 11.19.1
6.3
CVE-2026-144771
A flaw has been found in SGLang up to 0.5.23. The affected element is the function try_match_prefix of the fil
6.3
CVE-2026-144778
A security vulnerability has been detected in Simon OpenOBJ3D up to f5a522c409428de7bf68844cf8951522e3d09485.