CVE-2026-113395: DrayTek Vigor2960 path traversal in swmconfigupload

CVE-2026-113395 · Severity: high · CVSS 7.4 · Published 2026-10-20

DrayTek Vigor2960 is a network router used to manage and secure corporate and small-business networks. An authenticated administrator can exploit a flaw in the file upload function to write or overwrite files anywhere on the device with root privileges, potentially compromising the router's configuration and operation. The vulnerability requires valid administrator credentials and has been publicly disclosed.

Technologies: DrayTek Vigor2960. Vendors: DrayTek.

Quick answers

Is CVE-2026-113395 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-113395 being exploited in the wild.
How severe is CVE-2026-113395?
High severity, with a CVSS score of 7.4, published 20 October 2026.
Which products and versions are affected?
DrayTek Vigor2960 1.5.1.6 Revision 8218.
Is there a fix for CVE-2026-113395?
Yes: fixed in 1.5.1.7. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-113395 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2026-113395?
Check whether you run DrayTek Vigor2960 at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 1.5.1.7

Technical details

The swmconfigupload CGI endpoint fails to properly sanitize the multipart form field name before using it as a file destination in a shell mv command. The cgiEscape() function removes HTML entities but does not strip path traversal characters (. and /) or single quotes, allowing an authenticated attacker to construct a field name such as "../../../var/status_system_interface" to write uploaded content to arbitrary filesystem locations. Because the CGI runs as root, this enables arbitrary file write with elevated privileges.

Affected products

  • DrayTek Vigor2960 1.5.1.6 Revision 8218

Timeline

  • 2026-10-20: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.