Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain or compromise admin credentials
-
DeliveryAuthenticate to VigorSwitch web management interface
-
ExploitNavigate to SMTP log notification settings
-
ExecutionSubmit crafted oversized smtpReceiver email addresses
-
PersistOverflow fixed-size buffer in diag_logmail
-
ImpactTrigger DoS crash or arbitrary code execution on switch firmware
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer copy size validation
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 valid administrative credentials for the DrayTek VigorSwitch web management interface - this is an explicit prerequisite stated in the CVE description and confirmed by the CVSS 4.0 PR:H metric. The vulnerable code path is triggered specifically through the SMTP log notification (diag_logmail) feature when configuring multiple smtpReceiver email addresses, meaning the email notification feature must be accessible from the management interface (default behavior on these devices). Limiting factors: administrative authentication is mandatory, making unauthenticated or low-privilege exploitation impossible via this vector; the attack surface is constrained to the management plane, so network segmentation of the management interface to trusted hosts significantly reduces exposure. Non-default deployments that disable email log notifications would not expose the vulnerable function. Remote network access to the web management port (typically TCP 443 or 80) is required. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) yields a score of 8.6, which accurately reflects the severity conditioned on administrative access. The PR:H constraint is the most consequential mitigating factor: an attacker must already possess valid admin credentials before triggering the overflow, substantially reducing realistic attack surface versus a PR:N flaw. AC:L and AT:N confirm that once credentials are held, exploitation requires no special configuration and no race condition. The CIA triad impact is fully high for the vulnerable device (VC:H/VI:H/VA:H), consistent with a buffer overflow capable of arbitrary code execution. Scope change metrics SC/SI/SA are all N, indicating no lateral pivot to adjacent systems via this vector alone. No EPSS data was provided in the input; given PR:H and no active exploitation in CISA KEV, real-world exploitation probability is assessed as moderate-to-low absent credential compromise. No public proof-of-concept exploit has been identified, which further depresses near-term opportunistic exploitation risk. The primary realistic threat actor is an insider, a compromised admin account, or an attacker who has already gained admin access through another vector. |
| Exploit ScenarioDerived | An attacker who has obtained valid administrative credentials - whether through credential stuffing, phishing of a network admin, or reuse from a prior breach - authenticates to the VigorSwitch web management interface and navigates to the SMTP log notification configuration. By submitting a crafted set of smtpReceiver email addresses whose combined length overflows the fixed destination buffer in diag_logmail, the attacker corrupts adjacent memory, causing a device crash (denial of service) or, if memory layout permits controlled overwrite, potentially achieving arbitrary code execution on the switch firmware. No public proof-of-concept has been identified, so the RCE path is theoretical but consistent with classic stack or heap overflow exploitation. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 24, 2026
Buffer overflow in DrayTek VigorSwitch's diag_logmail function allows authenticated administrators to cause denial of service or potentially execute arbitrary commands on affected network switches. The flaw, reported by VulnCheck and acknowledged in DrayTek's August 2026 security advisory, affects a broad range of VigorSwitch models spanning SMB and enterprise product lines. Exploitation requires valid administrative credentials, limiting opportunistic attack surface, but a compromised or rogue admin account can fully compromise device confidentiality, integrity, and availability. No public exploit code and no CISA KEV listing identified at time of analysis.
RemediationAI
Consult and apply the firmware updates detailed in DrayTek's August 2026 security advisory at https://www.draytek.com/about/security-advisory/multiple-vulnerabilities-in-vigorswitch-series-august-2026/. The input data does not specify an exact fixed firmware version number; the precise patched release for each model must be confirmed from that advisory before deployment. As a compensating control pending patching, restrict access to the web management interface by binding it to a dedicated management VLAN accessible only to trusted administrator workstations, and enforce strong, unique administrative credentials to reduce the risk of credential compromise enabling exploitation. Disabling remote SMTP log notification functionality (diag_logmail) via management policy would eliminate the vulnerable code path entirely as a temporary workaround, at the cost of losing email-based alerting. Additional VulnCheck details are available at https://www.vulncheck.com/advisories/draytek-vigorswitch-multiple-models-buffer-overflow-via-diag-logmail.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 28 packages in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in the diag_logmail diagnostic function responsible for constructing and dispatching log notification emails via SMTP. CWE-120 (Classic Buffer Overflow) describes the root cause: the function concatenates multiple smtpReceiver email address strings into a statically allocated, fixed-size stack or heap buffer without checking remaining capacity before each concatenation. Supplying a sufficient number of long or numerous SMTP recipient addresses exceeds the buffer boundary, corrupting adjacent memory. CPE data confirms the affected codebase spans at least ten discrete hardware SKUs: VigorSwitch G2540XS, P2540XS, FX2120, G2282X, P2282X, Q2300X, PQ2300XB, G2542X, P2542X, and P2542XH, with tags indicating a substantially wider model scope including the G1280, P1280, G2121, P2121, G2280X, P2280X, Q2200X, G2100, P2100, G2540X, P2540X, and additional variants. The vulnerability surfaces through the web management interface, a standard attack vector for managed switch administration.
Know when Vigorswitch G2540Xs 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:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Admin credentials required (PR:H), web interface is network-reachable (AV:N), no special preconditions (AC:L), full CIA impact on the device, no scope change (S:U).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.org
Multiple DrayTek VigorSwitch models contain a buffer overflow vulnerability in the diag_logmail function. The vulnerability is caused by concatenating multiple smtpReceiver email addresses into a fixed-size buffer without checking the remaining buffer size. A remote attacker can trigger this vulnerability via crafted input, causing a denial of service or potentially executing arbitrary commands. Exploitation requires valid administrative credentials for the device's web management interface.
Executive ViewAI
A buffer overflow vulnerability (CVE-2026-71941) in DrayTek VigorSwitch network switches could allow compromised administrator accounts to disrupt service or assume control of affected devices deployed across SMB and enterprise networks. While exploitation requires valid admin credentials, the absence of available patches means affected infrastructure remains exposed to insider threats and credential compromise until remediation is deployed.
No vendor-released patch identified at time of analysis. Interim mitigations include: enforce network-layer restrictions limiting administrative access to VigorSwitch devices, require multi-factor authentication for admin accounts (if supported), enable comprehensive administrative activity logging, deploy network monitoring to detect anomalous switch behavior, and maintain tested backups of switch configurations for rapid recovery.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Vigorswitch G2540Xs
View allPre-authentication OS command injection in DrayTek VigorSwitch managed switches lets a remote, unauthenticated attacker
Command injection in DrayTek VigorSwitch's setDevNet function allows authenticated remote attackers to execute arbitrary
Command injection in DrayTek VigorSwitch's setTime function enables authenticated administrators to execute arbitrary OS
Command injection in multiple DrayTek VigorSwitch models enables authenticated administrators to execute arbitrary OS co
Command injection in multiple DrayTek VigorSwitch models' getDetail function enables authenticated remote attackers hold
Command injection in DrayTek VigorSwitch's getVid function allows an authenticated remote administrator to execute arbit
Command injection in multiple DrayTek VigorSwitch managed switch models allows an authenticated remote administrator to
Command injection in the DrayTek VigorSwitch `webBackupAction` function allows authenticated remote attackers to execute
Command injection in the DrayTek VigorSwitch series' pingtrace diagnostic function allows an authenticated administrator
Command injection in DrayTek VigorSwitch's jsonstatus function allows authenticated remote administrators to execute arb
Command injection in DrayTek VigorSwitch's tftp_upgrade function enables authenticated remote administrators to execute
Command injection via the commandTable function affects 28 DrayTek VigorSwitch managed switch models across multiple fir
EUVD-2026-65000
GHSA-2wrc-f39g-cp5h
NVD
CVE.org
EPSS
Exploit-DB