CVE-2022-20707: (Pwn2Own) Cisco RV340 NGINX sessionid Directory Traversal Authentication Bypass Vulnerability

Published Feb 10, 2022
·
Updated

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

9 affected components
Cisco RV340
Cisco RV340 Firmware<=1.0.03.24
Cisco RV340
Cisco Rv340w Firmware<=1.0.03.24
Cisco RV340W
Cisco Rv345 Firmware<=1.0.03.24
Cisco RV345
Cisco Rv345p Firmware<=1.0.03.24
Cisco RV345P

Event History

Feb 10, 2022
CVE Published
via MITRE·05:06 PM
Data Sourced
via MITRE·05:06 PM
DescriptionSeverityWeakness
Feb 2, 2025
Advisory Published
via ZDI·07:43 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2022-20707?

The severity of CVE-2022-20707 is critical, with a CVSS score of 8.8.

2

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.

3

Is authentication required to exploit CVE-2022-20707?

Authentication is required to exploit CVE-2022-20707, but the existing authentication mechanism can be bypassed.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203