CVE-2022-31161: Roxy-WI - Command Injection
- Cve: CVE-2022-31161
- Name: Roxy-WI - Command Injection
- 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.
- Impact: Remote attackers can execute arbitrary commands on the server, potentially leading to full system compromise.
- Remediation: Update to version 6.1.1.0 or later.
- Vulnerability type: command_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.28101
- Epss percentile: 0.98138
- Assignee: [email protected]
- Published at: 2022-07-15T21:15:08Z
- Age in days: 1593
- Modified at: 2026-06-17T04:44:56Z
- Patch available: yes
- References total: 5
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31161
- Nvd status: modified
- Checked, none or zero: public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command |
| CWE-434 | Unrestricted Upload of File with Dangerous Type |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| vulncheck | 2025-06-03 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2022-31161 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31161.yaml |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/hap-wi/roxy-wi/releases/tag/v6.1.1.0 | nvd | Release Notes, Third Party Advisory |
| https://github.com/hap-wi/roxy-wi/security/advisories/GHSA-pg3w-8p63-x483 | nvd | Third Party Advisory |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31161.yaml | nuclei_template | Nuclei Template |
| https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-31161 | vulncheck | Vulncheck Reported Exploitation |
| http://packetstormsecurity.com/files/171652/Roxy-WI-6.1.1.0-Remote-Code-Execution.html | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| roxy-wi:roxy-wi | < 6.1.1.0 | no | nvd | /v1/products/roxy-wi/roxy-wi |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| hap-wi/roxy-wi | releases, security_advisory | yes | /v1/repositories/hap-wi/roxy-wi |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Known exploited by: vulncheck
- Vulncheck known exploited since: 2025-06-03
- Exploitation seen: yes
- Remote: yes
- Exposed hosts: 4
- Checked, none or zero: known exploited, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, public exploit first date, initial access since, hackerone reports