CVE-2022-31661
Workspace ONE Access Connector vulnerability analysis and mitigation

Overview

CVE-2022-31661 is a local privilege escalation vulnerability affecting VMware Workspace ONE Access, Identity Manager, and vRealize Automation products. The vulnerability was discovered by Spencer McIntyre of Rapid7 in June 2022 and disclosed to VMware, who released patches in August 2022. The vulnerability has been assigned a CVSS score of 7.8, indicating important severity (VMware Advisory).

Technical details

The vulnerability exists in the under-privileged horizon user account, which runs the externally accessible web application. The vulnerability allows the horizon user to escalate their permissions to those of the root user. The issue arises from the fact that the /usr/local/horizon/scripts/getProtectedLogFiles.hzn script can be run with root privileges without a password using the sudo command. This script recursively changes the ownership of a user-supplied directory to the horizon user, effectively granting them write permissions to all contents (Rapid7 Blog).

Impact

A malicious actor with local access can escalate privileges to 'root'. While the vulnerability requires local access to exploit, it becomes particularly dangerous when chained with remote code execution vulnerabilities like CVE-2022-22954, potentially allowing attackers to go from no access to root access in two steps (VMware Advisory, Rapid7 Blog).

Exploitability

The vulnerability requires local access and the attacker must have horizon user privileges to exploit. A proof-of-concept exploit was developed and submitted as a Metasploit module in PR #16854. The exploit involves executing specific commands as the horizon user to gain root privileges (Rapid7 Blog).

Mitigation and workarounds

VMware has released patches to address this vulnerability in the affected products. Users should apply the patches listed in the 'Fixed Version' column of the Resolution Matrix as detailed in VMware Security Advisory VMSA-2022-0021. No workarounds are available for this vulnerability, making patch application the only remediation option (VMware Advisory).

Additional resources


SourceThis report was generated using AI

Related Workspace ONE Access Connector vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2022-31664HIGH7.8
  • Workspace ONE Access Connector logoWorkspace ONE Access Connector
  • cpe:2.3:a:vmware:access_connector
NoYesAug 05, 2022
CVE-2022-31661HIGH7.8
  • Workspace ONE Access Connector logoWorkspace ONE Access Connector
  • cpe:2.3:a:vmware:access_connector
NoYesAug 05, 2022
CVE-2022-31660HIGH7.8
  • Workspace ONE Access Connector logoWorkspace ONE Access Connector
  • cpe:2.3:a:vmware:access_connector
NoYesAug 05, 2022
CVE-2022-31662HIGH7.5
  • Workspace ONE Access Connector logoWorkspace ONE Access Connector
  • cpe:2.3:a:vmware:identity_manager
NoYesAug 05, 2022
CVE-2022-31663MEDIUM6.1
  • Workspace ONE Access Connector logoWorkspace ONE Access Connector
  • cpe:2.3:a:vmware:access_connector
NoYesAug 05, 2022

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management