CVE-2022-31161 Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload
Unauthenticated attackers can execute arbitrary system commands via the ssl_cert upload feature in Roxy-WI.
- 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-2022-31161?
CVE-2022-31161 is a critical command injection vulnerability in hap-wi roxy-wi, published on 15 Jul 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Roxy-WI is a Web interface for managing HAProxy, Nginx and Keepalived servers. Prior to version 6.1.1.0, the system command can be run remotely via the subprocess_execute function without processing the inputs received from the user in the /app/options.py file. Version 6.1.1.0 contains a patch for this issue.
Which versions are affected by CVE-2022-31161?
It affects 1 product.
Products include Roxy-Wi Roxy-Wi.
How do I fix CVE-2022-31161?
No fix has been published for CVE-2022-31161 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-2022-31161 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31161 exists.
Public exploit code: 1 Exploit-DB entry and 1 Nuclei template.
Other vulnerabilities in hap-wi roxy-wi
Sources
Also known as GHSA-pg3w-8p63-x483.