Cyber Posture

CVE-2026-3040

MediumPublic PoC

Published: 23 February 2026

Published
23 February 2026
Modified
26 February 2026
KEV Added
Patch
CVSS Score 4.7 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L
EPSS Score 0.0045 63.7th percentile
Risk Priority 10 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2026-3040 is a medium-severity Command Injection (CWE-77) vulnerability in Draytek Vigor300B Firmware. Its CVSS base score is 4.7 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 36.3% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Threat & Defense at a Glance

What attackers do: exploitation maps to Exploit Public-Facing Application (T1190) and 1 other technique.
Threat & Defense Details

Likely Mitigating ControlsAI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-78

Platform-independent apps typically execute inside a managed runtime or sandbox that restricts direct OS command execution, reducing the ability to exploit OS command injection.

addresses: CWE-78

Validates inputs to block special elements that would alter OS command execution.

MITRE ATT&CK Enterprise TechniquesAI

T1190 Exploit Public-Facing Application Initial Access
Adversaries may attempt to exploit a weakness in an Internet-facing host or system to initially access a network.
T1059.008 Network Device CLI Execution
Adversaries may abuse scripting or built-in command line interpreters (CLI) on network devices to execute malicious command and payloads.
Why these techniques?

OS command injection in exposed web management interface directly enables exploitation of public-facing application for initial device access (T1190) and arbitrary command execution on network device (T1059.008).

Confidence: HIGH · MITRE ATT&CK Enterprise v18.1

NVD Description

A vulnerability was identified in DrayTek Vigor 300B up to 1.5.1.6. This affects the function cgiGetFile of the file /cgi-bin/mainfunction.cgi/uploadlangs of the component Web Management Interface. The manipulation of the argument File leads to os command injection. The attack may…

more

be initiated remotely. The exploit is publicly available and might be used. The vendor confirms that "300B is EoL, and this is an authenticated vulnerability. We don't plan to fix it." This vulnerability only affects products that are no longer supported by the maintainer.

Deeper analysisAI

CVE-2026-3040 is an OS command injection vulnerability in DrayTek Vigor 300B routers running firmware versions up to 1.5.1.6. It affects the cgiGetFile function within the /cgi-bin/mainfunction.cgi/uploadlangs endpoint of the Web Management Interface, where manipulation of the File argument enables command injection. The issue is classified under CWE-77 (Command Injection) and CWE-78 (OS Command Injection), with a CVSS v3.1 base score of 4.7 (AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:L/A:L).

An authenticated remote attacker with high privileges, such as administrative access to the Web Management Interface, can exploit this vulnerability over the network with low complexity. Successful exploitation allows injection and execution of arbitrary operating system commands, potentially leading to limited impacts on confidentiality, integrity, and availability, as reflected in the CVSS metrics.

Advisories from sources like VulDB and a GitHub issue tracker confirm the vulnerability, noting that a public exploit is available and may be in use. The vendor has stated that the Vigor 300B is end-of-life (EoL) and will not receive a patch, emphasizing that this is an authenticated issue affecting only unsupported products.

In context, this vulnerability highlights risks in legacy network devices, where public exploits increase the likelihood of targeted attacks on unpatched, EoL hardware still in use.

Details

CWE(s)

Affected Products

draytek
vigor300b firmware
≤ 1.5.1.6

CVEs Like This One

CVE-2026-5978Shared CWE-77, CWE-78
CVE-2026-5351Shared CWE-77, CWE-78
CVE-2026-4499Shared CWE-77, CWE-78
CVE-2026-4627Shared CWE-77, CWE-78
CVE-2026-6115Shared CWE-77, CWE-78
CVE-2026-6132Shared CWE-77, CWE-78
CVE-2026-7243Shared CWE-77, CWE-78
CVE-2025-7407Shared CWE-77, CWE-78
CVE-2026-6154Shared CWE-77, CWE-78
CVE-2026-7153Shared CWE-77, CWE-78

References