Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-113394 Overview
CVE-2026-113394 is a path traversal vulnerability in the DrayTek Vigor2960 router running firmware version 1.5.1.6 Revision 8218. The flaw resides in the setSWMProfile function handled by /cgi-bin/mainfunction.cgi. An authenticated remote attacker can manipulate the setSWMProfile argument to traverse directories and clobber files outside the intended profile storage location. The exploit is publicly available on GitHub. DrayTek states that Vigor2960 is end-of-sale (EoS) with limited support, meaning only major unauthenticated vulnerabilities will be reviewed. This vulnerability affects products no longer supported by the vendor.
Critical Impact
Authenticated attackers can traverse the file system through /cgi-bin/mainfunction.cgi and overwrite arbitrary files on an unsupported DrayTek Vigor2960 router.
Affected Products
- DrayTek Vigor2960 firmware 1.5.1.6 Revision 8218
- setSWMProfile function in /cgi-bin/mainfunction.cgi
- End-of-Sale DrayTek Vigor2960 appliances with no ongoing vendor support
Discovery Timeline
- 2026-10-20 - CVE-2026-113394 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2026-113394
Vulnerability Analysis
The vulnerability is a path traversal flaw [CWE-22] in the setSWMProfile handler of /cgi-bin/mainfunction.cgi on the DrayTek Vigor2960. The CGI endpoint accepts a setSWMProfile argument that is used to construct a file path for profile storage. The handler does not normalize or validate the supplied path, allowing sequences such as ../ to escape the profile directory. The GitHub security analysis labels the issue as an authenticated path traversal with file clobber impact. An attacker with valid credentials can overwrite files on the device, potentially corrupting configuration or replacing binaries referenced by other services.
Root Cause
The root cause is missing input sanitization in the setSWMProfile function. User-supplied data is concatenated into a filesystem path without canonicalization or allow-list filtering. Directory traversal sequences pass through to filesystem write operations, breaking the trust boundary between the web management interface and the underlying firmware filesystem.
Attack Vector
The attack is remote and network-based but requires an authenticated session on the Vigor2960 web management interface. An attacker sends a crafted HTTP request to /cgi-bin/mainfunction.cgi with a setSWMProfile parameter containing traversal sequences and a target path. The request causes the firmware to write attacker-controlled content to the chosen location. Because Vigor2960 is EoS, DrayTek will not issue a fix. Public proof-of-concept material is referenced in the GitHub Security Analysis and the VulDB Vulnerability Details.
Detection Methods for CVE-2026-113394
Indicators of Compromise
- HTTP requests to /cgi-bin/mainfunction.cgi containing a setSWMProfile parameter with ../ or encoded traversal sequences such as %2e%2e%2f.
- Unexpected modifications to firmware configuration files, SWM profile directories, or system binaries on Vigor2960 devices.
- Authenticated management sessions originating from untrusted or unexpected source IP ranges.
Detection Strategies
- Inspect router access logs for POST or GET requests targeting mainfunction.cgi with abnormal setSWMProfile values.
- Correlate successful admin logins with subsequent profile-related CGI calls that produce filesystem changes.
- Deploy network signatures that flag traversal patterns in query strings and form bodies destined for the Vigor2960 web interface.
Monitoring Recommendations
- Forward Vigor2960 syslog and web admin logs to a centralized log platform for retention and query.
- Alert on new administrative sessions outside maintenance windows or from non-whitelisted management subnets.
- Monitor outbound traffic from the router for anomalous flows that could indicate post-exploitation activity.
How to Mitigate CVE-2026-113394
Immediate Actions Required
- Remove Vigor2960 devices from internet-facing roles and restrict management access to a dedicated administrative VLAN.
- Rotate all administrative credentials on the device and disable unused management accounts to raise the authenticated-access bar.
- Plan replacement of EoS Vigor2960 units with a currently supported router model, as DrayTek will not patch this issue.
Patch Information
DrayTek has not issued a patch for Vigor2960 firmware 1.5.1.6. The vendor states that 2960 1.5.1.7 corrected many security issues but that Vigor2960 is end-of-sale with limited support, and only major unauthenticated vulnerabilities will be reviewed. Operators requiring a fix should migrate to a supported DrayTek model. Reference the VulDB CVE Report for the vendor statement.
Workarounds
- Block external access to /cgi-bin/mainfunction.cgi at the perimeter and restrict it to trusted management hosts only.
- Enforce multi-factor or jump-host access for any administrator interacting with the Vigor2960 web interface.
- Apply upstream web application firewall rules that reject requests containing ../, ..\, or URL-encoded traversal sequences targeting the router management path.
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

