DrayTek Vigor 300B OS Command Injection Vulnerability in Web Management Interface

Vulnerability

A command injection vulnerability has been identified in the DrayTek Vigor 300B router, affecting versions through 1.5.1.6. The issue arises in the Web Management Interface, specifically within the 'uploadlangs' function of 'mainfunction.cgi'. The vulnerability allows for OS command injection by manipulating the 'File' argument during language package uploads. This flaw can be exploited remotely and requires authentication. The vendor has acknowledged that the Vigor 300B is no longer supported and does not plan to issue a fix.

Impact

Exploitation of this vulnerability allows authenticated users to execute arbitrary OS commands on the device.

Reproduction

To reproduce this vulnerability, log into the DrayTek Vigor 300B router via the Web Management Interface. Once authenticated, navigate to the 'uploadlangs' function in 'mainfunction.cgi'. Upload a file with a name that includes shell special characters, such as semicolons or ampersands. The injected commands will be executed on the operating system, demonstrating the command injection vulnerability.

Added: Feb 23, 2026, 10:23 PM
Updated: Feb 23, 2026, 10:23 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
6.2
remediation
3.7
relevance
3.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.