CVE-2021-27137: DD-WRT Stack-Based Buffer Overflow
A security vulnerability in DD-WRT firmware allows attackers to remotely take control of affected networking devices by sending malicious data to the UPnP feature.

English Brief
A security vulnerability in DD-WRT firmware allows attackers to remotely take control of affected networking devices by sending malicious data to the UPnP feature.
الموجز العربي
CVE-2021-27137: ثغرة تجاوز سعة المخزن المؤقت في DD-WRT
توجد ثغرة أمنية في برمجيات DD-WRT قد تسمح للمهاجمين بالسيطرة على أجهزة الشبكة المتأثرة عن بُعد عبر استغلال ميزة UPnP.
- 1Disable UPnP service in DD-WRT web interface
- 2Update firmware to the latest version via Administration > Firmware Upgrade
- 3Restrict access to the router management interface to trusted internal IP addresses only
English Advisory
// Intelligence Summary
CVE-2021-27137 describes a critical stack-based buffer overflow vulnerability within DD-WRT firmware, specifically impacting the Universal Plug and Play (UPnP) service.
التقرير العربي
// ملخص استخباراتي
تصف الثغرة CVE-2021-27137 ثغرة تجاوز سعة المخزن المؤقت (Stack-based buffer overflow) في برمجيات DD-WRT، وتؤثر تحديداً على خدمة Universal Plug and Play (UPnP).
// Technical Context
The vulnerability resides in the processing logic of the UPnP implementation. An unauthenticated attacker can craft malicious packets that exceed the capacity of an internal stack buffer. This memory corruption can lead to arbitrary code execution with the privileges of the UPnP service.
// السياق الفني
تكمن الثغرة في منطق معالجة خدمة UPnP. يمكن للمهاجم غير المصرح له إرسال حزم برمجية خبيثة تتجاوز سعة المخزن المؤقت في الذاكرة، مما يؤدي إلى تلف في الذاكرة وإمكانية تنفيذ تعليمات برمجية عشوائية بصلاحيات خدمة UPnP.
// Exposure Notes
Devices running vulnerable versions of DD-WRT firmware with the UPnP service enabled are susceptible to exploitation. Successful exploitation does not require authentication, significantly lowering the barrier for remote adversaries.
// ملاحظات التعرض
تعتبر الأجهزة التي تعمل بإصدارات DD-WRT غير محدثة مع تفعيل خدمة UPnP عرضة للاختراق. لا تتطلب عملية الاستغلال مصادقة مسبقة، مما يسهل على المهاجمين الوصول عن بُعد.
// Defensive Priority
Immediate attention is required to audit network infrastructure. Organizations should disable UPnP if not strictly required and prioritize patching firmware to the latest secure version.
// أولوية الدفاع
يجب إيلاء أولوية قصوى لتدقيق البنية التحتية للشبكة. يُنصح بتعطيل ميزة UPnP إذا لم تكن ضرورية، وتحديث البرمجيات الثابتة (Firmware) إلى أحدث إصدار آمن.
Mitigation Checklist
- 1Disable UPnP service in DD-WRT web interface
- 2Update firmware to the latest version via Administration > Firmware Upgrade
- 3Restrict access to the router management interface to trusted internal IP addresses only
- 4Implement firewall rules to block unsolicited inbound UPnP traffic
قائمة إجراءات التخفيف
- 1قم بتعطيل خدمة UPnP من واجهة إدارة DD-WRT
- 2قم بتحديث البرمجيات الثابتة (Firmware) إلى أحدث إصدار عبر قسم الإدارة (Administration > Firmware Upgrade)
- 3قيد الوصول إلى واجهة إدارة الراوتر ليقتصر على عناوين IP داخلية موثوقة فقط
- 4قم بتفعيل قواعد جدار الحماية لمنع حركة مرور UPnP الواردة غير المرغوب فيها
- Source: CISA Known Exploited Vulnerabilities
# Remediation Checklist:
# 1. Disable UPnP service in DD-WRT web interface
# 2. Update firmware to the latest version via Administration > Firmware Upgrade
# 3. Restrict access to the router management interface to trusted internal IP addresses only
# 4. Implement firewall rules to block unsolicited inbound UPnP traffic