CVE-2021-20133 Path traversal in Quagga Services on D-Link DIR-2640 Routers

Medium 6.1 Published Updated

Authenticated attackers can read arbitrary files or cause denial of service on D-Link DIR-2640 routers via path traversal in Quagga services.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-20133?

CVE-2021-20133 is a medium-severity path traversal vulnerability in Quagga Services on D-Link DIR-2640 Routers, published on 30 Dec 2021. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Quagga Services on D-Link DIR-2640 less than or equal to version 1.11B02 are affected by an absolute path traversal vulnerability that allows a remote, authenticated attacker to set the "message of the day" banner to any file on the system, allowing them to read all or some of the contents of those files. Such sensitive information as hashed credentials, hardcoded plaintext passwords for other services, configuration files, and private keys can be disclosed in this fashion. Improper handling of filenames that identify virtual resources, such as "/dev/urandom" allows an attacker to effect a denial of service attack against the command line interfaces of the Quagga services (zebra and ripd).

Weakness: CWE-22

Which versions are affected by CVE-2021-20133?

It affects 1 product.

Products include Dlink Dir-2640-Us Firmware.

How do I fix CVE-2021-20133?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2021-20133 being exploited?

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

Sources

Also known as GHSA-3398-v46q-wcp6.

Is CVE-2021-20133 in your software?

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

Check your SBOMs for free