Skip to content
XXE Write-up Intermediate

CVE-2022-22977: VMware Guest Authentication Service LPE (FIXED)

The VMware Guest Authentication Service reads XML files from a non-existent directory that a low-privileged user can create, allowing the attacker to supply a malformed catalog file that prevents the service from starting. In limited cases, an XML external entity attack can leak file contents, but only if the file forms a valid URI.

Jacob Baines Follow

Published on rapid7.com

A low-privileged local attacker can prevent the VMware Guest Authentication service (VGAuthService.exe) from running in a guest Windows environment and can crash this service, thus rendering the guest unstable. In some very contrived circumstances, the attacker can leak file content to which they do not have read…

Rapid7, on rapid7.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the service attempts to load XML configuration files from a directory path that is missing and writable by low-privileged users, without validating the files or restricting access.

Impact

The most likely impact is a denial-of-service condition, and there is a remote possibility of privileged file content exfiltration, though the XXE leak is severely limited because libxml2 rejects URIs containing spaces or newlines.

What the attacker needed

Low-privileged local access to the guest; ability to create directories and files; service restart or reboot

The fix

VMware administrators should apply the patch, or as a workaround create the missing directory with write permissions limited to administrators.

How it was found

  1. Create the missing directory structure under C:\Program%20Files\VMware\VMware%20Tools\etc\
  2. Place a malformed catalog file in that directory
  3. Reboot the system or restart the VGAuthService service
  4. Observe that the service fails to start and logs an XML error

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A background service on Windows looks for configuration files in a folder that does not exist. A normal user can create that folder and put their own files there. By making one file badly formed, the user stops the service from running, which can make the system unstable. In rare cases, specially crafted files can also make the service read other files, but only if their contents fit a strict format.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

More by Jacob Baines

View all

5 more disclosed reports, best first.

More from VMware

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.