CVE-2022-20707: (Pwn2Own) Cisco RV340 NGINX sessionid Directory Traversal Authentication Bypass Vulnerability
Multiple vulnerabilities in Cisco Small Business RV160, RV260, RV340, and RV345 Series Routers could allow an attacker to do any of the following: Execute arbitrary code Elevate privileges Execute arbitrary commands Bypass authentication and authorization protections Fetch and run unsigned software Cause denial of service (DoS) For more information about these vulnerabilities, see the Details section of this advisory.
Other sources
This vulnerability allows local attackers to escalate privileges on affected installations of Cisco RV340 routers. An attacker must first obtain the ability to execute low-privileged code on the target system in order to exploit this vulnerability. The specific flaw exists within the handling of file-copy JSON RPC requests. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of root.
This vulnerability allows network-adjacent attackers to bypass authentication on affected installations of Cisco RV340 routers. Authentication is not required to exploit this vulnerability. The specific flaw exists within the configuration of the NGINX web server. When parsing the sessionid cookie, the process does not properly validate a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to bypass authentication on the system.
This vulnerability allows network-adjacent attackers to escalate privileges on affected installations of Cisco RV340 routers. Although authentication is required to exploit this vulnerability, the existing authentication mechanism can be bypassed. The specific flaw exists within the handling of POST request parameters provided to the upload.cgi endpoint. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to escalate privileges and execute arbitrary code in the context of the www-data user.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2022-20707?
The severity of CVE-2022-20707 is critical, with a CVSS score of 8.8.
How does CVE-2022-20707 affect Cisco RV340 routers?
CVE-2022-20707 allows network-adjacent attackers to escalate privileges on affected installations of Cisco RV340 routers.
Is authentication required to exploit CVE-2022-20707?
Authentication is required to exploit CVE-2022-20707, but the existing authentication mechanism can be bypassed.
What is the recommended solution for CVE-2022-20707?
Cisco has released a software update to address the vulnerability. It is recommended to update to the latest version of Cisco RV340 firmware.
Where can I find more information about CVE-2022-20707?
You can find more information about CVE-2022-20707 on the Cisco Security Advisory and Zero Day Initiative advisories linked in the references.