CVE-2026-71941: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') in DrayTek Corporation VigorSwitch G2540xs
Description
A buffer overflow vulnerability exists in the diag_logmail function of DrayTek VigorSwitch G2540xs devices. This occurs because multiple smtpReceiver email addresses are concatenated into a fixed-size buffer without verifying available space. An attacker with valid administrative credentials on the device's web management interface can exploit this flaw to cause denial of service or potentially execute arbitrary commands.
CVSS v4.0
Score 8.6high
Affected software
DrayTek Corporation
VigorSwitch G2540xs
DrayTek Corporation
VigorSwitch P2540xs
DrayTek Corporation
VigorSwitch FX2120
DrayTek Corporation
VigorSwitch G2282x
DrayTek Corporation
VigorSwitch P2282x
DrayTek Corporation
VigorSwitch Q2300x
DrayTek Corporation
VigorSwitch PQ2300xb
DrayTek Corporation
VigorSwitch G2542x
DrayTek Corporation
VigorSwitch P2542x
DrayTek Corporation
VigorSwitch P2542xh
DrayTek Corporation
VigorSwitch PX2060
DrayTek Corporation
VigorSwitch G1280
DrayTek Corporation
VigorSwitch P1280
DrayTek Corporation
VigorSwitch P1281x
DrayTek Corporation
VigorSwitch G1282
DrayTek Corporation
VigorSwitch P1282
DrayTek Corporation
VigorSwitch G2121
DrayTek Corporation
VigorSwitch P2121
DrayTek Corporation
VigorSwitch PQ2121x
DrayTek Corporation
VigorSwitch Q2121x
DrayTek Corporation
VigorSwitch G2280x
DrayTek Corporation
VigorSwitch P2280x
DrayTek Corporation
VigorSwitch Q2200x
DrayTek Corporation
VigorSwitch PQ2200xb
DrayTek Corporation
VigorSwitch G2100
DrayTek Corporation
VigorSwitch P2100
DrayTek Corporation
VigorSwitch G2540x
DrayTek Corporation
VigorSwitch P2540x
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in DrayTek VigorSwitch G2540xs arises from a classic buffer overflow in the diag_logmail function. Specifically, the function concatenates multiple smtpReceiver email addresses into a fixed-size buffer without checking the remaining buffer size, leading to overflow. Exploitation requires authenticated administrative access to the device's web management interface. Successful exploitation can result in denial of service or arbitrary code execution. The CVSS 4.0 base score is 8.6, indicating high severity. No official patch or remediation guidance is currently available, and no known exploits are reported in the wild.
Potential Impact
Exploitation of this vulnerability can cause denial of service on affected devices or potentially allow execution of arbitrary commands, which could compromise device integrity and network security. However, exploitation requires valid administrative credentials, limiting the attack surface to authorized users or attackers who have obtained such credentials.
Mitigation Recommendations
No official patch or remediation guidance is currently available. Users should restrict administrative access to trusted personnel and networks, monitor for unauthorized access attempts, and check the vendor's advisory for updates regarding patches or mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-08T16:37:44.519Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6a8c7defacd9273b49e1b472
Added to database: 08/24/2026, 17:22:55 UTC
Last enriched: 09/10/2026, 09:37:27 UTC
Last updated: 10/06/2026, 18:48:24 UTC
Views: 57
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.