Stack-based Buffer Overflow in Edimax EW-7478APC
Edimax EW-7478APC version 1.04 is vulnerable to a stack-based buffer overflow in the formWanTcpipSetup function, allowing for remote code execution via the pppUserName parameter.
CVE search metadata
CVE search record: CVE-2026-19959. Severity: critical. CVSS: 9.9. KEV: no. Product: EW-7478APC (1.04). Brief: Stack-based Buffer Overflow in Edimax EW-7478APC. Brief link: https://feed.craftedsignal.io/briefs/2026-08-edimax-buffer-overflow/
What's new
A stack-based buffer overflow vulnerability has been identified in the Edimax EW-7478APC router, specifically within firmware version 1.04. The vulnerability resides in the formWanTcpipSetup function, accessible via the /goform/formWanTcpipSetup endpoint. An authenticated remote attacker can trigger this overflow by sending a specially crafted input to the pppUserName parameter. This flaw allows for the execution of arbitrary code on the affected device or can result in a denial-of-service condition. Publicly available exploit code exists, increasing the risk of exploitation. The vendor has not provided a patch or response to the disclosure. Defenders should note that this vulnerability requires authenticated access, but its remote nature and the availability of exploit material pose a significant risk to internal network segments where these devices are deployed.
Attack Chain
- Attacker performs network reconnaissance to identify reachable Edimax EW-7478APC management interfaces.
- Attacker obtains valid administrative or user credentials via secondary means (e.g., credential stuffing or default password exploitation).
- Attacker authenticates to the web-based management interface.
- Attacker crafts a malicious HTTP POST request targeting the /goform/formWanTcpipSetup endpoint.
- Attacker injects a long string payload into the pppUserName parameter of the POST body.
- The web server process fails to perform sufficient boundary checks on the pppUserName input before copying it into a stack-based buffer.
- The overflow overwrites the return address, enabling redirection of execution flow to arbitrary attacker-supplied shellcode.
- Final objective is achieved: arbitrary command execution or system crash.
Impact
Successful exploitation allows for complete compromise of the router, potentially providing an attacker with a pivot point into the local network. With a CVSS v3.1 score of 9.9, this vulnerability represents a critical risk to small office and home office (SOHO) deployments. If exploited, attackers could intercept traffic, perform man-in-the-middle attacks, or deploy further malicious payloads. Given the lack of a vendor patch, the only effective mitigation is to restrict management interface access to trusted networks or replace affected hardware.
Recommendation
- Restrict access to the management web interface of all Edimax EW-7478APC devices to a dedicated management VLAN or trusted IP addresses via firewall rules.
- Monitor internal network traffic for unauthorized HTTP POST requests directed at /goform/formWanTcpipSetup.
- Audit logs for failed authentication attempts preceding any interaction with management endpoints.
- Isolate affected devices from the internet until a firmware update is provided by the vendor.
Immediate actions
Restrict management interface access via network segmentation or firewall rules
Threat Hunt
Look for POST requests to /goform/formWanTcpipSetup followed by unusual outbound traffic from the device
Data: Web logs, Network flows
Mitigations
Disable remote management features on all Edimax EW-7478APC devices
CVE-2026-19959
Detection coverage 3
Detect Exploitation of CVE-2026-19959 - Web Request to formWanTcpipSetup
highDetects HTTP requests to the vulnerable formWanTcpipSetup endpoint on Edimax devices.
Detect CVE-2026-19961 Exploitation Attempt - Remote Buffer Overflow
highDetects exploitation attempts against CVE-2026-19961 by monitoring HTTP requests to the /goform/formWlSiteSurvey endpoint with excessively long selSSID parameters.
Detect CVE-2026-19960 Exploitation Attempt - Command Injection
highDetects exploitation attempts against the Edimax EW-7478APC /goform/formWlbasic endpoint via the rootAPmac parameter containing command injection characters.
Detection queries are available on the platform. Get full rules →