CVE-2025-15194

9.8 CRITICAL

📋 TL;DR

A stack-based buffer overflow vulnerability in the hedwig.cgi HTTP header handler of D-Link DIR-600 routers allows remote attackers to execute arbitrary code by manipulating the Cookie argument. This affects D-Link DIR-600 routers up to firmware version 2.15WWb02. The vulnerability is particularly dangerous because these products are no longer supported by the vendor.

💻 Affected Systems

Products:
  • D-Link DIR-600
Versions: Up to firmware version 2.15WWb02
Operating Systems: Embedded Linux
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects products that are no longer supported by D-Link. The hedwig.cgi component is typically accessible via web interface.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Remote code execution leading to complete device compromise, persistence, lateral movement, and data exfiltration.

🟠

Likely Case

Remote code execution allowing attackers to install malware, create backdoors, or use the device as part of a botnet.

🟢

If Mitigated

Denial of service or limited impact if exploit attempts are blocked by network controls.

🌐 Internet-Facing: HIGH - The vulnerability is remotely exploitable via HTTP and affects internet-facing routers.
🏢 Internal Only: MEDIUM - Could be exploited from internal networks if devices are accessible.

🎯 Exploit Status

Public PoC: ⚠️ Yes
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Proof-of-concept exploit code is publicly available on GitHub. The vulnerability is remotely exploitable without authentication.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: None

Vendor Advisory: None - product is end-of-life

Restart Required: No

Instructions:

No official patch available. D-Link has ended support for DIR-600 routers. Replace with supported hardware.

🔧 Temporary Workarounds

Disable web interface access

linux

Block external access to the router's web administration interface

iptables -A INPUT -p tcp --dport 80 -j DROP
iptables -A INPUT -p tcp --dport 443 -j DROP

Network segmentation

all

Isolate affected routers in separate network segments

🧯 If You Can't Patch

  • Immediately replace affected D-Link DIR-600 routers with supported hardware
  • Implement strict network access controls to limit exposure of affected devices

🔍 How to Verify

Check if Vulnerable:

Check firmware version via router web interface at http://router-ip/ or using command: telnet router-ip (if enabled) and check version

Check Version:

Check web interface at http://router-ip/ under Status or System Information

Verify Fix Applied:

Verify device replacement or network controls are in place. No patch verification possible.

📡 Detection & Monitoring

Log Indicators:

  • Unusual HTTP requests to hedwig.cgi with long Cookie parameters
  • Multiple failed exploit attempts

Network Indicators:

  • HTTP POST requests to /hedwig.cgi with abnormal Cookie header length
  • Traffic patterns suggesting buffer overflow attempts

SIEM Query:

source="router-logs" AND uri="/hedwig.cgi" AND (cookie_length>1000 OR contains(cookie,"AAAAAAAA"))

🔗 References

📤 Share & Export