{"id":"CVE-2022-31161","published":"2022-07-15T00:00:00Z","modified":"2025-04-23T18:01:57Z","title":"Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload","vendor":"hap-wi","product":"roxy-wi","tier":"core","eol":null,"affectedVersions":[{"vendor":"hap-wi","product":"roxy-wi","versions":["< 6.1.1.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-23T15:48:54.450162Z","from":"CISA ADP","provenance":"source"},"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"Roxy-WI, a web interface from hap-wi for managing HAProxy, Nginx and Keepalived servers, has a flaw in its command handling: before version 6.1.1.0, user input is not processed before being passed to the subprocess_execute function in /app/options.py, allowing system commands to be run. An attacker who can reach the web interface over the network can execute commands on the server without needing to authenticate or have any user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T00:12:10Z"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.17513,"percentile":0.97729,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2025-06-03","exploitedFirstSeen":"2025-06-03","ransomware":false,"evidence":[{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-31161","date":"2025-06-03"}],"evidenceTotal":1,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/hap-wi/roxy-wi/security/advisories/GHSA-pg3w-8p63-x483","tags":[]},{"url":"https://github.com/hap-wi/roxy-wi/releases/tag/v6.1.1.0","tags":[]},{"url":"http://packetstormsecurity.com/files/171652/Roxy-WI-6.1.1.0-Remote-Code-Execution.html","tags":[]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2022-52773","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-52773","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[{"id":51228,"url":"https://www.exploit-db.com/exploits/51228","title":"Roxy WI 6.1.1.0 - 'ssl_cert' Unauthenticated Arbitrary File Upload / Remote Code Execution (RCE)","type":"webapps","platform":"python","date":"2023-04-03","verified":false,"provenance":"source"}],"exploitSources":{"exploitdb":{"count":1,"earliest":"2023-04-03"},"nuclei":[{"id":"CVE-2022-31161","name":"Roxy-WI - Remote Code Execution","severity":"critical","path":"http/cves/2022/CVE-2022-31161.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31161.yaml"}],"first":{"date":"2023-04-03","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/51228"},"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/171652/Roxy-WI-6.1.1.0-Remote-Code-Execution.html"],"flow":[],"timeline":[{"date":"2022-07-15","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2022-31161","provenance":"source"},{"date":"2023-04-03","kind":"exploit-public","label":"First public exploit: Exploit-DB (EDB-51228)","url":"https://www.exploit-db.com/exploits/51228","provenance":"source"},{"date":"2025-06-03","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-31161","provenance":"source"}],"speed":{"daysToPublicExploit":262,"firstExploitFrom":"Exploit-DB","daysToKev":null},"priority":{"score":66.5,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 540 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.55,"detail":"percentile 0.9773"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 Exploit-DB entry; 1 NVD exploit link; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":7.0,"detail":"base score 10"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}