Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain valid web credentials
-
DeliveryReach /cgi-bin/mainfunction.cgi remotely
-
ExploitCall setSWMProfile with overlong filename
-
ExecutionOverflow stack buffer (CWE-121)
-
ImpactExecute code or crash router
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires authenticated access to the Vigor2960 management interface (CVSS PR:L) and the ability to reach the /cgi-bin/mainfunction.cgi endpoint over the network, then invoke the setSWMProfile function with a manipulated 'filename' argument. Limiting factors: valid credentials are needed, so an unauthenticated internet attacker cannot trigger it directly; exposure is greatly increased only where the web management interface is reachable from untrusted networks. Affected deployments are Vigor2960 running firmware up to 1.5.1.6; the fix is upgrading to 1.5.1.7, which the vendor indicates is still not the final release addressing all reported issues. |
| Impact | This is a credible this-week priority rather than a top-tier emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:N) with high impact across confidentiality, integrity and availability (VC/VI/VA:H) and high subsequent-system impact (SC/SI/SA:H) scores 8.6, and the Exploit Maturity is marked E:P (proof-of-concept). The vector's PR:L means exploitation requires some authenticated access - the public exploit reference path itself is labeled 'authenticated-setswmprofile', consistent with PR:L - so this is not an unauthenticated internet-wide drive-by. The VulDB 'this_week' decision label aligns with a network-reachable, low-complexity, high-impact flaw that nonetheless needs valid credentials. Notable gaps: no EPSS score and no CISA KEV entry are provided, and the input states the PoC is a reference only and not verified as working exploit code, so active exploitation is not confirmed. The main conflicting/soft signal is that CVSS subsequent-system scope is High while the underlying evidence only describes a stack overflow in one CGI handler - treat the SC/SI/SA:H as the vendor-supplied rating, not independently verified mechanism. |
| Exploit ScenarioDerived | An attacker who already holds valid credentials to the Vigor2960 web interface sends a crafted request to /cgi-bin/mainfunction.cgi invoking setSWMProfile with an overlong 'filename' argument, overflowing a stack buffer (CWE-121) to crash the service or execute code on the router. A public PoC reference exists (labeled authenticated) but is not verified as working exploit code; with AV:N/AC:L the request is remotely deliverable and low-complexity once authenticated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 18, 2026
Stack-based buffer overflow in DrayTek Vigor2960 firmware up to and including 1.5.1.6 allows remote, authenticated users to corrupt memory and potentially execute code by supplying a manipulated 'filename' argument to the setSWMProfile function in /cgi-bin/mainfunction.cgi. Exploitation requires valid credentials on the router's management interface and network reachability to that CGI endpoint, so an unauthenticated internet attacker cannot trigger it directly. Vendor firmware v1.5.1.7 is the identified fix, though the vendor notes 1.5.1.6 was not the latest release and a further build is planned; a public PoC reference exists but is not verified as working exploit code, and no confirmed active exploitation has been reported, placing this at this-week priority rather than emergency.
RemediationAI
Vendor-released patch: firmware v1.5.1.7, distributed as https://fw.draytek.com.tw/Vigor2960/Firmware/v1.5.1.7/Vigor2960_v1.5.1.7.zip; upgrading is the recommended remedy and the vendor advises that 1.5.1.6 is not the latest build and that an additional release is planned to fully cover the reported issues, so re-check firmware availability after v1.5.1.7. Because exploitation requires authenticated access (CVSS PR:L) and reachability to /cgi-bin/mainfunction.cgi, reduce exposure in the interim by removing the Vigor2960 web management interface from untrusted networks, restricting it to trusted administrative networks or VPN, and limiting and auditing administrative credentials - at the cost that remote administration must go through those trusted paths. Advisory details are at https://vuldb.com/vuln/439439 and the public analysis at https://github.com/yikesoftware/DrayTek_Vigor2960_Security_Analysis/tree/main/cases/DRV2960-0021-authenticated-setswmprofile-filename-stack-overflow.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is the embedded web management CGI binary shipped with DrayTek Vigor2960 routers, specifically the setSWMProfile function in /cgi-bin/mainfunction.cgi, which processes a caller-supplied 'filename' argument. The weakness class is CWE-121 (stack-based buffer overflow): a fixed-size buffer allocated on the stack receives attacker-influenced data without adequate bounds enforcement, allowing adjacent stack memory such as saved registers and return addresses to be overwritten. The trigger is described in the available sources as manipulation of the filename argument, and public analysis material (DRV2960-0021) frames the case as an authenticated setSWMProfile filename overflow; the sources do not describe the exact copy routine or the precise overflow offset. The CPE cpe:2.3:a:draytek:vigor2960:*:*:*:*:*:*:*:* is unversioned, so every firmware build at or below 1.5.1.6 should be treated as affected, and because the flaw sits in a network-facing CGI handler the CVSS 4.0 vector rates it AV:N/AC:L/PR:L/UI:N with high impact to confidentiality, integrity and availability, matching the assessor's CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Know when Vigor2960 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P
Network-reachable CGI (AV:N), low complexity (AC:L), but the public exploit and PR:L indicate authenticated access (PR:L); stack overflow yields code execution on the device, so C/I/A:H.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
3DescriptionCVE.org
A weakness has been identified in DrayTek Vigor2960 up to 1.5.1.6. Affected is the function setSWMProfile of the file /cgi-bin/mainfunction.cgi. Executing a manipulation of the argument filename can lead to stack-based buffer overflow. The attack may be performed from remote. The exploit has been made available to the public and could be used for attacks. Upgrading to version 1.5.1.7 is able to address this issue. It is recommended to upgrade the affected component. The vendor recommends: "1.5.1.6 isn't the latest version of 2960, the latest version fixes many security issues. And we have another one in our release plan which should solve the issues reported."
Technical POC Analysis
CWE-121, stack-based buffer overflow, in the vendor's own CGI binary /www/cgi-bin/mainfunction.cgi (ELF32 little-endian ARM) shipped in DrayTek Vigor2960 firmware 1.5.1.6 (revision 8218).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Latest POC
1 PoC candidate from github (unverified)
Sign in to open the public PoC links collected for this CVE.
Executive ViewAI
A high-severity buffer overflow vulnerability (CVE-2026-132139) affects DrayTek Vigor2960 routers running firmware up to 1.5.1.6, potentially enabling authenticated attackers to execute code and compromise network integrity. Organizations relying on these devices for secure connectivity must prioritize patching to prevent unauthorized access and data breaches.
Apply vendor patch.
Threat Model
5 threats: Elevation of Privilege, Denial of Service, Tampering and 2 more
5-step attack chain with trust boundaries and controls
Full threat model - attack chain, trust boundaries, controls per stage and evidence - is part of the Pro and Business plans.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
Authenticated command injection in the DrayTek Vigor2960 router's web management interface lets an attacker holding vali
OS command injection in DrayTek Vigor2960 firmware 1.5.1.6 Revision 8218 allows authenticated, low-privilege attackers t
Authenticated command injection in DrayTek Vigor2960 firmware 1.5.1.6 lets a high-privilege administrator - or anyone ho
Authenticated path traversal in DrayTek Vigor2960 firmware through 1.5.1.6 allows a remote low-privileged user with acce
Path traversal in the DrayTek Vigor2960 web management interface (firmware 1.5.1.6) allows a remote user who already hol
Stack-based buffer overflow in the DrayTek Vigor2960 router's doWebBackup backup handler, reachable through /cgi-bin/mai
Authenticated stack-based buffer overflow in DrayTek Vigor2960 firmware through 1.5.1.6 allows a low-privileged user of
Heap-based buffer overflow in the DrayTek Vigor2960 router firmware 1.5.1.6, reached through the check_file_exist routin
Authenticated command injection in DrayTek Vigor2960 1.5.1.6 Revision 8218 allows a low-privileged user with valid crede
Authenticated command injection in DrayTek Vigor2960 1.5.1.6 Revision 8218 lets a low-privileged user of the web managem
Authenticated stack-based buffer overflow in DrayTek Vigor2960 firmware through 1.5.1.6 lets a high-privileged user of t
Path traversal in DrayTek Vigor2960 1.5.1.6 Revision 8218 allows an authenticated low-privilege user to manipulate the s
EUVD-2026-129285
GHSA-v5r3-j938-vhrp
NVD
CVE.org
EPSS
VulDB
Exploit-DB