SecurityContext

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

IdName
CWE-77Improper Neutralization of Special Elements used in a Command
CWE-434Unrestricted Upload of File with Dangerous Type

Known exploited entries

ListAdded dateDue dateRansomware use
vulncheck2025-06-03—no

Nuclei templates

IdUrl
CVE-2022-31161https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31161.yaml

References

UrlSourceTags
https://github.com/hap-wi/roxy-wi/releases/tag/v6.1.1.0nvdRelease Notes, Third Party Advisory
https://github.com/hap-wi/roxy-wi/security/advisories/GHSA-pg3w-8p63-x483nvdThird Party Advisory
https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-31161.yamlnuclei_templateNuclei Template
https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?host_type=src&vulnerability=cve-2022-31161vulncheckVulncheck Reported Exploitation
http://packetstormsecurity.com/files/171652/Roxy-WI-6.1.1.0-Remote-Code-Execution.htmlnvd

Products

ProductAffectedPlatform boundSourcesUrl
roxy-wi:roxy-wi< 6.1.1.0nonvd/v1/products/roxy-wi/roxy-wi

Projects

RepositoryLink kindsIndexedUrl
hap-wi/roxy-wireleases, security_advisoryyes/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

Nuclei template