Printix Service Privileged Registry API Abuse (CVE-2022-25089)
Published: 2026-11-27 • Researcher: Logan Latvala (GitHub: ComparedArray)
Exploitation signals
EPSS 14.7% · 97th percentile
- Severity
- Critical
- CVE
- CVE-2022-25089
- Category
- binary
- Affected product
- Printix Secure Cloud Print Management (Printix Client / PrintixService.exe)
- Affected versions
- Through 1.3.1106.0 (fixed version not stated in the NVD record)
- Disclosed
- 2026-11-27
- Patch status
- Unverified
Tags
References
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-27 |
| Last Updated | 2022-05-10 (upstream commit d9248e54434b66ca2918665f5ceac137aeb81668, “Create LICENSE”) |
| Author / Researcher | Logan Latvala (GitHub: ComparedArray) |
| CVE / Advisory | CVE-2022-25089 |
| Category | binary |
| Severity | Critical |
| CVSS Score | 9.8 (CVSSv3.1, NVD) |
| Status | PoC (working exploit path implemented; the repository shows no verified run output) |
| Tags | Windows, Printix, PrintixService, privileged API, registry, HKLM, SYSTEM, local privilege escalation, remote, CWE-269 |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Printix Secure Cloud Print Management (Printix Client / PrintixService.exe) |
| Versions Affected | Through 1.3.1106.0 (fixed version not stated in the NVD record) |
| Language / Platform | C# .NET Framework 4.7.2 exploit client; target is the Printix Windows service on TCP port 21338 |
| Authentication Required | No — the client is not authenticated; the exploit chooses its own session name and the code notes that client authentication is no longer needed |
| Network Access Required | Yes — TCP/21338 must be reachable; the tool accepts any host or IP, so local and remote attackers are both covered |
Summary
PrintixService.exe exposes a message API on TCP port 21338 that accepts registry-editing commands from unauthenticated clients and applies them with the service’s SYSTEM token. Because the service maps the attacker-supplied printix path prefix onto the machine-wide HKLM hive and does not check who is asking, any host that can reach the port can write arbitrary registry values machine-wide. The archived C# console program connects over TLS, performs the Printix client handshake, builds a PersistentRegistryData payload and sends it as command 49. Writing to HKLM as SYSTEM lets an attacker plant an Image File Execution Options debugger, change services or security settings, or otherwise take full control of the machine.
Vulnerability Details
Root Cause
PrintixService.exe implements a proprietary message protocol on TCP port 21338 to serve its local UI and helper components. Commands are framed as a 4-byte total length followed by a 4-byte message type, a 4-byte command number and a data blob. Command 49 carries a PersistentRegistryData JSON object with a cmd field (StoreData, DeleteSubTree or RestoreData), a path, a VDIType and a byte array of registry data.
The service trusts every field of that object. The client-supplied path is rewritten by replacing HKEY_LOCAL_MACHINE with an internal printix alias, then resolved back to HKEY_LOCAL_MACHINE, and the data is written with the credentials of the service, which runs as SYSTEM. No authentication, authorization, session validation or ownership check is performed, so the privileged API is used on behalf of an arbitrary caller. That is the incorrect use of a privileged API described by CWE-269.
Attack Vector
An attacker opens a TCP connection to port 21338 on a Windows host running the Printix client, negotiates TLS with the PrintixClient target name, and sends the three internal handshake messages (session name, session ID, session name). The attacker then sends command 49 with a crafted PersistentRegistryData payload, or command 43 for a custom request. The tool simply asks for the host address, the registry path, the value type and the value, then serializes and sends it.
Because the same API is reachable from the network and rejects nothing, the attacker does not need a local account on the target, a certificate, or any Printix user role.
Impact
Arbitrary writes to HKEY_LOCAL_MACHINE as SYSTEM. The attacker can set Image File Execution Options Debugger values to run code as SYSTEM when a privileged process starts, create or modify services and drivers, alter LSA and security settings, disable endpoint protection, add logon scripts, or change any other machine-wide configuration. The result is full compromise of the Windows host and a straightforward path to domain credential theft if the host is domain-joined.
Environment / Lab Setup
OS: Target: Windows 10/11 with Printix Client <= 1.3.1106.0 installed
Attacker: Windows 10/11 with Visual Studio or the .NET Framework SDK
Runtime: .NET Framework 4.7.2 or later
Dependency: Newtonsoft.Json 13.0.1
Tools: Visual Studio 2019/2022, regedit or reg.exe, Procmon (optional),
Wireshark (optional, for the TLS/21338 traffic)Setup Steps
| |
The repository also ships a precompiled build under PublicRelease/ConsoleApp1/bin/Debug; it is not archived here (see Notes).
Proof of Concept
Step-by-Step Reproduction
Build the console client — create a .NET Framework 4.7.2 console project, add
CVESUBMISSION.csand the Newtonsoft.Json 13.0.1 package, then compile. The archived project file lists the reference path and the startup object ConsoleApp1a.CVESUBMISSION.PowerShell1 2# With the .NET Framework csc on a Windows host (one line): csc /target:exe /out:PrintixRegistry.exe CVESUBMISSION.cs /r:Newtonsoft.Json.dll /r:System.dll /r:System.Core.dllPoint the tool at the target — set the
hostvariable in Main to the target IP (the upstream default is 192.168.1.29), or use the menu prompts.Send the registry edit — choose option 2, enter the target address, then the registry path and the value. The tool rewrites HKEY_LOCAL_MACHINE to the printix alias, appends the value type byte to the data and prints the JSON it is about to send.
OutputI choose option # 2 What Host Address? (DNS Names Or IP) IP: 192.168.1.29 What Node starting from \\Local-Machine\\ would you like to select? Registry Node: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe\Debugger What Data type are you using? 1. String 2. Dword 3. Qword 4. Multi String Type: 1 What value is your type? Value: C:\Windows\System32\cmd.exeVerify on the target — the service applies the value as SYSTEM, and the registry now contains the attacker-supplied data.
PowerShell1reg query "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v DebuggerTrigger the planted value — the exact follow-on depends on the node that was written; an Image File Execution Options debugger runs when the targeted executable starts, giving code execution as SYSTEM.
Exploit Code
See
CVESUBMISSION.cs(full client with handshake, framing and payload builder) in this folder.
| |
The wire format for SendMessage is a 4-byte length (8 + payload), a 4-byte message type of 6 (UserData), a 4-byte command number (49) and the JSON payload.
Expected Output
Proof Of Concept For CVE-2022-25089 | Version: 1.3.24 | Created by Logan Latvala
This is a RAW API, in which you may get unintended results from usage.
{"cmd":"RestoreData","path":"printix\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Image File Execution Options\\notepad.exe\\Debugger","VDIType":12,"registryData":[1,67,58,...]}
CompCommClient[192.168.1.29:21338]: Client connect
CompCommClient[192.168.1.29:21338]: Sending Internal cmd 1, data = 21
CompCommClient[192.168.1.29:21338]: Sending Internal cmd 2, data = 5
CompCommClient[192.168.1.29:21338]: Sending Internal cmd 4, data = 21
CompCommClient[192.168.1.29:21338]: Client connected, username: printixReflectorPackage_137, sess: 1
Command Variable Response: 0Detection & Indicators of Compromise
PrintixService.exe opening and writing HKLM values it does not normally manage
Security event 4657 (registry value modified) with SubjectUserName = the Printix service account / SYSTEM
Unexpected values under:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\*\Debugger
HKLM\SYSTEM\CurrentControlSet\Services\*
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
Printix client logs showing connections or session names that were never issued by the client
(for example printixReflectorPackage_<random> or printixMDNs<random>)
Inbound TCP/21338 from hosts other than the local Printix components or approved management servers
TLS ClientHello with server name PrintixClient toward port 21338
A short TLS session followed by a length-prefixed binary frame whose command number is 49SIEM / IDS Rule (example):
alert tcp any any -> any 21338 (msg:"Printix CVE-2022-25089 unauthenticated registry API abuse"; flow:to_server,established; content:"|06 00 00 00 31 00 00 00|"; offset:4; depth:8; reference:cve,2022-25089; sid:9025089; rev:1;)Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade the Printix client to a version later than 1.3.1106.0; the NVD record does not name a fixed build, so confirm the fixed release with the vendor (Kofax/Printix). |
| Workaround | Restrict inbound TCP/21338 to the local host and approved Printix management endpoints with Windows Firewall, and block the port at network boundaries. |
| Config Hardening | Run the Printix client on standard user accounts, enable registry auditing for HKLM writes (event 4657) with a SubjectUserName of the Printix service, alert on unexpected Image File Execution Options and Services changes, and treat any host with unexplained HKLM values as compromised. |
References
Notes
Auto-prepared on 2026-11-27 from https://github.com/ComparedArray/printix-CVE-2022-25089 (stars 2, C#).
Review verdict: ingested. The repository is a genuine exploit client, not a detector or a write-up: it performs the TLS handshake to port 21338, sends the proprietary Printix frames and builds the PersistentRegistryData JSON that causes a SYSTEM registry write. It contains no C2, persistence, evasion, stealer or miner module; the “persistence” that can be achieved with the registry primitive is the vulnerability’s impact, not a bundled malware feature. The tool is a research proof of concept and not malware.
License: MIT, Copyright (c) 2022 Logan Latvala; the license is archived verbatim as LICENSE, and the source retains the original author attribution plus a research-use header. The upstream README is copied verbatim as upstream-README.md.
Omitted files: the compiled artifacts under PublicRelease/ConsoleApp1/bin/Debug (ConsoleApp1.exe, ConsoleApp1.pdb, Newtonsoft.Json.dll, Newtonsoft.Json.xml), the obj/ build cache, and the two PNG images (the logo and a slide title screenshot) were deliberately not archived as binaries and media. Only the exploit source, project file, runtime config and license are kept.
Limitations: the project file references Program.cs and Properties/AssemblyInfo.cs, which are not present in the repository, so the solution does not build as shipped and a new console project must be created around CVESUBMISSION.cs; the Newtonsoft.Json 13.0.1 package is also required and is only present in the repository as a compiled DLL. The tool is rough development code: the target host is hardcoded to 192.168.1.29 and must be edited or supplied through the menu, there is a goto-based restart loop, the response reader uses a fixed 25555-byte buffer, and the registry path is entered as a full HKLM path whose value name is implicit in the last path component. It does not set the value name separately, so the operator must include it in the path. No successful run is documented: printixPost.png is only a slide titled Registry Exploits, so the status is PoC rather than Weaponized. No exploit code was executed during preparation of this entry.