CVE‑2021‑1079 – NVIDIA GeForce Experience Command Execution
A low-privileged user could create a symbolic link to a system file because the NVIDIA GeForce Experience service wrote log files with SYSTEM permissions in a directory writable by all users. By controlling the log content through a settings file, an attacker could write arbitrary commands to a recovery batch file and trigger execution as SYSTEM, achieving privilege escalation.
voidsec.com
Published on voidsec.com
Some time ago I was looking for file system misconfigurations on common software I’ve installed on my PC when the “NvContainerLocalSystem” service, installed by default with NVIDIA GeForce, appeared on my list.
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 wrote log files in a directory where the Users group had write permissions, allowing a low-privileged user to create a symbolic link and redirect the write to a sensitive system file.
Impact
A low-privileged user could achieve full privilege escalation and execute arbitrary commands as SYSTEM, and the issue was fixed in GFE 3.22.
What the attacker needed
Low-privileged user account on Windows; NVIDIA GeForce Experience <= 3.21 installed
The fix
The vulnerability was fixed in NVIDIA GeForce Experience version 3.22.
How it was found
- Move the contents of the NVIDIA Corporation program data folder to another writable location using an NTFS rename operation.
- Create a symbolic link from the nvstreamsvcCurrent.log file to the NvContainerRecovery.bat system file.
- Append a command to the GswsDeviceUri or StarFleetKeyValueDataStoreUri setting in the settings.txt file.
- Toggle the GameStream/ShadowPlay button to trigger the arbitrary file write, copying the settings content to the batch file.
- Crash the NvContainerLocalSystem service three times to execute the batch file as SYSTEM.
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 running with high system rights wrote log files into a folder that any normal user could change. The attacker replaced the log file with a shortcut (symbolic link) pointing to a system batch file, then made the service write attacker-controlled text into that batch file. When the service crashed, Windows ran the batch file as SYSTEM, giving the attacker full control of the computer.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.