Skip to content
Turning the Valve - Exploiting RCE and LPE in the Steam Platform

Turning the Valve - Exploiting RCE and LPE in the Steam Platform

Atredis • October 29, 2026

If you’re even tangentially familiar with the world of video games, chances are you’ve heard of Valve and the Steam platform. Steam is a digital distribution platform that captures approximately 75% of the market and regularly reaches 35-40 million daily active users.

The platform is an interesting target for security research for a variety of reasons; other than its pervasiveness throughout the gaming ecosystem, it presents interesting architectural configurations that expose users to both local and remote attacks. Rendering arbitrary web content, synchronizing state between accounts across a variety of devices and platforms, interacting with users both directly and via forums, performing sensitive actions (game or cosmetic purchases), and more. For these reasons, and the joy, we decided to take a deeper look at the platform.

This work was presented, in part, at BSides PDX 2026, and slides are included in the repository on our Github here . We’ve additionally released full PoCs for all of the bugs discussed. Finally, all bugs have been reported to Valve via their HackerOne program and are either patched or exceeded our disclosure timeline .

This post starts with a high level architectural review followed by a dive into several local and remote code execution bugs. Let’s get started.

LPE via IClientInstallUtils

LPE via IClientModuleManager

LPE via Secure Desktop Capture

Remote Code Execution

Steam runs a common Windows service architecture: an unprivileged client runs on the desktop for user interaction and sends requests for installation, management, and other functionality to a privileged service process. The user process, steam.exe , connects to the privileged service, steamservice.exe , and communicates via named pipes. Let’s take a look at the architecture.

At 10,000 feet, the architecture is as follows:

A single SYSTEM process ( steamservice.exe ) runs to facilitate resource management, installing dependencies, and other privileged functions, and exposes a shared memory section to setup client connections. The client facing app, steam.exe , runs under medium IL and presents the GUI and general user functionality we’ve all come to expect from Steam. Several other web processes ( steamwebhelper.exe ), built on the Chromium Embedded Framework, run under more restrictive ILs to launch and render HTML-based user interfaces.

When the Steam service starts up, it first creates three named objects:

Global\\SteamClientService_SharedMemFile via CreateFileMappingA to facilitate bootstrapping with a client

Global\\SteamClientService_SharedMemLock via CreateEventA for auto-reset signaling

Two anonymous pipes via CreatePipe ; why these are created, I’m not really sure. They don’t really appear to be used anywhere!

After zeroing the shared memory region and writing the server PID into the region, a lock state is set at offset +0x04 to 0. This is k_EMasterStateAvailable and publicizes the state of the server.

The server then sits in a blocking loop polling the shared memory region for a client connection. To connect, a client writes the following into the shared memory region:

Updates the lock state ( k_EClientRequesting )

The server identifies the state change and begins the process of bootstrapping the client. It does this through a few hoops:

Reads the client PID out of the shmem section and opens a handle ( OpenProcess )

Creates two anonymous pipes ( CreatePipe )

Duplicates handles into the client’s process: read and write pipes, and signal event

Duplicates the client’s event handle into the steam service process

Updates the lock state ( k_EServerResponded )

The client then reads these handles out, updates the lock state one final time ( k_EClientAcknowledged ), and the handshake is complete. The shared memory section is no longer used for communications; all further comms are facilitated via the exchanged anonymous pipes. At the end of this process, the shared memory section looks something like this:

Because of the DACLs on the shared memory section, any process from any IL can connect to the endpoint and issue requests. Submitting requests to the service is a cumbersome process when done manually and we’d prefer not to tango with such a brittle process. Unfortunately, the client engine does not export IPC functionality directly ( steamclient64.dll ), but through gentle massaging we were able to leverage the library anyway.

To drive the IPC functionality, we need to grab a vtable pointer from CSteamServiceWin32 , which contains functionality for interfacing with the remote service. There’s a global within steamclient64.dll that’s statically initialized on load, so we can locate its offset within the DLL and grab it. We’ll reconstruct the type from rtti to make invocations a little neater:

This makes clear the call process, where slot 0 in our vtable is the Connect call; first we grab the global object out of a loaded instance of the DLL:

And voila; we’ve connected to the remote service without needing to duplicate the connection flows previously described. We’re now positioned to explore the available interface.

Communications flow between the established pipes and dispatch messages using a rudimentary, but effective, byte format. Each payload is prepended with its length followed by the payload. The first byte of the payload is its command type, which can be one of five values:

A majority of the interface functionality is implemented in the RunInterface opcode; the command types should be pretty self-explanatory.

RunInterface exposes six unique interfaces with approximately 90 different function handlers:

IClientProcessMonitor

IClientWindowsHWMonitor

Each interface is responsible for actions related to its name. We’ll detail some of these later on in the post. In order to call these, we reuse the stolen CSteamServiceWin32 pointer and call into the interface vtable. For example, invoking IClientWindowsHWMonitorMap::GetCPUTemperature :

A full table of all interfaces is listed at the end of the post.

Now that we’ve covered all of the relevant architectural bits, it’s time to look at some of the bugs. Over the course of this work, we discovered 4x local privilege escalation vulnerabilities and 2x remote code execution bugs. These were ultimately disclosed to Valve through their HackerOne program; two of the LPEs ended up being duplicates and a third one was disclosed by another researcher. There are a lot of duplicates and collisions these days, so this wasn’t entirely unexpected. Lets get into them.

LPE via IClientInstallUtils

One of the interfaces reviewed, IClientInstallUtils , exposes functionality for executing Valve Data Files, or VDFs. These are used to install and configure games and their dependencies and are included in most games you install through the platform. The format is pretty simple; the following is an example of one for Bioshock Infinite:

The files are JSON blobs with a few different directives and only one really being required: installscript . This directive can contain a number of actions necessary to setup third party dependencies and system configuration, such as installing VC redistribution packages, creating registry keys, setting up anti-cheat, and more. In the above, setup of dependencies is performed via the Run Process block which includes a number of packages needed to run the game. The elevated SteamService process is responsible for processing the VDF’s and running the described actions.

Crucial to the process is the kvsignatures block. This is an RSA signed blob of the VDF contents verified by SteamService . Prior to execution of the VDF, all binaries described under a Run Process block must first be allowlisted in order to run. To do this, the IClientInstallUtils interface provides AddInstallScriptToWhitelist :

SteamService will then parse the VDF, validate its kvsignatures block, and, if successful, add the binaries to an allowlist. The allowlist is a linked list and exists only in-memory at runtime. Once the Steam service restarts the allowlist is purged and must be reinitialized by game install or uninstall operations. We can dump the list at runtime using Windbg (offsets taken from build 1773426488):

My installation of Steam is at D:\ and we see two executables that’ve been allowlisted as the result of a game installation. Note that %INSTALLDIR% was fully resolved and allowlisted with its full path; a path that unprivileged users have write access to by default.

Because there is no additional verification of target binaries, because the allowlist persists after the VDF is actioned, and because arbitrary VDFs can be submitted to the service for processing, we can abuse this configuration to execute arbitrary code. By allowlisting a user-controllable path with a pre-existing VDF and creating a custom VDF with a Run Process directive we can coerce the system service into executing arbitrary system executables as SYSTEM.

First, we need to identify an authenticated VDF. If you have Steam installed with a game or two, you’ll have one. I chose to re-use the Bioshock Infinite VDF described above. Second, we need to submit the authenticated VDF to AddInstallScriptToWhitelist in order to allowlist the target binaries:

In this call, installscript.vdf is the Bioshock Infinite VDF unmodified. The third parameter is our %INSTALLDIR% , so when the full path is resolved for insertion into the allowlist, it becomes:

The step is crafting a new VDF to execute our payload:

We’ll then plant cmd.exe at the above path under the name vcredist_x86_vs2008sp1.exe . We’re now ready to send a RunInstallScript request:

Create a folder at %TMP%\redist

Copy the authenticated VDF described above into this path

Copy cmd.exe into this path and rename it vcredist_x86.exe

Compile the DLL and inject it into steam.exe , which: Resolves vtable pointers to RunInstallScript and AddInstallScriptToWhitelist Calls AddInstallScriptToWhitelist with our authenticated VDF and %TMP% as its installDir Write our unauthenticated VDF to disk which executes our now-cmd.exe Run Process directive and arbitrary command line arguments Invoke RunInstallScript

Resolves vtable pointers to RunInstallScript and AddInstallScriptToWhitelist

Calls AddInstallScriptToWhitelist with our authenticated VDF and %TMP% as its installDir

Write our unauthenticated VDF to disk which executes our now-cmd.exe Run Process directive and arbitrary command line arguments

Invoke RunInstallScript

LPE via IClientModuleManager

Another interface reviewed, IClientModuleManager , appears to be used for managing third party libraries. One function, IClientModuleManager::CallFunctionAsync , invokes steamservice.exe to dynamically run an exported function from a DLL. While the true purpose of the function is unclear it seems to be related to legacy support due to path naming. The IClientModuleManager::Dispatch function parses the interface request and checks the CRC:

After parsing six parameters off the IPC request, the item is queued for asynchronous execution QueueWorkItem). This is eventually picked up by the ModuleManager::WorkItemExecutor on a separate thread and takes one of two paths:

We’ll return to flags in the following section. When ModuleManager_CallFunction_DirectLoad is called, a lookup to an internal, in-memory list is first performed:

LookupModuleById takes a CRC32 (provided by the IPC request) and performs a binary lookup to see if the module is loaded. If not, it bails, but if found, it continues. In short, the function then validates the RSA signature on the DLL to authenticate it has a valid digital signature from Valve. If the module is authenticated, it then reflectively loads the DLL into memory using the standard VirtualAlloc + relocation strategy.

The second path previously noted, ModuleManager_CallFunction_ChildProcess , is more interesting. This path goes through a similar LookupModuleById process and, when found, writes the DLL to disk at %SteamInstallDir%/legacycompat/servicecall_%u.dll where %u is the CRC32 of the module. Once written, two more files are created to handle io:

a command line string is composed:

Again the path is pulled from %SteamInstallDir% . Finally, the following is called:

doCreateProcess calls CreateProcessW with the composed command line and the in/out files removed. There is no validation of the module written to disk nor of steamservice.exe executed from the user-writable path.

Two questions remain: how do we load a DLL into this internal module store and how do we set the flag toggling which loading function to call? The first can be accomplished via a second IPC function exposed on the IClientModuleManager interface: LoadModule . This is a relatively trivial function that has the following prototype:

As long as the computed CRC32 matches what it internally calculates, the module and its contents will be stored in the list.

Finally, the toggle flag also appears to be exposed directly via the IPC interface. The CallFunctionAsync function has the following prototype:

The flags parameter directly sets the internal flags variable used to control how to load and execute the module.

In summary, the following steps are performed to escalate to SYSTEM:

Create legacycompat folder in %SteamInstallDir%

Write arbitrary executable into this folder named steamservice.exe

Connect to IPC from within steam.exe and send an arbitrary DLL via IClientModuleManager::LoadModule

Call IClientModuleManager::CallFunctionAsync with flags bit 3 set to bypass RSA signature verifications

LPE via Secure Desktop Capture

This is an interesting one and it’s related to the Remote Play functionality within Steam. Another one of these IPC interfaces, IClientSecureDesktop , is used to provide support for a variety of Steam features, including Big Picture mode, Remote Play, Steam Link, and other features that require providing system input from contexts in which a keyboard/mouse may not be available. For example, when a remote client streams the host machine, it forwards keyboard/mouse input over the network. If a prompt appears on the host during the stream, such as a UAC prompt in the secure desktop, the remote user would be stuck with an unresponsive screen.

In order to facilitate managing these pop-ups, Valve built secure_desktop_capture . This is launched by SteamService.exe when IClientSecureDesktop::BStartStreaming is called:

This launches secure_desktop_capture.exe as SYSTEM in winsta0\winlogon , which is the secure desktop. Once the target is running it sets up two shared memory regions: an output frame buffer ( Global\SecureDesktop_MovieStream_mem-IPCWrapper ) used to pass secure desktop frame content to a client, and an input buffer ( Global\SecureDesktopInput_mem-IPCWrapper ) to forward keyboard and mouse controls into the secure desktop (via SendInput ). Both of these regions are created with the same SID allowing GENERIC_ALL access to: SYSTEM, Administrators, and the user that owns steam.exe (looked up via HKCU). This means any desktop user can send inputs to the secure desktop and read framebuffer contents.

Note that the input buffer does contain an RSA public key, written in by the secure_desktop_capture process on initialization, and encryption is supported, but it is entirely client controlled. Simply writing flag=0 into your input struct will skip encryption per-slot.

Finally, for inputs to be passed from the user session into the secure desktop, a registry-controlled gate must be enabled. On first launch, secure_desktop_capture will check a registry key ( HKLM\Software\Valve\SteamSecureDesktop\ ) to determine both if the input has been enabled ( InputEnabled ) and if the authorization has expired (90 days). If the input has not been enabled, a message box prompt is displayed to the user. Once accepted, InputEnabled is set to 1 and the timestamp is updated. For the 90 days, all input to the secure desktop input buffer is transparently forwarded to the secure desktop session.

The format of the input channel is relatively straight forward. It’s a 128-slot ring buffer, each slot totaling 173 bytes:

Slots have the following structure:

Once a slot has been written to the client updates the write counter and secure_desktop_capture will process and transmit the input:

This allows unprivileged users to send arbitrary keyboard and mouse events to the secure desktop. Overall, the architecture breaks the isolation boundary enforced by Windows in the secure desktop environment by providing an event pump between the two spaces.

In order to exploit this, an attacker can drop an executable on the machine with an application manifest specifying requireAdministrator or reuse an existing executable on disk (msconfig). An attacker then spawns the process and spams VK_Y (or the Y key, which force focuses on the Yes for the UAC prompt) into the input buffer. In testing this has not produced any visual notifications of escalation and occurs immediately.

The final LPE we’ll be discussing in this post is again in the IClientInstallUtils interface. InstallVrLinkDongleDriver is used to install the wireless driver for the Steam Frame, a common Realtek driver used to stream to the headset. This function accepts a single path parameter (example prototype), expected to point to the directory containing the dongle driver:

This function first builds an architecture-specific path and checks for the existence of netrtwlanuval.inf:

If not found, the function falls back to a flat path:

In the flat path case, the path would resolve to \netrtwlanuva.inf .

The first thing InstallVrLinkDongleDriver then does is call WinVerifyTrust on the catalog file found in the driver path. It does this through the WINTRUST_ACTION_GENERIC_VERIFY_V2 action ID:

This validates the authenticode signature on the catalog file. If validated, the catalog is opened and enumerated to identify authenticated files. With this list of files, the requested directory is then enumerated and its files are hashed ( CryptCATAdminCalcHashFromFileHandle ) to identify matched catalog members. If there’s at least one, the function returns successfully.

At this point, the function then begins assembling the command line string for installing the driver. It uses pnputil , a common Windows driver tool for plug and play drivers, and executes an install operation using a token from the winlogon process, resulting in the following:

At no point in this process does the function attempt to validate that the requested setup information file is for the expected driver. Furthermore, even if the function performed this check, the process is vulnerable to TOCTOU as the execution occurs after validation and handle release. We could oplock the inf and swap it out between validation and pnputil execution.

Remote Code Execution

The Steam platform has a variety of remote vectors, but boils down to three in particular: games played, Valve servers, and user communication, both with others and self-to-self. The former two have been reviewed relatively extensively in the past so we targeted a darker corner of the platform. This led us to the user’s perspective and, specifically, Steam to Steam communication.

A single account can login to Steam from multiple locations and play games. In order to synchronize state between the various instances, Steam leverages Valve’s Connection Manager (CM) infrastructure and a set of internal SteamToSteamPacket objects. These are used without remote pairing (via Remote Play) or otherwise granting permissions beyond an initial login.

Each authenticated instance forms a CRemoteClient connection to every other instance. Messages are crafted as CNetPacket ’s with the following structure:

EMsg is the message type and consists of approximately 40 different handlers available at different times of the CRemoteClient lifecycle. This packet is then encrypted with a per-session shared key, wrapped into an outer CRemoteClient::SteamToSteam::Notification envelope:

In order to serialize and send arbitrary packets to remote clients, we can inject into the steam.exe process and walk the CRemoteClientManager object which maintains an in-memory map of all available and authenticated CRemoteClient objects. Through some runtime hooks and gentle massaging of the object we can leverage existing transmission and encryption functionality of an active Steam process to target EMsg handlers on any remote authenticated session.

EMsg 9526 ( RecvMsgDownloadScheduleChanged ) is a small status message Steam typically sends when a host’s download schedule changes. It’s protobuf descriptor is:

The loop is bounded by begin != end over a write on a fixed offset record (152 bytes). Because the size is controlled by the inbound message and there is no bounds checking, a CMsgRemoteClientDownloadScheduleChanged with more than 200 elements will overflow the return pointer on the stack. The following loop builds our overflow body:

When run from an attacker machine with at least one other authenticated client connected, we observe the crash on the remote machine and full control over the return address (attaching Windbg to the victim’s steam.exe ):

We found a second remotely exploitable crash in EMsg 9502 ( RecvMsgAppStatus ), which reports per-app installation and update status to peers, and has the following descriptor:

When a peer receives a CMsgRemoteClientAppStatus message, for each AppStatus whose app_install_state is present, it invokes a processor that copies that record’s update_info submessage into a fixed stack array. Annotated loop:

The fixed stage_progress array is a fixed 7-slot array, written one 24-byte record at a time. By sending a message with an AppUpdateInfo that carries more than 7 stage_progress entries, we can overflow the array. Because the fields are copied from the message onto the stack, we have significant control over what’s written. The following message results in significant register control, including RIP:

Which results in the following crash:

We were able to fully weaponize this into a zero click RCE through a discovered info leak bug that disclosed steamclient64 pointers to all connected peers. When a host’s download schedule changes (and on initial connect time), the host builds a CMsgRemoteClientDownloadScheduleChanged message and broadcasts this to every connected remote client. The protobuf is as follows:

When building the message, an internal function copies the scheduled application IDs [1] into a stack buffer [0]:

Once the count reaches 32, the message is sent. This chunks large messages up:

In the above send function at [0] we see that regardless of the number of scheduled apps, 32 DWORDS are always copied in! Furthermore, the stack buffer used as the source is never initialized, fully leaking contents from the stack. To test this out and inspect the received message, we can connect Windbg to Steam and set the following breakpoint:

Then, when the user logs in from another machine with the same account, the breakpoint should print:

This behavior was observed consistently across testing and test environments. Furthermore, while we can passively wait around for a client to login and send their initial CMsgRemoteClientDownloadScheduleChanged payload, we can induce an already connected client to send one by simply sending one of our own. This will prod the remote clients to swallow and send one of their own, thereby leaking from the stack. By capturing this packet we can compute the base address for steamclient64 and build a ROP payload to ultimately execute code.

The ROP payload we put together is fairly straightforward, but needs to deal with a few domain specific nuances. The first is Valve’s profiler, or VProf, which Valve uses pervasively throughout their projects for instrumentation and is baked into the Source engine. If you’re familiar with Source engine console commands, you can toggle this via vprof . One wrench this throws into our plans is the overflow target is wrapped with a vprof scope; on scope exit, there’s a block similar to the following:

When we overflow the stack, we smash the scope handle (v94) and the CVProfile_ExitScope executes with a bad handle. To get around this, we instead set v94 to NULL and skip the epilogue entirely.

Following the VProf scope, we build a standard CreateProcessA payload on the stack followed by a jmp [rax] into ExitThread to terminate the thread cleanly without crashing the process. The following video demonstrates the vulnerability; the desktop is running an up to date Windows 11 while a Hyper-V Windows 10 instance serves as the attacker position:

IClientProcessMonitor

IClientWindowsHWMonitor

Extracted Entities