CVE-2021-20134

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 an arbitrary file on the router's filesystem as the log file used by either Quagga service (zebra or ripd). Subsequent log messages will be appended to the file, prefixed by a timestamp and some logging metadata. Remote code execution can be achieved by using this vulnerability to append to a shell script on the router's filesystem, and then awaiting or triggering the execution of that script. A remote, unauthenticated root shell can easily be obtained on the device in this fashion.
References
Link Resource
https://www.tenable.com/security/research/tra-2021-44 Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

AND
cpe:2.3:o:dlink:dir-2640-us_firmware:*:*:*:*:*:*:*:*
cpe:2.3:h:dlink:dir-2640-us:-:*:*:*:*:*:*:*

History

12 Jan 2022, 19:52

Type Values Removed Values Added
CWE CWE-22
CPE cpe:2.3:o:dlink:dir-2640-us_firmware:*:*:*:*:*:*:*:*
cpe:2.3:h:dlink:dir-2640-us:-:*:*:*:*:*:*:*
First Time Dlink
Dlink dir-2640-us
Dlink dir-2640-us Firmware
References (MISC) https://www.tenable.com/security/research/tra-2021-44 - (MISC) https://www.tenable.com/security/research/tra-2021-44 - Exploit, Third Party Advisory
CVSS v2 : unknown
v3 : unknown
v2 : 7.4
v3 : 8.4

30 Dec 2021, 22:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-12-30 22:15

Updated : 2023-12-10 14:09


NVD link : CVE-2021-20134

Mitre link : CVE-2021-20134

CVE.ORG link : CVE-2021-20134


JSON object : View

Products Affected

dlink

  • dir-2640-us
  • dir-2640-us_firmware
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')