CVE-2021-43118 Command injection in n/a

Critical 9.8 Published Updated

Remote attackers can execute arbitrary code on DrayTek routers via crafted HTTP requests to mainfunction.cgi.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-43118?

CVE-2021-43118 is a critical command injection vulnerability in n/a, published on 29 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Remote Command Injection vulnerability exists in DrayTek Vigor 2960 1.5.1.3, DrayTek Vigor 3900 1.5.1.3, and DrayTek Vigor 300B 1.5.1.3 via a crafted HTTP message containing malformed QUERY STRING in mainfunction.cgi, which could let a remote malicious user execute arbitrary code.

Weakness: CWE-77

Which versions are affected by CVE-2021-43118?

It affects 3 products.

Products include Draytek Vigor2960 Firmware, Draytek Vigor300b Firmware, Draytek Vigor3900 Firmware.

How do I fix CVE-2021-43118?

No fix has been published for CVE-2021-43118 yet. Limit exposure of the affected software until one is available.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-43118 being exploited?

There is no known exploitation of CVE-2021-43118 in the wild and no public exploit code.

Sources

Also known as GHSA-3q87-6fcw-7mj7.

Is CVE-2021-43118 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free