Summary
CVE-2026-94003 is a critical, unauthenticated stack-based buffer overflow affecting the Comfast CF-N1-S wireless access point/router, firmware version 2.6.0.1. The flaw resides in the get_css_path_from_uri function used by the /cgi-bin/mbox-config endpoint of the device’s Web Management Interface, and can be triggered remotely over the network with no authentication or user interaction. The issue has been assigned a maximum CVSS v3.1 base score of 10.0 and a public proof-of-concept exploit is already available.
Technical details
- Root cause: The
get_css_path_from_urifunction copies the portion of the request URI preceding the?character into a fixed-size stack buffer without validating the input length against the buffer’s capacity. The copy loop only stops at a?character or a string terminator, so an overlong path segment overflows adjacent stack memory. - Trigger condition: Sending an HTTP GET request to
/cgi-bin/mbox-config/with an excessively long path component before the query string (proof-of-concept exploits use a path of repeated characters, e.g. 100+ bytes) overflows the stack buffer. - Attack vector: Network-based (AV:N), low attack complexity, no privileges and no user interaction required — the endpoint is reachable without any login/session validation.
- Impact: Overwriting stack data can crash the web management process (denial of service) and, depending on the target’s memory layout and lack of stack protections, may allow overwriting of a return address to achieve arbitrary code execution on the device. Exploitation has been confirmed via firmware emulation, demonstrating a reliable process crash.
Affected software
- Comfast CF-N1-S — firmware version 2.6.0.1 (Web Management Interface /
mbox-configcomponent)
Severity
- CVSS v3.1 Base Score: 10.0 (Critical)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Mitigation and recommended actions
- Immediate: No vendor-issued patched firmware version has been confirmed as of this writing. Check the Comfast support portal regularly for a firmware update addressing this issue and apply it as soon as it becomes available.
- If no patch is available:
- Do not expose the CF-N1-S web management interface (
/cgi-bin/mbox-config) to the public internet or untrusted networks; restrict access to trusted management VLANs/IP ranges only. - Place the device’s management interface behind a VPN or firewall ACL that limits inbound access to authorized administrators.
- Monitor for anomalous long-URI requests to
/cgi-bin/mbox-configat the network perimeter (WAF/IPS) as an indicator of exploitation attempts. - Where feasible, replace or isolate affected devices until a fix is confirmed, given the maximum severity and public availability of exploit code.
- Do not expose the CF-N1-S web management interface (

